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>
This commit is contained in:
parent
201058b35c
commit
40180b6305
1 changed files with 6 additions and 0 deletions
|
@ -120,9 +120,15 @@ mtdsplit_fit_parse(struct mtd_info *mtd,
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const struct of_device_id mtdsplit_fit_of_match_table[] = {
|
||||||
|
{ .compatible = "denx,fit" },
|
||||||
|
{},
|
||||||
|
};
|
||||||
|
|
||||||
static struct mtd_part_parser uimage_parser = {
|
static struct mtd_part_parser uimage_parser = {
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.name = "fit-fw",
|
.name = "fit-fw",
|
||||||
|
.of_match_table = mtdsplit_fit_of_match_table,
|
||||||
.parse_fn = mtdsplit_fit_parse,
|
.parse_fn = mtdsplit_fit_parse,
|
||||||
.type = MTD_PARSER_TYPE_FIRMWARE,
|
.type = MTD_PARSER_TYPE_FIRMWARE,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue