[PATCH v2 03/10] drivers: allow clk_stub and spmi in SPL
michael.srba at seznam.cz
michael.srba at seznam.cz
Sat Apr 11 02:00:08 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 ++++++
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
diff --git a/drivers/spmi/Makefile b/drivers/spmi/Makefile
index 1b3d57f36a9..a654884737e 100644
--- a/drivers/spmi/Makefile
+++ b/drivers/spmi/Makefile
@@ -2,6 +2,6 @@
#
# (C) Copyright 2015 Mateusz Kulikowski <mateusz.kulikowski at gmail.com>
-obj-$(CONFIG_SPMI) += spmi-uclass.o
+obj-$(CONFIG_$(PHASE_)SPMI) += spmi-uclass.o
obj-$(CONFIG_SPMI_MSM) += spmi-msm.o
obj-$(CONFIG_SPMI_SANDBOX) += spmi-sandbox.o
--
2.53.0
More information about the U-Boot
mailing list