blob: 6ec44a22278a419132ece3b12436010a52b7d1b3 [file] [log] [blame]
Loys Ollivier0cbb8a32019-06-17 21:29:48 +02001menu "SoC selection"
2
Atish Patra99b3e3d2021-03-03 12:02:49 -08003config 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
Loys Ollivier0cbb8a32019-06-17 21:29:48 +020010config SOC_SIFIVE
Krzysztof Kozlowskide29fe32019-11-21 04:20:57 +010011 bool "SiFive SoCs"
Kefeng Wangbc3e8f52019-10-24 15:20:03 +080012 select SERIAL_SIFIVE if TTY
13 select SERIAL_SIFIVE_CONSOLE if TTY
Krzysztof Kozlowskide29fe32019-11-21 04:20:57 +010014 select CLK_SIFIVE
Zong Li28108fc2020-12-09 17:49:13 +080015 select CLK_SIFIVE_PRCI
Krzysztof Kozlowskide29fe32019-11-21 04:20:57 +010016 select SIFIVE_PLIC
Randy Dunlap01f53152021-05-22 14:20:36 -070017 select RISCV_ERRATA_ALTERNATIVE
Vincent Chen1a0e5db2021-03-22 22:26:04 +080018 select ERRATA_SIFIVE
Krzysztof Kozlowskide29fe32019-11-21 04:20:57 +010019 help
20 This enables support for SiFive SoC platform hardware.
Loys Ollivier0cbb8a32019-06-17 21:29:48 +020021
Emil Renner Berthing3d245682021-10-10 16:10:32 +020022config SOC_STARFIVE
23 bool "StarFive SoCs"
24 select PINCTRL
25 select RESET_CONTROLLER
26 select SIFIVE_PLIC
27 help
28 This enables support for StarFive SoC platform hardware.
29
Anup Patel759bdc12019-12-03 03:49:31 +000030config SOC_VIRT
Kefeng Wangab7fbad2020-05-11 10:19:52 +080031 bool "QEMU Virt Machine"
Anup Patel2bc3fc82020-08-17 18:12:50 +053032 select CLINT_TIMER if RISCV_M_MODE
Kefeng Wangab7fbad2020-05-11 10:19:52 +080033 select POWER_RESET
34 select POWER_RESET_SYSCON
35 select POWER_RESET_SYSCON_POWEROFF
36 select GOLDFISH
37 select RTC_DRV_GOLDFISH if RTC_CLASS
38 select SIFIVE_PLIC
39 help
40 This enables support for QEMU Virt Machine.
Anup Patel759bdc12019-12-03 03:49:31 +000041
Damien Le Moal08734e02020-12-13 22:50:38 +090042config SOC_CANAAN
43 bool "Canaan Kendryte K210 SoC"
Christoph Hellwigc48c4a42020-03-16 09:47:39 +090044 depends on !MMU
Anup Patel2bc3fc82020-08-17 18:12:50 +053045 select CLINT_TIMER if RISCV_M_MODE
Damien Le Moal8759a422020-03-16 09:47:40 +090046 select SERIAL_SIFIVE if TTY
47 select SERIAL_SIFIVE_CONSOLE if TTY
48 select SIFIVE_PLIC
Damien Le Moal5a2308d2020-12-13 22:50:47 +090049 select ARCH_HAS_RESET_CONTROLLER
Damien Le Moald4c34d02021-01-12 09:58:40 +090050 select PINCTRL
Damien Le Moalfa590302021-03-11 19:24:24 +090051 select COMMON_CLK
52 select COMMON_CLK_K210
Christoph Hellwigc48c4a42020-03-16 09:47:39 +090053 help
Damien Le Moal08734e02020-12-13 22:50:38 +090054 This enables support for Canaan Kendryte K210 SoC platform hardware.
Christoph Hellwigc48c4a42020-03-16 09:47:39 +090055
Damien Le Moal08734e02020-12-13 22:50:38 +090056if SOC_CANAAN
Palmer Dabbelt8bb66172020-04-14 13:43:25 +090057
Damien Le Moal08734e02020-12-13 22:50:38 +090058config SOC_CANAAN_K210_DTB_BUILTIN
59 bool "Builtin device tree for the Canaan Kendryte K210"
60 depends on SOC_CANAAN
Palmer Dabbelt8bb66172020-04-14 13:43:25 +090061 default y
62 select OF
63 select BUILTIN_DTB
Palmer Dabbelt8bb66172020-04-14 13:43:25 +090064 help
Damien Le Moald5805af2020-12-13 22:50:37 +090065 Build a device tree for the Kendryte K210 into the Linux image.
Palmer Dabbelt8bb66172020-04-14 13:43:25 +090066 This option should be selected if no bootloader is being used.
67 If unsure, say Y.
68
Damien Le Moal08734e02020-12-13 22:50:38 +090069config SOC_CANAAN_K210_DTB_SOURCE
70 string "Source file for the Canaan Kendryte K210 builtin DTB"
71 depends on SOC_CANAAN
72 depends on SOC_CANAAN_K210_DTB_BUILTIN
Damien Le Moal67d96722021-02-10 14:02:23 +090073 default "k210_generic"
Damien Le Moald5805af2020-12-13 22:50:37 +090074 help
Damien Le Moal08734e02020-12-13 22:50:38 +090075 Base name (without suffix, relative to arch/riscv/boot/dts/canaan)
Damien Le Moald5805af2020-12-13 22:50:37 +090076 for the DTS file that will be used to produce the DTB linked into the
77 kernel.
78
79endif
80
Loys Ollivier0cbb8a32019-06-17 21:29:48 +020081endmenu