[RFC 01/27] clk: microchip: replace SOC_MICROCHIP_POLARFIRE with ARCH_MICROCHIP

Conor Dooley conor at kernel.org
Fri Sep 23 11:55:40 PDT 2022


From: Conor Dooley <conor.dooley at microchip.com>

At LPC, we decided that for the sake of consistency the SOC_FOO symbols
in arch/riscv should be replaced with ARCH_FOO so that we could have a
consistent policy regardless of whether a vendor had ARM legacy or was
a RISC-V "incumbent".

The symbol is currently selected by the arch Kconfig, but that is going
to change, so as a precursor to that change the symbol so that it
defaults to the value of ARCH_MICROCHIP. The symbol is only defined by
RISC-V, so there is no reason to also depend on RISCV

Signed-off-by: Conor Dooley <conor.dooley at microchip.com>
---
 drivers/clk/microchip/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/clk/microchip/Kconfig b/drivers/clk/microchip/Kconfig
index b46e864b3bd8..5c6d780870ab 100644
--- a/drivers/clk/microchip/Kconfig
+++ b/drivers/clk/microchip/Kconfig
@@ -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 ARCH_MICROCHIP || COMPILE_TEST
+	default ARCH_MICROCHIP
 	select AUXILIARY_BUS
 	help
 	  Supports Clock Configuration for PolarFire SoC
-- 
2.37.3




More information about the linux-riscv mailing list