summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2019-05-02 16:30:28 +0200
committerRichard Weinberger <richard@nod.at>2019-05-06 21:48:46 +0200
commit22749bf549efb000c88d164c9a6a3366468e8e1c (patch)
treedfa9cc322e1fccdc2c1e39853605bf221fff3538 /drivers/mtd
parent2485fa5323316968e73a2b46ea0bc554c37b7e83 (diff)
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>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/parsers/afs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/mtd/parsers/afs.c b/drivers/mtd/parsers/afs.c
index d61b7edfc938..3679e1d22595 100644
--- a/drivers/mtd/parsers/afs.c
+++ b/drivers/mtd/parsers/afs.c
@@ -255,9 +255,16 @@ static int parse_afs_partitions(struct mtd_info *mtd,
return idx ? idx : ret;
}
+static const struct of_device_id mtd_parser_afs_of_match_table[] = {
+ { .compatible = "arm,arm-firmware-suite" },
+ {},
+};
+MODULE_DEVICE_TABLE(of, mtd_parser_afs_of_match_table);
+
static struct mtd_part_parser afs_parser = {
.parse_fn = parse_afs_partitions,
.name = "afs",
+ .of_match_table = mtd_parser_afs_of_match_table,
};
module_mtd_part_parser(afs_parser);