Skip to contentSkip to conversation

clk: sunxi: Extend DM_RESET selection to SPL

PATCH In review Samuel Holland 2 participants 2 messages Sep 11, 2021 – Oct 25, 2021

Subsystems (3)
lore
Share & tools
lore

Samuel Holland

author maintainer
#0 lore raw

PATCH 1/1 clk: sunxi: Extend DM_RESET selection to SPL

The sunxi clock driver exposes a reset controller, so it selects the reset controller framework. Ensure that dependency is also satisfied when building the driver for the SPL.

---

 drivers/clk/sunxi/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/sunxi/Kconfig +1 -0
index bf084fa7a84..43c321692cf 100644
@@ -2,6 +2,7 @@ config CLK_SUNXI
 	bool "Clock support for Allwinner SoCs"
 	depends on CLK && ARCH_SUNXI
 	select DM_RESET
+	select SPL_DM_RESET if SPL_CLK
 	default y
 	help
 	  This enables support for common clock driver API on Allwinner
Signature · 1 line
2.31.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · On Sat, 11 Sep 2021 14:45:31 -0500 Samuel Holland <[email protected]> wrote:

The sunxi clock driver exposes a reset controller, so it selects the reset controller framework. Ensure that dependency is also satisfied when building the driver for the SPL.

Cheers,
Andre

Quoted 17 lines

---

 drivers/clk/sunxi/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/sunxi/Kconfig +1 -0
index bf084fa7a84..43c321692cf 100644
@@ -2,6 +2,7 @@ config CLK_SUNXI
 	bool "Clock support for Allwinner SoCs"
 	depends on CLK && ARCH_SUNXI
 	select DM_RESET
+	select SPL_DM_RESET if SPL_CLK
 	default y
 	help
 	  This enables support for common clock driver API on Allwinner