[PATCH 3/5] drivers: allow clk_stub and spmi in SPL
michael.srba at seznam.cz
michael.srba at seznam.cz
Sat Apr 4 01:18:18 CEST 2026
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 ++++++
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/drivers/Makefile b/drivers/Makefile
index de993ae42ac..f76b38126e0 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/
@@ -105,7 +106,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 c88931c8ec4..fc2e152f975 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
+ Enablestub 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..4c94f2e0ff4 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 SPMI bus support in SPL
+
config SPMI_MSM
bool "Support Qualcomm SPMI bus"
depends on SPMI
--
2.53.0
More information about the U-Boot
mailing list