File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,11 +72,17 @@ config SOC_VIRT
7272 This enables support for QEMU Virt Machine.
7373
7474config ARCH_CANAAN
75- def_bool SOC_CANAAN
75+ bool "Canaan Kendryte SoC"
76+ help
77+ This enables support for Canaan Kendryte series SoC platform hardware.
7678
7779config SOC_CANAAN
80+ def_bool SOC_CANAAN_K210
81+ depends on ARCH_CANAAN
82+
83+ config SOC_CANAAN_K210
7884 bool "Canaan Kendryte K210 SoC"
79- depends on !MMU
85+ depends on !MMU && ARCH_CANAAN
8086 select CLINT_TIMER if RISCV_M_MODE
8187 select ARCH_HAS_RESET_CONTROLLER
8288 select PINCTRL
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ vdso-install-y += arch/riscv/kernel/vdso/vdso.so.dbg
154154vdso-install-$(CONFIG_COMPAT) += arch/riscv/kernel/compat_vdso/compat_vdso.so.dbg:../compat_vdso/compat_vdso.so
155155
156156ifneq ($(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)
158158KBUILD_IMAGE := $(boot ) /loader.bin
159159else
160160ifeq ($(CONFIG_EFI_ZBOOT ) ,)
Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ CONFIG_EXPERT=y
2727CONFIG_SLUB=y
2828CONFIG_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
3132CONFIG_NONPORTABLE=y
3233CONFIG_SMP=y
3334CONFIG_NR_CPUS=2
Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ CONFIG_EXPERT=y
1919CONFIG_SLUB=y
2020CONFIG_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
2324CONFIG_NONPORTABLE=y
2425CONFIG_SMP=y
2526CONFIG_NR_CPUS=2
You can’t perform that action at this time.
0 commit comments