Skip to content

Commit a3116c8

Browse files
committed
Merge tag 'riscv-config-for-v6.10' of https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux into soc/drivers
RISC-V SoC Kconfig Updates for v6.10 A few different bits of SoC-related Kconfig work. The first part of this is shared with the DT updates - the modification of all SOC_CANAAN users to SOC_CANAAN_K210 to split the existing m-mode nommu k210 away from the k230 that is able to be used in a "common" kernel. The other thing here is the removal of most of the SOC_VENDOR options, with their ARCH_VENDOR equivalents that've been waiting in the wings for 1 year+ now made visible. Due a lapse on my part when originally adding the ARCH_VENDOR stuff, the Microchip transition isn't complete - the _POLARFIRE was a mistake to keep as there's gonna be non-PolarFire RISC-V stuff from Microchip soonTM. Signed-off-by: Conor Dooley <[email protected]> * tag 'riscv-config-for-v6.10' of https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux: riscv: config: enable ARCH_CANAAN in defconfig RISC-V: drop SOC_VIRT for ARCH_VIRT RISC-V: drop SOC_SIFIVE for ARCH_SIFIVE RISC-V: drop SOC_MICROCHIP_POLARFIRE for ARCH_MICROCHIP RISC-V: Drop unused SOC_CANAAN reset: k210: Deprecate SOC_CANAAN and use SOC_CANAAN_K210 pinctrl: k210: Deprecate SOC_CANAAN and use SOC_CANAAN_K210 clk: k210: Deprecate SOC_CANAAN and use SOC_CANAAN_K210 soc: canaan: Deprecate SOC_CANAAN and use SOC_CANAAN_K210 for K210 riscv: Kconfig.socs: Split ARCH_CANAAN and SOC_CANAAN_K210 Link: https://lore.kernel.org/r/20240503-mardi-underling-3d81a9f97329@spud Signed-off-by: Arnd Bergmann <[email protected]>
2 parents e067863 + cd899f8 commit a3116c8

File tree

14 files changed

+31
-32
lines changed

14 files changed

+31
-32
lines changed

arch/riscv/Kconfig.socs

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
menu "SoC selection"
22

33
config ARCH_MICROCHIP_POLARFIRE
4-
def_bool SOC_MICROCHIP_POLARFIRE
4+
def_bool ARCH_MICROCHIP
55

6-
config SOC_MICROCHIP_POLARFIRE
7-
bool "Microchip PolarFire SoCs"
6+
config ARCH_MICROCHIP
7+
bool "Microchip SoCs"
88
help
9-
This enables support for Microchip PolarFire SoC platforms.
9+
This enables support for Microchip SoC platforms.
1010

1111
config ARCH_RENESAS
1212
bool "Renesas RISC-V SoCs"
1313
help
1414
This enables support for the RISC-V based Renesas SoCs.
1515

1616
config ARCH_SIFIVE
17-
def_bool SOC_SIFIVE
18-
19-
config SOC_SIFIVE
2017
bool "SiFive SoCs"
2118
select ERRATA_SIFIVE if !XIP_KERNEL
2219
help
@@ -55,9 +52,6 @@ config ARCH_THEAD
5552
This enables support for the RISC-V based T-HEAD SoCs.
5653

5754
config ARCH_VIRT
58-
def_bool SOC_VIRT
59-
60-
config SOC_VIRT
6155
bool "QEMU Virt Machine"
6256
select CLINT_TIMER if RISCV_M_MODE
6357
select POWER_RESET
@@ -72,11 +66,13 @@ config SOC_VIRT
7266
This enables support for QEMU Virt Machine.
7367

7468
config ARCH_CANAAN
75-
def_bool SOC_CANAAN
69+
bool "Canaan Kendryte SoC"
70+
help
71+
This enables support for Canaan Kendryte series SoC platform hardware.
7672

77-
config SOC_CANAAN
73+
config SOC_CANAAN_K210
7874
bool "Canaan Kendryte K210 SoC"
79-
depends on !MMU
75+
depends on !MMU && ARCH_CANAAN
8076
select CLINT_TIMER if RISCV_M_MODE
8177
select ARCH_HAS_RESET_CONTROLLER
8278
select PINCTRL

arch/riscv/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ vdso-install-y += arch/riscv/kernel/vdso/vdso.so.dbg
154154
vdso-install-$(CONFIG_COMPAT) += arch/riscv/kernel/compat_vdso/compat_vdso.so.dbg
155155

156156
ifneq ($(CONFIG_XIP_KERNEL),y)
157-
ifeq ($(CONFIG_RISCV_M_MODE)$(CONFIG_ARCH_CANAAN),yy)
157+
ifeq ($(CONFIG_RISCV_M_MODE)$(CONFIG_SOC_CANAAN_K210),yy)
158158
KBUILD_IMAGE := $(boot)/loader.bin
159159
else
160160
ifeq ($(CONFIG_EFI_ZBOOT),)

arch/riscv/configs/defconfig

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,15 @@ CONFIG_BLK_DEV_INITRD=y
2525
CONFIG_EXPERT=y
2626
# CONFIG_SYSFS_SYSCALL is not set
2727
CONFIG_PROFILING=y
28-
CONFIG_SOC_MICROCHIP_POLARFIRE=y
28+
CONFIG_ARCH_MICROCHIP=y
2929
CONFIG_ARCH_RENESAS=y
30-
CONFIG_SOC_SIFIVE=y
30+
CONFIG_ARCH_SIFIVE=y
3131
CONFIG_ARCH_SOPHGO=y
3232
CONFIG_SOC_STARFIVE=y
3333
CONFIG_ARCH_SUNXI=y
3434
CONFIG_ARCH_THEAD=y
35-
CONFIG_SOC_VIRT=y
35+
CONFIG_ARCH_VIRT=y
36+
CONFIG_ARCH_CANAAN=y
3637
CONFIG_SMP=y
3738
CONFIG_HOTPLUG_CPU=y
3839
CONFIG_PM=y

arch/riscv/configs/nommu_k210_defconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ CONFIG_EXPERT=y
2727
CONFIG_SLUB=y
2828
CONFIG_SLUB_TINY=y
2929
# CONFIG_MMU is not set
30-
CONFIG_SOC_CANAAN=y
30+
CONFIG_ARCH_CANAAN=y
31+
CONFIG_SOC_CANAAN_K210=y
3132
CONFIG_NONPORTABLE=y
3233
CONFIG_SMP=y
3334
CONFIG_NR_CPUS=2

arch/riscv/configs/nommu_k210_sdcard_defconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ CONFIG_EXPERT=y
1919
CONFIG_SLUB=y
2020
CONFIG_SLUB_TINY=y
2121
# CONFIG_MMU is not set
22-
CONFIG_SOC_CANAAN=y
22+
CONFIG_ARCH_CANAAN=y
23+
CONFIG_SOC_CANAAN_K210=y
2324
CONFIG_NONPORTABLE=y
2425
CONFIG_SMP=y
2526
CONFIG_NR_CPUS=2

arch/riscv/configs/nommu_virt_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ CONFIG_EXPERT=y
2424
CONFIG_SLUB=y
2525
CONFIG_SLUB_TINY=y
2626
# CONFIG_MMU is not set
27-
CONFIG_SOC_VIRT=y
27+
CONFIG_ARCH_VIRT=y
2828
CONFIG_NONPORTABLE=y
2929
CONFIG_SMP=y
3030
CONFIG_CMDLINE="root=/dev/vda rw earlycon=uart8250,mmio,0x10000000,115200n8 console=ttyS0"

drivers/clk/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,8 @@ config COMMON_CLK_FIXED_MMIO
451451

452452
config COMMON_CLK_K210
453453
bool "Clock driver for the Canaan Kendryte K210 SoC"
454-
depends on OF && RISCV && SOC_CANAAN
455-
default SOC_CANAAN
454+
depends on OF && RISCV && SOC_CANAAN_K210
455+
default SOC_CANAAN_K210
456456
help
457457
Support for the Canaan Kendryte K210 RISC-V SoC clocks.
458458

drivers/pinctrl/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,13 +235,13 @@ config PINCTRL_INGENIC
235235

236236
config PINCTRL_K210
237237
bool "Pinctrl driver for the Canaan Kendryte K210 SoC"
238-
depends on RISCV && SOC_CANAAN && OF
238+
depends on RISCV && SOC_CANAAN_K210 && OF
239239
select GENERIC_PINMUX_FUNCTIONS
240240
select GENERIC_PINCONF
241241
select GPIOLIB
242242
select OF_GPIO
243243
select REGMAP_MMIO
244-
default SOC_CANAAN
244+
default SOC_CANAAN_K210
245245
help
246246
Add support for the Canaan Kendryte K210 RISC-V SOC Field
247247
Programmable IO Array (FPIOA) controller.

drivers/reset/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ config RESET_INTEL_GW
103103

104104
config RESET_K210
105105
bool "Reset controller driver for Canaan Kendryte K210 SoC"
106-
depends on (SOC_CANAAN || COMPILE_TEST) && OF
106+
depends on (SOC_CANAAN_K210 || COMPILE_TEST) && OF
107107
select MFD_SYSCON
108-
default SOC_CANAAN
108+
default SOC_CANAAN_K210
109109
help
110110
Support for the Canaan Kendryte K210 RISC-V SoC reset controller.
111111
Say Y if you want to control reset signals provided by this

drivers/soc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ obj-y += apple/
77
obj-y += aspeed/
88
obj-$(CONFIG_ARCH_AT91) += atmel/
99
obj-y += bcm/
10-
obj-$(CONFIG_SOC_CANAAN) += canaan/
10+
obj-$(CONFIG_ARCH_CANAAN) += canaan/
1111
obj-$(CONFIG_ARCH_DOVE) += dove/
1212
obj-$(CONFIG_MACH_DOVE) += dove/
1313
obj-y += fsl/

0 commit comments

Comments
 (0)