Skip to contentSkip to conversation

mtd: physmap_of: Add non-obsolete map_rom probe

PATCH In review Aaron Sierra 1 participant 1 message Sep 17, 2014 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 2/2 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.

---
 Documentation/devicetree/bindings/mtd/mtd-physmap.txt | 4 ++--
 drivers/mtd/maps/physmap_of.c                         | 4 ++++
 2 files changed, 6 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/mtd/mtd-physmap.txt +2 -2
index 61c5ec8..6b9f680 100644
@@ -4,8 +4,8 @@ Flash chips (Memory Technology Devices) are often used for solid state
 file systems on embedded devices.
 
  - compatible : should contain the specific model of mtd chip(s)
-   used, if known, followed by either "cfi-flash", "jedec-flash"
-   or "mtd-ram".
+   used, if known, followed by either "cfi-flash", "jedec-flash",
+   "mtd-ram" or "mtd-rom".
  - reg : Address range(s) of the mtd chip(s)
    It's possible to (optionally) define multiple "reg" tuples so that
    non-identical chips can be described in one node.
drivers/mtd/maps/physmap_of.c +4 -0
index 63d82da..c1d21cb 100644
@@ -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"
 	},
Signature · 1 line
1.9.1