xref: /openbmc/linux/arch/riscv/Kconfig.socs (revision ef4290e6)
1menu "SoC selection"
2
3config 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
9config ARCH_RENESAS
10	bool "Renesas RISC-V SoCs"
11	help
12	  This enables support for the RISC-V based Renesas SoCs.
13
14config 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
24config 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
31config 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
45config 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
58if SOC_CANAAN
59
60config 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
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
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
81endif # SOC_CANAAN
82
83endmenu # "SoC selection"
84