Skip to content

Commit ba32ce9

Browse files
author
Boris Brezillon
committed
mtd: maps: Merge gpio-addr-flash.c into physmap-core.c
Controlling some MSB address lines using GPIOs is just a small deviation from the generic physmap logic, and merging those two drivers allows us to share most of the probe logic, which is a good thing. Also, the gpio-addr-flash driver is unused since the removal of the blackfin arch in v4.17, so we can safely remove the old driver without risking breaking existing boards. Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Reviewed-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Tested-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Acked-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 3edf4b9 commit ba32ce9

4 files changed

Lines changed: 157 additions & 294 deletions

File tree

‎drivers/mtd/maps/Kconfig‎

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,15 @@ config MTD_PHYSMAP_GEMINI
9494
platforms, some detection and setting up parallel mode on the
9595
external interface.
9696

97+
config MTD_PHYSMAP_GPIO_ADDR
98+
bool "GPIO-assisted Flash Chip Support"
99+
depends on MTD_PHYSMAP
100+
depends on GPIOLIB || COMPILE_TEST
101+
depends on MTD_COMPLEX_MAPPINGS
102+
help
103+
Extend the physmap driver to allow flashes to be partially
104+
physically addressed and assisted by GPIOs.
105+
97106
config MTD_PMC_MSP_EVM
98107
tristate "CFI Flash device mapped on PMC-Sierra MSP"
99108
depends on PMC_MSP && MTD_CFI
@@ -334,16 +343,6 @@ config MTD_PCMCIA_ANONYMOUS
334343

335344
If unsure, say N.
336345

337-
config MTD_GPIO_ADDR
338-
tristate "GPIO-assisted Flash Chip Support"
339-
depends on GPIOLIB || COMPILE_TEST
340-
depends on MTD_COMPLEX_MAPPINGS
341-
help
342-
Map driver which allows flashes to be partially physically addressed
343-
and assisted by GPIOs.
344-
345-
If compiled as a module, it will be called gpio-addr-flash.
346-
347346
config MTD_UCLINUX
348347
bool "Generic uClinux RAM/ROM filesystem support"
349348
depends on (MTD_RAM=y || MTD_ROM=y) && (!MMU || COLDFIRE)

‎drivers/mtd/maps/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,5 @@ obj-$(CONFIG_MTD_PLATRAM) += plat-ram.o
4343
obj-$(CONFIG_MTD_INTEL_VR_NOR) += intel_vr_nor.o
4444
obj-$(CONFIG_MTD_RBTX4939) += rbtx4939-flash.o
4545
obj-$(CONFIG_MTD_VMU) += vmu-flash.o
46-
obj-$(CONFIG_MTD_GPIO_ADDR) += gpio-addr-flash.o
4746
obj-$(CONFIG_MTD_LATCH_ADDR) += latch-addr-flash.o
4847
obj-$(CONFIG_MTD_LANTIQ) += lantiq-flash.o

‎drivers/mtd/maps/gpio-addr-flash.c‎

Lines changed: 0 additions & 281 deletions
This file was deleted.

0 commit comments

Comments
 (0)