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