[PATCH 3/5] drivers: allow clk_stub and spmi in SPL

Simon Glass sjg at chromium.org
Mon Apr 6 17:52:08 CEST 2026


Hi Michael,

On 2026-04-03T23:18:18, Michael Srba <michael.srba at seznam.cz> wrote:
> drivers: allow clk_stub and spmi in SPL
>
> Only Makefile and Kconfig changes necessary.
>
> Signed-off-by: Michael Srba <Michael.Srba at seznam.cz>

> diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
> @@ -114,6 +114,12 @@ config CLK_STUB
> +config SPL_CLK_STUB
> +     bool "Stub clock driver"
> +     depends on SPL_CLK
> +     help
> +       Enablestub clock driver in SPL

Enable stub

> diff --git a/drivers/spmi/Kconfig b/drivers/spmi/Kconfig
> @@ -8,6 +8,12 @@ config SPMI
> +config SPL_SPMI
> +     bool "Enable SPMI bus support in SPL"
> +     depends on SPL_DM
> +     ---help---
> +       Select this to SPMI bus support in SPL

Missing word: Select this to enable SPMI bus support in SPL

> diff --git a/drivers/Makefile b/drivers/Makefile
> @@ -35,6 +35,7 @@ obj-$(CONFIG_$(PHASE_)SPI) += spi/
> +obj-$(CONFIG_$(PHASE_)SPMI) += spmi/

This alone is not enough since drivers/spmi/Makefile still uses
CONFIG_SPMI, not CONFIG_$(PHASE_)SPMI. During an SPL build with
CONFIG_SPL_SPMI=y, the directory will be entered but spmi-uclass.o
will not be built. Please can you update drivers/spmi/Makefile to use
the PHASE_ pattern, similar to drivers/clk/Makefile.

Regards,
Simon


More information about the U-Boot mailing list