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