aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps
diff options
context:
space:
mode:
authorAaron Sierra <asierra@xes-inc.com>2014-09-17 13:08:28 -0500
committerBrian Norris <computersforpeace@gmail.com>2014-09-22 10:13:13 -0700
commite5bffb59cfbb3371ff00a165a5a48c1f3fdf125a (patch)
tree3c7f6d2207538c72571587e13b51957ec1616830 /drivers/mtd/maps
parentmtd: physmap_of: Fix ROM support via OF (diff)
downloadlinux-dev-e5bffb59cfbb3371ff00a165a5a48c1f3fdf125a.tar.xz
linux-dev-e5bffb59cfbb3371ff00a165a5a48c1f3fdf125a.zip
mtd: physmap_of: Add non-obsolete map_rom probe
Previously, the only way to map a NOR device as a simple ROM was to use the obsolete "direct-mapped" compatible binding (which further requires device_type = "nor" and probe-type = "NOR" properties). This patch adds an "mtd-rom" compatible binding to the "map_rom" probe type. Signed-off-by: Aaron Sierra <asierra@xes-inc.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/maps')
-rw-r--r--drivers/mtd/maps/physmap_of.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mtd/maps/physmap_of.c b/drivers/mtd/maps/physmap_of.c
index 63d82dae4a78..c1d21cb501ca 100644
--- a/drivers/mtd/maps/physmap_of.c
+++ b/drivers/mtd/maps/physmap_of.c
@@ -340,6 +340,10 @@ static struct of_device_id of_flash_match[] = {
.data = (void *)"map_ram",
},
{
+ .compatible = "mtd-rom",
+ .data = (void *)"map_rom",
+ },
+ {
.type = "rom",
.compatible = "direct-mapped"
},