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