Commit 670b46aa authored by Philippe De Muyter's avatar Philippe De Muyter Committed by Brian Norris

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: default avatarPhilippe De Muyter <phdm@macqel.be>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 6f7db7f3
...@@ -66,11 +66,11 @@ config MTD_PHYSMAP_BANKWIDTH ...@@ -66,11 +66,11 @@ config MTD_PHYSMAP_BANKWIDTH
used internally by the CFI drivers. used internally by the CFI drivers.
config MTD_PHYSMAP_OF config MTD_PHYSMAP_OF
tristate "Flash device in physical memory map based on OF description" tristate "Memory device in physical memory map based on OF description"
depends on OF && (MTD_CFI || MTD_JEDECPROBE || MTD_ROM) depends on OF && (MTD_CFI || MTD_JEDECPROBE || MTD_ROM || MTD_RAM)
help help
This provides a 'mapping' driver which allows the NOR Flash and This provides a 'mapping' driver which allows the NOR Flash, ROM
ROM driver code to communicate with chips which are mapped and RAM driver code to communicate with chips which are mapped
physically into the CPU's memory. The mapping description here is physically into the CPU's memory. The mapping description here is
taken from OF device tree. taken from OF device tree.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment