Linux 6.1-rc1
[linux-2.6-block.git] / arch / riscv / Kconfig.socs
CommitLineData
0cbb8a32
LO
1menu "SoC selection"
2
99b3e3d4
AP
3config SOC_MICROCHIP_POLARFIRE
4 bool "Microchip PolarFire SoCs"
5 select MCHP_CLK_MPFS
6 select SIFIVE_PLIC
7 help
8 This enables support for Microchip PolarFire SoC platforms.
9
0cbb8a32 10config SOC_SIFIVE
de29fe30 11 bool "SiFive SoCs"
bc3e8f5d
KW
12 select SERIAL_SIFIVE if TTY
13 select SERIAL_SIFIVE_CONSOLE if TTY
de29fe30 14 select CLK_SIFIVE
28108fc8 15 select CLK_SIFIVE_PRCI
de29fe30 16 select SIFIVE_PLIC
c80ee64a 17 select ERRATA_SIFIVE if !XIP_KERNEL
de29fe30
KK
18 help
19 This enables support for SiFive SoC platform hardware.
0cbb8a32 20
3d24568b
ERB
21config SOC_STARFIVE
22 bool "StarFive SoCs"
23 select PINCTRL
24 select RESET_CONTROLLER
25 select SIFIVE_PLIC
26 help
27 This enables support for StarFive SoC platform hardware.
28
759bdc16 29config SOC_VIRT
ab7fbad0 30 bool "QEMU Virt Machine"
2bc3fc87 31 select CLINT_TIMER if RISCV_M_MODE
ab7fbad0
KW
32 select POWER_RESET
33 select POWER_RESET_SYSCON
34 select POWER_RESET_SYSCON_POWEROFF
35 select GOLDFISH
36 select RTC_DRV_GOLDFISH if RTC_CLASS
37 select SIFIVE_PLIC
c5179ef1
AP
38 select PM_GENERIC_DOMAINS if PM
39 select PM_GENERIC_DOMAINS_OF if PM && OF
bf9bac40 40 select RISCV_SBI_CPUIDLE if CPU_IDLE && RISCV_SBI
ab7fbad0
KW
41 help
42 This enables support for QEMU Virt Machine.
759bdc16 43
08734e05
DLM
44config SOC_CANAAN
45 bool "Canaan Kendryte K210 SoC"
c48c4a4c 46 depends on !MMU
2bc3fc87 47 select CLINT_TIMER if RISCV_M_MODE
8759a42b
DLM
48 select SERIAL_SIFIVE if TTY
49 select SERIAL_SIFIVE_CONSOLE if TTY
50 select SIFIVE_PLIC
5a2308da 51 select ARCH_HAS_RESET_CONTROLLER
d4c34d09 52 select PINCTRL
fa59030b
DLM
53 select COMMON_CLK
54 select COMMON_CLK_K210
c48c4a4c 55 help
08734e05 56 This enables support for Canaan Kendryte K210 SoC platform hardware.
c48c4a4c 57
08734e05 58if SOC_CANAAN
8bb66174 59
08734e05
DLM
60config SOC_CANAAN_K210_DTB_BUILTIN
61 bool "Builtin device tree for the Canaan Kendryte K210"
62 depends on SOC_CANAAN
8bb66174
PD
63 default y
64 select OF
65 select BUILTIN_DTB
8bb66174 66 help
d5805af9 67 Build a device tree for the Kendryte K210 into the Linux image.
8bb66174
PD
68 This option should be selected if no bootloader is being used.
69 If unsure, say Y.
70
08734e05
DLM
71config SOC_CANAAN_K210_DTB_SOURCE
72 string "Source file for the Canaan Kendryte K210 builtin DTB"
73 depends on SOC_CANAAN
74 depends on SOC_CANAAN_K210_DTB_BUILTIN
67d96729 75 default "k210_generic"
d5805af9 76 help
08734e05 77 Base name (without suffix, relative to arch/riscv/boot/dts/canaan)
d5805af9
DLM
78 for the DTS file that will be used to produce the DTB linked into the
79 kernel.
80
ca503bb2 81endif # SOC_CANAAN
d5805af9 82
ca503bb2 83endmenu # "SoC selection"