aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2018-12-05 01:38:43 +0100
committerJohn Crispin <john@phrozen.org>2018-12-06 08:42:40 +0100
commit68e59b61c64ff7adaa808e9c127a43c65bdcf3ab (patch)
tree808a4659117bf494b6ce878b7a79dc906195a4fd /target/linux/generic
parent26dcaf58eeb4481c0fcba56eb1534a6bb08d57f5 (diff)
downloadupstream-68e59b61c64ff7adaa808e9c127a43c65bdcf3ab.tar.gz
upstream-68e59b61c64ff7adaa808e9c127a43c65bdcf3ab.tar.bz2
upstream-68e59b61c64ff7adaa808e9c127a43c65bdcf3ab.zip
kernel: add DT binding support to AVM EVA parser
It allows selecting split-firmware parser directly by specifying image-format in the device-tree. Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'target/linux/generic')
-rw-r--r--target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_eva.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_eva.c b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_eva.c
index 746944ee2e..a30297a964 100644
--- a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_eva.c
+++ b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_eva.c
@@ -79,9 +79,15 @@ static int mtdsplit_parse_eva(struct mtd_info *master,
return EVA_NR_PARTS;
}
+static const struct of_device_id mtdsplit_eva_of_match_table[] = {
+ { .compatible = "avm,eva-firmware" },
+ {},
+};
+
static struct mtd_part_parser mtdsplit_eva_parser = {
.owner = THIS_MODULE,
.name = "eva-fw",
+ .of_match_table = mtdsplit_eva_of_match_table,
.parse_fn = mtdsplit_parse_eva,
.type = MTD_PARSER_TYPE_FIRMWARE,
};