mtd: allow CONFIG_MTD_PHYSMAP_OF also for CONFIG_MTD_RAM

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sat Apr 5 02:59:03 EDT 2014


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=670b46aa6cad88e126c5e7d0f37ed2b41693869d
Commit:     670b46aa6cad88e126c5e7d0f37ed2b41693869d
Parent:     6f7db7f3203a0bd48170807adeb53dd401d29110
Author:     Philippe De Muyter <phdm at macqel.be>
AuthorDate: Thu Mar 6 00:00:00 2014 +0100
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Mon Mar 10 22:42:29 2014 -0700

    mtd: allow CONFIG_MTD_PHYSMAP_OF also for CONFIG_MTD_RAM
    
    Up to now mtd-ram devices described in device trees were only accessible
    if mtd-flash or mtd-rom were also configured at linux configuration
    time, because MTD_PHYSMAP_OF was only available if (MTD_CFI ||
    MTD_JEDECPROBE || MTD_ROM).  Allow MTD_PHYSMAP_OF selection also
    when only MTD_RAM is set.
    
    Signed-off-by: Philippe De Muyter <phdm at macqel.be>
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 drivers/mtd/maps/Kconfig | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/mtd/maps/Kconfig b/drivers/mtd/maps/Kconfig
index 179c6e1..fce23fe 100644
--- a/drivers/mtd/maps/Kconfig
+++ b/drivers/mtd/maps/Kconfig
@@ -66,11 +66,11 @@ config MTD_PHYSMAP_BANKWIDTH
 	  used internally by the CFI drivers.
 
 config MTD_PHYSMAP_OF
-	tristate "Flash device in physical memory map based on OF description"
-	depends on OF && (MTD_CFI || MTD_JEDECPROBE || MTD_ROM)
+	tristate "Memory device in physical memory map based on OF description"
+	depends on OF && (MTD_CFI || MTD_JEDECPROBE || MTD_ROM || MTD_RAM)
 	help
-	  This provides a 'mapping' driver which allows the NOR Flash and
-	  ROM driver code to communicate with chips which are mapped
+	  This provides a 'mapping' driver which allows the NOR Flash, ROM
+	  and RAM driver code to communicate with chips which are mapped
 	  physically into the CPU's memory. The mapping description here is
 	  taken from OF device tree.
 



More information about the linux-mtd-cvs mailing list