Skip to contentSkip to conversation

memory: omap-gpmc: Make OMAP_GPMC config visible and selectable

PATCH Superseded Roger Quadros 2 participants 3 messages Mar 26, 2022 Memory controller drivers

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 memory: omap-gpmc: Make OMAP_GPMC config visible and selectable

So far for armv7 TI platforms, GPMC was being selected by arch/arm/mach-* architecture Kconfig files.

For K3 platforms, GPMC is no longer required for basic boot and cannot be always enabled by default by mach- Kconfig.

We need a way for user (or board defconfig) to enable it if required so ake OMAP_GPMC Kconfig option always visible.

---
 drivers/memory/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/memory/Kconfig +2 -2
index 30bff6cb1b8d..da2af9c38fe3 100644
@@ -103,8 +103,8 @@ config TI_EMIF
 	  temperature changes
 
 config OMAP_GPMC
-	bool "Texas Instruments OMAP SoC GPMC driver" if COMPILE_TEST
-	depends on OF_ADDRESS
+	bool "Texas Instruments OMAP SoC GPMC driver"
+	depends on OF_ADDRESS || COMPILE_TEST
 	select GPIOLIB
 	help
 	  This driver is for the General Purpose Memory Controller (GPMC)
Signature · 1 line
2.17.1
#1 lore raw

Hi Roger,

Quoted 19 lines · Roger Quadros

So far for armv7 TI platforms, GPMC was being selected by arch/arm/mach-* architecture Kconfig files.

For K3 platforms, GPMC is no longer required for basic boot and cannot be always enabled by default by mach- Kconfig.

We need a way for user (or board defconfig) to enable it if required so ake OMAP_GPMC Kconfig option always visible.

---
 drivers/memory/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/memory/Kconfig +0 -0
index 30bff6cb1b8d..da2af9c38fe3 100644

drivers/memory/Kconfig config TI_EMIF · line 107

Quoted 7 lines
drivers/memory/Kconfig +2 -2
@@ -103,8 +103,8 @@ config TI_EMIF
 	  temperature changes
 
 config OMAP_GPMC
-	bool "Texas Instruments OMAP SoC GPMC driver" if COMPILE_TEST
-	depends on OF_ADDRESS
+	bool "Texas Instruments OMAP SoC GPMC driver"
+	depends on OF_ADDRESS || COMPILE_TEST

Can we make this tristate now, so that driver can be built as module?

Quoted 3 lines
drivers/memory/Kconfig +0 -0
 	select GPIOLIB
 	help
 	  This driver is for the General Purpose Memory Controller (GPMC)
#2 lore raw

Hi Vignesh,

Quoted 24 lines · Vignesh Raghavendra

Hi Roger,

Quoted 21 lines · Roger Quadros

So far for armv7 TI platforms, GPMC was being selected by arch/arm/mach-* architecture Kconfig files.

For K3 platforms, GPMC is no longer required for basic boot and cannot be always enabled by default by mach- Kconfig.

We need a way for user (or board defconfig) to enable it if required so ake OMAP_GPMC Kconfig option always visible.

---
 drivers/memory/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/memory/Kconfig +0 -0
index 30bff6cb1b8d..da2af9c38fe3 100644
@@ -103,8 +103,8 @@ config TI_EMIF
 	  temperature changes
 
Quoted 7 lines

drivers/memory/Kconfig config TI_EMIF · line 107

Quoted 5 lines
drivers/memory/Kconfig +2 -2
 config OMAP_GPMC
-	bool "Texas Instruments OMAP SoC GPMC driver" if COMPILE_TEST
-	depends on OF_ADDRESS
+	bool "Texas Instruments OMAP SoC GPMC driver"
+	depends on OF_ADDRESS || COMPILE_TEST

Can we make this tristate now, so that driver can be built as module?

Sure, I'll give it a try.

Quoted 4 lines

drivers/memory/Kconfig config TI_EMIF · line 110

Quoted 4 lines
drivers/memory/Kconfig +0 -0
 	select GPIOLIB
 	help
 	  This driver is for the General Purpose Memory Controller (GPMC)

--
cheers,
-roger