diff mbox series

[U-Boot] spl: Introduce SPL_DM_GPIO Kconfig define

Message ID 20190903141619.4949-1-lukma@denx.de
State Superseded
Delegated to: Tom Rini
Headers show
Series [U-Boot] spl: Introduce SPL_DM_GPIO Kconfig define | expand

Commit Message

Lukasz Majewski Sept. 3, 2019, 2:16 p.m. UTC
This define indicates if DM_GPIO shall be supported in SPL. This allows
proper operation of DM converted GPIO drivers in SPL, which use
#if !CONFIG_IS_ENABLED(DM_GPIO) to also support not yet DM/DTS converted
boards.

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

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

Comments

Simon Glass Sept. 6, 2019, 9:04 p.m. UTC | #1
On Tue, 3 Sep 2019 at 07:16, Lukasz Majewski <lukma@denx.de> wrote:
>
> This define indicates if DM_GPIO shall be supported in SPL. This allows
> proper operation of DM converted GPIO drivers in SPL, which use
> #if !CONFIG_IS_ENABLED(DM_GPIO) to also support not yet DM/DTS converted
> boards.
>
> Signed-off-by: Lukasz Majewski <lukma@denx.de>
> ---
>
>  common/spl/Kconfig | 6 ++++++
>  1 file changed, 6 insertions(+)
>

Reviewed-by: Simon Glass <sjg@chromium.org>
diff mbox series

Patch

diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 5b7667ea16..7c3391cabe 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -458,6 +458,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
+	help
+	  Enable support for Driver Model based GPIO drivers in SPL.
+
 config SPL_DRIVERS_MISC_SUPPORT
 	bool "Support misc drivers"
 	help