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