Merge tag 'riscv-for-linus-6.2-mw1' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / arch / riscv / Kconfig.socs
1 menu "SoC selection"
2
3 config SOC_MICROCHIP_POLARFIRE
4         bool "Microchip PolarFire SoCs"
5         select MCHP_CLK_MPFS
6         help
7           This enables support for Microchip PolarFire SoC platforms.
8
9 config ARCH_RENESAS
10         bool "Renesas RISC-V SoCs"
11         help
12           This enables support for the RISC-V based Renesas SoCs.
13
14 config SOC_SIFIVE
15         bool "SiFive SoCs"
16         select SERIAL_SIFIVE if TTY
17         select SERIAL_SIFIVE_CONSOLE if TTY
18         select CLK_SIFIVE
19         select CLK_SIFIVE_PRCI
20         select ERRATA_SIFIVE if !XIP_KERNEL
21         help
22           This enables support for SiFive SoC platform hardware.
23
24 config SOC_STARFIVE
25         bool "StarFive SoCs"
26         select PINCTRL
27         select RESET_CONTROLLER
28         help
29           This enables support for StarFive SoC platform hardware.
30
31 config SOC_VIRT
32         bool "QEMU Virt Machine"
33         select CLINT_TIMER if RISCV_M_MODE
34         select POWER_RESET
35         select POWER_RESET_SYSCON
36         select POWER_RESET_SYSCON_POWEROFF
37         select GOLDFISH
38         select RTC_DRV_GOLDFISH if RTC_CLASS
39         select PM_GENERIC_DOMAINS if PM
40         select PM_GENERIC_DOMAINS_OF if PM && OF
41         select RISCV_SBI_CPUIDLE if CPU_IDLE && RISCV_SBI
42         help
43           This enables support for QEMU Virt Machine.
44
45 config SOC_CANAAN
46         bool "Canaan Kendryte K210 SoC"
47         depends on !MMU
48         select CLINT_TIMER if RISCV_M_MODE
49         select SERIAL_SIFIVE if TTY
50         select SERIAL_SIFIVE_CONSOLE if TTY
51         select ARCH_HAS_RESET_CONTROLLER
52         select PINCTRL
53         select COMMON_CLK
54         select COMMON_CLK_K210
55         help
56           This enables support for Canaan Kendryte K210 SoC platform hardware.
57
58 if SOC_CANAAN
59
60 config SOC_CANAAN_K210_DTB_BUILTIN
61         bool "Builtin device tree for the Canaan Kendryte K210"
62         depends on SOC_CANAAN
63         default y
64         select OF
65         select BUILTIN_DTB
66         help
67           Build a device tree for the Kendryte K210 into the Linux image.
68           This option should be selected if no bootloader is being used.
69           If unsure, say Y.
70
71 config 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
75         default "k210_generic"
76         help
77           Base name (without suffix, relative to arch/riscv/boot/dts/canaan)
78           for the DTS file that will be used to produce the DTB linked into the
79           kernel.
80
81 endif # SOC_CANAAN
82
83 endmenu # "SoC selection"