RISC-V: kconfig.socs: convert usage of SOC_CANAAN to ARCH_CANAAN
[linux-2.6-microblaze.git] / arch / riscv / Kconfig.socs
1 menu "SoC selection"
2
3 config ARCH_MICROCHIP_POLARFIRE
4         def_bool SOC_MICROCHIP_POLARFIRE
5
6 config SOC_MICROCHIP_POLARFIRE
7         bool "Microchip PolarFire SoCs"
8         select MCHP_CLK_MPFS
9         help
10           This enables support for Microchip PolarFire SoC platforms.
11
12 config ARCH_RENESAS
13         bool "Renesas RISC-V SoCs"
14         help
15           This enables support for the RISC-V based Renesas SoCs.
16
17 config ARCH_SIFIVE
18         def_bool SOC_SIFIVE
19
20 config SOC_SIFIVE
21         bool "SiFive SoCs"
22         select SERIAL_SIFIVE if TTY
23         select SERIAL_SIFIVE_CONSOLE if TTY
24         select CLK_SIFIVE
25         select CLK_SIFIVE_PRCI
26         select ERRATA_SIFIVE if !XIP_KERNEL
27         help
28           This enables support for SiFive SoC platform hardware.
29
30 config ARCH_STARFIVE
31         def_bool SOC_STARFIVE
32
33 config SOC_STARFIVE
34         bool "StarFive SoCs"
35         select PINCTRL
36         select RESET_CONTROLLER
37         help
38           This enables support for StarFive SoC platform hardware.
39
40 config ARCH_VIRT
41         def_bool SOC_VIRT
42         
43 config SOC_VIRT
44         bool "QEMU Virt Machine"
45         select CLINT_TIMER if RISCV_M_MODE
46         select POWER_RESET
47         select POWER_RESET_SYSCON
48         select POWER_RESET_SYSCON_POWEROFF
49         select GOLDFISH
50         select RTC_DRV_GOLDFISH if RTC_CLASS
51         select PM_GENERIC_DOMAINS if PM
52         select PM_GENERIC_DOMAINS_OF if PM && OF
53         select RISCV_SBI_CPUIDLE if CPU_IDLE && RISCV_SBI
54         help
55           This enables support for QEMU Virt Machine.
56
57 config ARCH_CANAAN
58         def_bool SOC_CANAAN
59
60 config SOC_CANAAN
61         bool "Canaan Kendryte K210 SoC"
62         depends on !MMU
63         select CLINT_TIMER if RISCV_M_MODE
64         select SERIAL_SIFIVE if TTY
65         select SERIAL_SIFIVE_CONSOLE if TTY
66         select ARCH_HAS_RESET_CONTROLLER
67         select PINCTRL
68         select COMMON_CLK
69         select COMMON_CLK_K210
70         help
71           This enables support for Canaan Kendryte K210 SoC platform hardware.
72
73 if ARCH_CANAAN
74
75 config ARCH_CANAAN_K210_DTB_BUILTIN
76         def_bool SOC_CANAAN_K210_DTB_BUILTIN
77
78 config SOC_CANAAN_K210_DTB_BUILTIN
79         bool "Builtin device tree for the Canaan Kendryte K210"
80         depends on ARCH_CANAAN
81         default y
82         select OF
83         select BUILTIN_DTB
84         help
85           Build a device tree for the Kendryte K210 into the Linux image.
86           This option should be selected if no bootloader is being used.
87           If unsure, say Y.
88
89 config ARCH_CANAAN_K210_DTB_SOURCE
90         def_bool SOC_CANAAN_K210_DTB_SOURCE
91
92 config SOC_CANAAN_K210_DTB_SOURCE
93         string "Source file for the Canaan Kendryte K210 builtin DTB"
94         depends on ARCH_CANAAN
95         depends on ARCH_CANAAN_K210_DTB_BUILTIN
96         default "k210_generic"
97         help
98           Base name (without suffix, relative to arch/riscv/boot/dts/canaan)
99           for the DTS file that will be used to produce the DTB linked into the
100           kernel.
101
102 endif # ARCH_CANAAN
103
104 endmenu # "SoC selection"