Skip to contentSkip to conversation

clk: microchip: enable the MPFS clk driver by default if SOC_MICROCHIP_POLARFIRE

PATCH Applied Conor Dooley 2 participants 2 messages Nov 23, 2022 – Dec 9, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: microchip: enable the MPFS clk driver by default if SOC_MICROCHIP_POLARFIRE

From: Conor Dooley <[email protected]>

With the intent of removing driver selects from Kconfig.socs in arch/riscv, essential drivers that were being selected there could instead by enabled by defaulting them to the value of the SoC's Kconfig symbol.

Do so here & drop the depend on RISC-V - the SOC_ symbols are only defined there anyway.

---
I thought I sent this with the SiFive stuff a few weeks ago - but obviously not!

CC Claudiu Beznea <[email protected]>
CC Conor Dooley <[email protected]>
CC Daire McNamara <[email protected]>
CC Michael Turquette <[email protected]>
CC Stephen Boyd <[email protected]>
---
 drivers/clk/microchip/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/clk/microchip/Kconfig +2 -1
index b46e864b3bd8..e33e51978938 100644
@@ -5,7 +5,8 @@ config COMMON_CLK_PIC32
 
 config MCHP_CLK_MPFS
 	bool "Clk driver for PolarFire SoC"
-	depends on (RISCV && SOC_MICROCHIP_POLARFIRE) || COMPILE_TEST
+	depends on SOC_MICROCHIP_POLARFIRE || COMPILE_TEST
+	default SOC_MICROCHIP_POLARFIRE
 	select AUXILIARY_BUS
 	help
 	  Supports Clock Configuration for PolarFire SoC
Signature · 1 line
2.38.1
maintainer Applied
#1 lore raw

Quoting Conor Dooley (2022-11-23 08:19:22)

Quoted 7 lines

From: Conor Dooley <[email protected]>

With the intent of removing driver selects from Kconfig.socs in arch/riscv, essential drivers that were being selected there could instead by enabled by defaulting them to the value of the SoC's Kconfig symbol.

Quoted 5 lines

Do so here & drop the depend on RISC-V - the SOC_ symbols are only defined there anyway.

---

Applied to clk-next