mtd: physmap_of: Add non-obsolete map_rom probe
authorAaron Sierra <asierra@xes-inc.com>
Wed, 17 Sep 2014 18:08:28 +0000 (13:08 -0500)
committerBrian Norris <computersforpeace@gmail.com>
Mon, 22 Sep 2014 17:13:13 +0000 (10:13 -0700)
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>
Documentation/devicetree/bindings/mtd/mtd-physmap.txt
drivers/mtd/maps/physmap_of.c

index 61c5ec850f2fb18dc150f15e4fbab0c02edc0279..6b9f680cb579bd7fbca4f1ee17f610e6c0b079bf 100644 (file)
@@ -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.
index 63d82dae4a78302f579e49f74a871bf9d7b7c42d..c1d21cb501cad360eac2c219061d8414e866de0b 100644 (file)
@@ -339,6 +339,10 @@ static struct of_device_id of_flash_match[] = {
                .compatible     = "mtd-ram",
                .data           = (void *)"map_ram",
        },
+       {
+               .compatible     = "mtd-rom",
+               .data           = (void *)"map_rom",
+       },
        {
                .type           = "rom",
                .compatible     = "direct-mapped"