diff mbox series

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

Message ID 20191202092416.15633-1-lukma@denx.de
State Accepted
Commit d4d65e1125459c8e8286684c8e84fdc7df9da062
Delegated to: Tom Rini
Headers show
Series [U-Boot,RESEND,v2] spl: Introduce SPL_DM_GPIO Kconfig define | expand

Commit Message

Lukasz Majewski Dec. 2, 2019, 9:24 a.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
boards.

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

---

Changes in v2:
- Add dependency on DM_GPIO

Note:
- Board which is using DM_GPIO in SPL with OF_PLATDATA (XEA - i.MX28)
  depends on this Kconfig define. Only after it is in - it can be added
  without compiler errors.
---
 common/spl/Kconfig | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Tom Rini Dec. 5, 2019, 10:10 p.m. UTC | #1
On Mon, Dec 02, 2019 at 10:24:16AM +0100, Lukasz Majewski 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
> boards.
> 
> Signed-off-by: Lukasz Majewski <lukma@denx.de>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 1f122833a7..239cb4440e 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -485,6 +485,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.
+
 config SPL_DRIVERS_MISC_SUPPORT
 	bool "Support misc drivers"
 	help