Commit 22749bf5 authored by Linus Walleij's avatar Linus Walleij Committed by Richard Weinberger

mtd: partitions: Add OF support to AFS partitions

This adds device tree support for AFS partitioning.
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 2485fa53
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment