[U-Boot] [PATCH v2] spl: Introduce SPL_DM_GPIO Kconfig define

Lukasz Majewski lukma at denx.de
Sun Sep 29 15:54:41 UTC 2019

This define indicates if DM_GPIO shall be supported in SPL. This allows
proper operation of DM converted GPIO drivers in SPL, which use

Signed-off-by: Lukasz Majewski <lukma at denx.de>

Changes in v2:
- Add dependency on DM_GPIO

 common/spl/Kconfig | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index f467eca2be..e3df8efa7e 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -452,6 +452,12 @@ config SPL_DMA_SUPPORT
 	  the CPU moving the data. Enable this option to build the drivers
 	  in drivers/dma as part of an SPL build.
+config SPL_DM_GPIO
+	bool "Support Driver Model GPIO drivers"
+	depends on SPL_GPIO_SUPPORT && DM_GPIO
+	help
+	  Enable support for Driver Model based GPIO drivers in SPL.
 	bool "Support misc drivers"

More information about the U-Boot mailing list