[PATCH v2 03/10] drivers: allow clk_stub and spmi in SPL
Tom Rini
trini at konsulko.com
Mon Apr 13 19:13:57 CEST 2026
On Sat, Apr 11, 2026 at 02:00:08AM +0200, michael.srba at seznam.cz wrote:
> From: Michael Srba <Michael.Srba at seznam.cz>
>
> 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/Makefile b/drivers/Makefile
> index 43d0ba33281..477718ce89a 100644
> --- a/drivers/Makefile
> +++ b/drivers/Makefile
> @@ -35,6 +35,7 @@ obj-$(CONFIG_$(PHASE_)RAM) += ram/
> obj-$(CONFIG_$(PHASE_)RTC) += rtc/
> obj-$(CONFIG_$(PHASE_)SERIAL) += serial/
> obj-$(CONFIG_$(PHASE_)SPI) += spi/
> +obj-$(CONFIG_$(PHASE_)SPMI) += spmi/
> obj-$(CONFIG_$(PHASE_)TIMER) += timer/
> obj-$(CONFIG_$(PHASE_)VIRTIO) += virtio/
> obj-$(CONFIG_$(PHASE_)DM_MAILBOX) += mailbox/
> @@ -106,7 +107,6 @@ obj-$(CONFIG_DM_REBOOT_MODE) += reboot-mode/
> obj-y += rtc/
> obj-y += scsi/
> obj-y += sound/
> -obj-y += spmi/
> obj-y += watchdog/
> obj-$(CONFIG_QE) += qe/
> obj-$(CONFIG_U_QE) += qe/
> diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
> index c2da7b3938b..888ea08cead 100644
> --- a/drivers/clk/Kconfig
> +++ b/drivers/clk/Kconfig
> @@ -114,6 +114,12 @@ config CLK_STUB
> Enable this to provide a stub clock driver for non-essential clock
> controllers.
>
> +config SPL_CLK_STUB
> + bool "Stub clock driver"
> + depends on SPL_CLK
> + help
> + Enable stub clock driver in SPL
> +
> config CLK_BCM6345
> bool "Clock controller driver for BCM6345"
> depends on CLK && ARCH_BMIPS
> diff --git a/drivers/spmi/Kconfig b/drivers/spmi/Kconfig
> index ab4878ebae4..f3d91e0b754 100644
> --- a/drivers/spmi/Kconfig
> +++ b/drivers/spmi/Kconfig
> @@ -8,6 +8,12 @@ config SPMI
> SPMI (System Power Management Interface) bus is used
> to connect PMIC devices on various SoCs.
>
> +config SPL_SPMI
> + bool "Enable SPMI bus support in SPL"
> + depends on SPL_DM
> + help
> + Select this to enable SPMI bus support in SPL
> +
> config SPMI_MSM
> bool "Support Qualcomm SPMI bus"
> depends on SPMI
You need to add SPL_SPMI_MSM here, and then update the Makefile to use
$(PHASE_) as well.
--
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/20260413/79cd9fcd/attachment.sig>
More information about the U-Boot
mailing list