Skip to contentSkip to conversation

reset: Enable RESET_SIMPLE based on ARCH_WPCM450, not ARCH_NPCM

PATCH In review Jonathan Neuschäfer 1 participant 2 messages Apr 12, 2023 – Apr 15, 2023 Reset controller framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 reset: Enable RESET_SIMPLE based on ARCH_WPCM450, not ARCH_NPCM

The reset-simple driver is used on Nuvoton WPCM450, but not on other chips of the WPCM/NPCM family.

Narrow down the "default ARCH_..." line from ARCH_NPCM to ARCH_WPCM450, to avoid unnecessarily compiling reset-simple on these other chips.

---
 drivers/reset/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/reset/Kconfig +1 -1
index 4b36cdc73576c..16e111d213560 100644
@@ -208,7 +208,7 @@ config RESET_SCMI
 
 config RESET_SIMPLE
 	bool "Simple Reset Controller Driver" if COMPILE_TEST || EXPERT
-	default ARCH_ASPEED || ARCH_BCMBCA || ARCH_BITMAIN || ARCH_REALTEK || ARCH_STM32 || (ARCH_INTEL_SOCFPGA && ARM64) || ARCH_SUNXI || ARC || ARCH_NPCM
+	default ARCH_ASPEED || ARCH_BCMBCA || ARCH_BITMAIN || ARCH_REALTEK || ARCH_STM32 || (ARCH_INTEL_SOCFPGA && ARM64) || ARCH_SUNXI || ARC || ARCH_WPCM450
 	depends on HAS_IOMEM
 	help
 	  This enables a simple reset controller driver for reset lines that

--
2.39.2

#1 lore raw
Quoted 10 lines · Jonathan Neuschäfer

The reset-simple driver is used on Nuvoton WPCM450, but not on other chips of the WPCM/NPCM family.

Narrow down the "default ARCH_..." line from ARCH_NPCM to ARCH_WPCM450, to avoid unnecessarily compiling reset-simple on these other chips.

---

Ah, sorry, please disregard.

This patch won't work as-is, because it depends on the WPCM450 clk driver patch, that isn't applied yet. I'll fold it into that patch.

Jonathan

Quoted 19 lines
 drivers/reset/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/reset/Kconfig +1 -2
index 4b36cdc73576c..16e111d213560 100644
@@ -208,7 +208,7 @@ config RESET_SCMI
 
 config RESET_SIMPLE
 	bool "Simple Reset Controller Driver" if COMPILE_TEST || EXPERT
-	default ARCH_ASPEED || ARCH_BCMBCA || ARCH_BITMAIN || ARCH_REALTEK || ARCH_STM32 || (ARCH_INTEL_SOCFPGA && ARM64) || ARCH_SUNXI || ARC || ARCH_NPCM
+	default ARCH_ASPEED || ARCH_BCMBCA || ARCH_BITMAIN || ARCH_REALTEK || ARCH_STM32 || (ARCH_INTEL_SOCFPGA && ARM64) || ARCH_SUNXI || ARC || ARCH_WPCM450
 	depends on HAS_IOMEM
 	help
 	  This enables a simple reset controller driver for reset lines that
--

2.39.2