[PATCH] gpio: dwapb: Enable SPL support for DWAPB GPIO driver
Tom Rini
trini at konsulko.com
Sun Oct 12 21:05:34 CEST 2025
On Sun, Oct 12, 2025 at 11:55:58AM -0700, Tanmay Kathpalia wrote:
> Add SPL_DWAPB_GPIO configuration option to enable the Designware APB
> GPIO driver in SPL builds.
>
> Changes:
> - Add SPL_DWAPB_GPIO Kconfig option with SPL_DM_GPIO dependency
> - Update Makefile to use CONFIG_$(XPL_)DWAPB_GPIO pattern for
> conditional compilation in both SPL and main U-Boot builds
>
> Signed-off-by: Tanmay Kathpalia <tanmay.kathpalia at altera.com>
> ---
> drivers/gpio/Kconfig | 8 ++++++++
> drivers/gpio/Makefile | 2 +-
> 2 files changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
> index db077e472a8..00bf974c0f3 100644
> --- a/drivers/gpio/Kconfig
> +++ b/drivers/gpio/Kconfig
> @@ -138,6 +138,14 @@ config DWAPB_GPIO
> help
> Support for the Designware APB GPIO driver.
>
> +config SPL_DWAPB_GPIO
> + bool "DWAPB GPIO driver in SPL"
> + depends on SPL_DM_GPIO
> + help
> + Support for the Designware APB GPIO driver in SPL.
> +
> + If unsure, say N.
> +
> config AT91_GPIO
> bool "AT91 PIO GPIO driver"
> depends on ARCH_AT91
> diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile
> index 73c94329e36..da2c02b32da 100644
> --- a/drivers/gpio/Makefile
> +++ b/drivers/gpio/Makefile
> @@ -4,12 +4,12 @@
> # Wolfgang Denk, DENX Software Engineering, wd at denx.de.
>
> ifndef CONFIG_XPL_BUILD
> -obj-$(CONFIG_DWAPB_GPIO) += dwapb_gpio.o
> obj-$(CONFIG_AXP_GPIO) += axp_gpio.o
> obj-$(CONFIG_DM_74X164) += 74x164_gpio.o
> endif
> obj-$(CONFIG_$(PHASE_)DM_GPIO) += gpio-uclass.o
>
> +obj-$(CONFIG_$(XPL_)DWAPB_GPIO) += dwapb_gpio.o
This should be PHASE_ not XPL_.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20251012/5a495969/attachment.sig>
More information about the U-Boot
mailing list