aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@gmail.com>2018-12-08 21:54:10 +0100
committerChristian Lamparter <chunkeey@gmail.com>2018-12-17 00:21:33 +0100
commit40180b6305f55a7926153705eb5a84a9da33e597 (patch)
tree50f0b72059e4a71497eeb7eb12667d427b58301c /target/linux/generic
parent201058b35ce42086b83f7eabb6304cac00c4c585 (diff)
downloadupstream-40180b6305f55a7926153705eb5a84a9da33e597.tar.gz
upstream-40180b6305f55a7926153705eb5a84a9da33e597.tar.bz2
upstream-40180b6305f55a7926153705eb5a84a9da33e597.zip
kernel: add DT binding support to the fit parser
It allows specifying default and Netgear parsers directly in the DT. Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Diffstat (limited to 'target/linux/generic')
-rw-r--r--target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_fit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_fit.c b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_fit.c
index f356adcd4e..f9e5e53a95 100644
--- a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_fit.c
+++ b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_fit.c
@@ -120,9 +120,15 @@ mtdsplit_fit_parse(struct mtd_info *mtd,
return 2;
}
+static const struct of_device_id mtdsplit_fit_of_match_table[] = {
+ { .compatible = "denx,fit" },
+ {},
+};
+
static struct mtd_part_parser uimage_parser = {
.owner = THIS_MODULE,
.name = "fit-fw",
+ .of_match_table = mtdsplit_fit_of_match_table,
.parse_fn = mtdsplit_fit_parse,
.type = MTD_PARSER_TYPE_FIRMWARE,
};