[U-Boot] [PATCH 1/3] spi: Kconfig: Mark CONFIG_SPI as Legacy spi support

Jagan Teki jagan at amarulasolutions.com
Sat Feb 9 12:15:41 UTC 2019


CONFIG_SPI is mandatory for SPI support even if the given board
has dm or non-dm versions, so mark CONFIG_SPI as non-dm config
option and move the respective non-dm drivers below to that.

This eventually reduce the explicit CONFIG_SPI enablement for
dm version spi drivers.

Cc: Vignesh R <vigneshr at ti.com>
Signed-off-by: Jagan Teki <jagan at amarulasolutions.com>
---
 drivers/spi/Kconfig | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
index 2fb4862c4a..bed279cbc4 100644
--- a/drivers/spi/Kconfig
+++ b/drivers/spi/Kconfig
@@ -1,7 +1,4 @@
-menuconfig SPI
-	bool "SPI Support"
-
-if SPI
+menu "SPI Support"
 
 config DM_SPI
 	bool "Enable Driver Model for SPI drivers"
@@ -294,6 +291,14 @@ config ZYNQMP_GQSPI
 
 endif # if DM_SPI
 
+config SPI
+	bool "Legacy SPI support"
+	help
+	  Enable the legacy SPI support. This will include legacy SPI
+	  interface code for non-dm SPI drivers.
+
+if SPI
+
 config SOFT_SPI
 	bool "Soft SPI driver"
 	help
@@ -387,4 +392,6 @@ config OMAP3_SPI
 	  (McSPI). This driver be used to access SPI chips on platforms
 	  embedding this OMAP3 McSPI IP core.
 
-endif # menu "SPI Support"
+endif # if SPI
+
+endmenu # menu "SPI Support"
-- 
2.18.0.321.gffc6fa0e3



More information about the U-Boot mailing list