Skip to content

Commit 22749bf

Browse files
Linus Walleijrichardweinberger
authored andcommitted
mtd: partitions: Add OF support to AFS partitions
This adds device tree support for AFS partitioning. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Richard Weinberger <richard@nod.at>
1 parent 2485fa5 commit 22749bf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/mtd/parsers/afs.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,16 @@ static int parse_afs_partitions(struct mtd_info *mtd,
255255
return idx ? idx : ret;
256256
}
257257

258+
static const struct of_device_id mtd_parser_afs_of_match_table[] = {
259+
{ .compatible = "arm,arm-firmware-suite" },
260+
{},
261+
};
262+
MODULE_DEVICE_TABLE(of, mtd_parser_afs_of_match_table);
263+
258264
static struct mtd_part_parser afs_parser = {
259265
.parse_fn = parse_afs_partitions,
260266
.name = "afs",
267+
.of_match_table = mtd_parser_afs_of_match_table,
261268
};
262269
module_mtd_part_parser(afs_parser);
263270

0 commit comments

Comments
 (0)