linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] memory: OMAP_GPMC should depend on ARCH_OMAP2PLUS || ARCH_K3
@ 2022-05-09 13:48 Geert Uytterhoeven
  2022-05-10  7:22 ` Roger Quadros
  0 siblings, 1 reply; 10+ messages in thread
From: Geert Uytterhoeven @ 2022-05-09 13:48 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Roger Quadros
  Cc: Tony Lindgren, linux-omap, linux-kernel, Geert Uytterhoeven

The Texas Instruments OMAP General Purpose Memory Controller (GPMC) is
only present on TI OMAP2/3/4/5, AM33xx, AM43x, DRA7xx, TI81xx, and K3
SoCs.  Hence add a dependency on ARCH_OMAP2PLUS || ARCH_K3, to prevent
asking the user about this driver when configuring a kernel without
OMAP2+ or K3 SoC family support.

Fixes: be34f45f0d4aa91c ("memory: omap-gpmc: Make OMAP_GPMC config visible and selectable")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 drivers/memory/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/memory/Kconfig b/drivers/memory/Kconfig
index b7800b37af78a996..f00757912e2e4c1e 100644
--- a/drivers/memory/Kconfig
+++ b/drivers/memory/Kconfig
@@ -105,6 +105,7 @@ config TI_EMIF
 config OMAP_GPMC
 	tristate "Texas Instruments OMAP SoC GPMC driver"
 	depends on OF_ADDRESS
+	depends on ARCH_OMAP2PLUS || ARCH_K3 || COMPILE_TEST
 	select GPIOLIB
 	help
 	  This driver is for the General Purpose Memory Controller (GPMC)
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-05-10  8:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-09 13:48 [PATCH] memory: OMAP_GPMC should depend on ARCH_OMAP2PLUS || ARCH_K3 Geert Uytterhoeven
2022-05-10  7:22 ` Roger Quadros
2022-05-10  7:30   ` Geert Uytterhoeven
2022-05-10  7:36     ` Krzysztof Kozlowski
2022-05-10  7:41       ` Roger Quadros
2022-05-10  7:40     ` Roger Quadros
2022-05-10  8:06       ` Geert Uytterhoeven
2022-05-10  8:10         ` Roger Quadros
2022-05-10  8:17           ` Geert Uytterhoeven
2022-05-10  8:27             ` Roger Quadros

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).