[PATCH v2 03/10] drivers: allow clk_stub and spmi in SPL

Simon Glass sjg at chromium.org
Sat Apr 11 17:39:51 CEST 2026


Hi Michael,

On 2026-04-11T00:00:12, 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>
>
> drivers/Makefile      | 2 +-
>  drivers/clk/Kconfig   | 6 ++++++
>  drivers/spmi/Kconfig  | 6 ++++++
>  drivers/spmi/Makefile | 2 +-
>  4 files changed, 14 insertions(+), 2 deletions(-)

> 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
> +       Enable stub clock driver in SPL

Please can you expand this to mention the use case, e.g. 'Enable this
to provide a stub clock driver in SPL for non-essential clock
controllers'

> 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 enable SPMI bus support in SPL

Just to check — should this also depend on SPMI? Since SPMI_MSM
depends on SPMI (not SPL_SPMI), you need SPMI enabled in U-Boot proper
to get the driver compiled. Currently ARCH_SNAPDRAGON selects SPMI so
it works, but the Kconfig relationship seems loose.

Reviewed-by: Simon Glass <sjg at chromium.org>

Regards,
Simon


More information about the U-Boot mailing list