Skip to contentSkip to conversation

soc: nuvoton: Add a menu for Nuvoton SoC drivers

PATCH New Jonathan Neuschäfer 1 participant 2 messages Mar 11, 2024

lore
Share & tools
lore
#0 lore raw

PATCH v6 1/2 soc: nuvoton: Add a menu for Nuvoton SoC drivers

Add a menu "Nuvoton SoC drivers" to make it easier to add other Nuvoton SoC drivers later on and to prevent asking about the Nuvoton WPCM450 SoC driver when configuring a kernel without support for Nuvoton SoCs.

---
v6:
- no changes

v5:
- Rebase on 6.6-rc2

v4:
- Add Geert's tag
- Fix commit reference
- Change Link tag to Closes

v3:
- Split the commit into two
- Reword the commit messages a bit

v2:
- https://lore.kernel.org/lkml/[email protected]/
- Commit message improvements, as suggested by Geert Uytterhoeven.
- Add Link after Reviewed-by, as checkpatch.pl now suggests

---
 drivers/soc/nuvoton/Kconfig | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/soc/nuvoton/Kconfig +6 -1
index df46182088ec21..853392c8a9151a 100644
@@ -1,5 +1,8 @@
 # SPDX-License-Identifier: GPL-2.0
-menuconfig WPCM450_SOC
+menu "Nuvoton SoC drivers"
+	depends on ARCH_NPCM || COMPILE_TEST
+
+config WPCM450_SOC
 	tristate "Nuvoton WPCM450 SoC driver"
 	default y if ARCH_WPCM450
 	select SOC_BUS
@@ -9,3 +12,5 @@ menuconfig WPCM450_SOC
 
 	  This driver provides information such as the SoC model and
 	  revision.
+
+endmenu

--
2.43.0

#1 lore raw

PATCH v6 2/2 soc: nuvoton: Add "select REGMAP" to WPCM450 SoC driver

Select CONFIG_REGMAP from CONFIG_WPCM450_SOC, because the driver relies on regmap to work.

---
v6:
- no changes

v5:
- Rebase on v6.6-rc2

v4:
- Add Geert's R-b tag
- Fix commit reference
- Change Link tag to Closes

v3:
- Split the commit into two
- Reword the commit messages a bit

v2:
- https://lore.kernel.org/lkml/[email protected]/
- Commit message improvements, as suggested by Geert Uytterhoeven.
- Add Link after Reviewed-by, as checkpatch.pl now suggests

---
 drivers/soc/nuvoton/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/soc/nuvoton/Kconfig +1 -0
index 853392c8a9151a..2167d3d739d84b 100644
@@ -6,6 +6,7 @@ config WPCM450_SOC
 	tristate "Nuvoton WPCM450 SoC driver"
 	default y if ARCH_WPCM450
 	select SOC_BUS
+	select REGMAP
 	help
 	  Say Y here to compile the SoC information driver for Nuvoton
 	  WPCM450 SoCs.

--
2.43.0