Loys Ollivier | 0cbb8a3 | 2019-06-17 21:29:48 +0200 | [diff] [blame] | 1 | menu "SoC selection" |
| 2 | |
Atish Patra | 99b3e3d | 2021-03-03 12:02:49 -0800 | [diff] [blame] | 3 | config 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 Ollivier | 0cbb8a3 | 2019-06-17 21:29:48 +0200 | [diff] [blame] | 10 | config SOC_SIFIVE |
Krzysztof Kozlowski | de29fe3 | 2019-11-21 04:20:57 +0100 | [diff] [blame] | 11 | bool "SiFive SoCs" |
Kefeng Wang | bc3e8f5 | 2019-10-24 15:20:03 +0800 | [diff] [blame] | 12 | select SERIAL_SIFIVE if TTY |
| 13 | select SERIAL_SIFIVE_CONSOLE if TTY |
Krzysztof Kozlowski | de29fe3 | 2019-11-21 04:20:57 +0100 | [diff] [blame] | 14 | select CLK_SIFIVE |
Zong Li | 28108fc | 2020-12-09 17:49:13 +0800 | [diff] [blame] | 15 | select CLK_SIFIVE_PRCI |
Krzysztof Kozlowski | de29fe3 | 2019-11-21 04:20:57 +0100 | [diff] [blame] | 16 | select SIFIVE_PLIC |
Randy Dunlap | 01f5315 | 2021-05-22 14:20:36 -0700 | [diff] [blame] | 17 | select RISCV_ERRATA_ALTERNATIVE |
Vincent Chen | 1a0e5db | 2021-03-22 22:26:04 +0800 | [diff] [blame] | 18 | select ERRATA_SIFIVE |
Krzysztof Kozlowski | de29fe3 | 2019-11-21 04:20:57 +0100 | [diff] [blame] | 19 | help |
| 20 | This enables support for SiFive SoC platform hardware. |
Loys Ollivier | 0cbb8a3 | 2019-06-17 21:29:48 +0200 | [diff] [blame] | 21 | |
Emil Renner Berthing | 3d24568 | 2021-10-10 16:10:32 +0200 | [diff] [blame] | 22 | config 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 Patel | 759bdc1 | 2019-12-03 03:49:31 +0000 | [diff] [blame] | 30 | config SOC_VIRT |
Kefeng Wang | ab7fbad | 2020-05-11 10:19:52 +0800 | [diff] [blame] | 31 | bool "QEMU Virt Machine" |
Anup Patel | 2bc3fc8 | 2020-08-17 18:12:50 +0530 | [diff] [blame] | 32 | select CLINT_TIMER if RISCV_M_MODE |
Kefeng Wang | ab7fbad | 2020-05-11 10:19:52 +0800 | [diff] [blame] | 33 | 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 Patel | 759bdc1 | 2019-12-03 03:49:31 +0000 | [diff] [blame] | 41 | |
Damien Le Moal | 08734e0 | 2020-12-13 22:50:38 +0900 | [diff] [blame] | 42 | config SOC_CANAAN |
| 43 | bool "Canaan Kendryte K210 SoC" |
Christoph Hellwig | c48c4a4 | 2020-03-16 09:47:39 +0900 | [diff] [blame] | 44 | depends on !MMU |
Anup Patel | 2bc3fc8 | 2020-08-17 18:12:50 +0530 | [diff] [blame] | 45 | select CLINT_TIMER if RISCV_M_MODE |
Damien Le Moal | 8759a42 | 2020-03-16 09:47:40 +0900 | [diff] [blame] | 46 | select SERIAL_SIFIVE if TTY |
| 47 | select SERIAL_SIFIVE_CONSOLE if TTY |
| 48 | select SIFIVE_PLIC |
Damien Le Moal | 5a2308d | 2020-12-13 22:50:47 +0900 | [diff] [blame] | 49 | select ARCH_HAS_RESET_CONTROLLER |
Damien Le Moal | d4c34d0 | 2021-01-12 09:58:40 +0900 | [diff] [blame] | 50 | select PINCTRL |
Damien Le Moal | fa59030 | 2021-03-11 19:24:24 +0900 | [diff] [blame] | 51 | select COMMON_CLK |
| 52 | select COMMON_CLK_K210 |
Christoph Hellwig | c48c4a4 | 2020-03-16 09:47:39 +0900 | [diff] [blame] | 53 | help |
Damien Le Moal | 08734e0 | 2020-12-13 22:50:38 +0900 | [diff] [blame] | 54 | This enables support for Canaan Kendryte K210 SoC platform hardware. |
Christoph Hellwig | c48c4a4 | 2020-03-16 09:47:39 +0900 | [diff] [blame] | 55 | |
Damien Le Moal | 08734e0 | 2020-12-13 22:50:38 +0900 | [diff] [blame] | 56 | if SOC_CANAAN |
Palmer Dabbelt | 8bb6617 | 2020-04-14 13:43:25 +0900 | [diff] [blame] | 57 | |
Damien Le Moal | 08734e0 | 2020-12-13 22:50:38 +0900 | [diff] [blame] | 58 | config SOC_CANAAN_K210_DTB_BUILTIN |
| 59 | bool "Builtin device tree for the Canaan Kendryte K210" |
| 60 | depends on SOC_CANAAN |
Palmer Dabbelt | 8bb6617 | 2020-04-14 13:43:25 +0900 | [diff] [blame] | 61 | default y |
| 62 | select OF |
| 63 | select BUILTIN_DTB |
Palmer Dabbelt | 8bb6617 | 2020-04-14 13:43:25 +0900 | [diff] [blame] | 64 | help |
Damien Le Moal | d5805af | 2020-12-13 22:50:37 +0900 | [diff] [blame] | 65 | Build a device tree for the Kendryte K210 into the Linux image. |
Palmer Dabbelt | 8bb6617 | 2020-04-14 13:43:25 +0900 | [diff] [blame] | 66 | This option should be selected if no bootloader is being used. |
| 67 | If unsure, say Y. |
| 68 | |
Damien Le Moal | 08734e0 | 2020-12-13 22:50:38 +0900 | [diff] [blame] | 69 | config 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 Moal | 67d9672 | 2021-02-10 14:02:23 +0900 | [diff] [blame] | 73 | default "k210_generic" |
Damien Le Moal | d5805af | 2020-12-13 22:50:37 +0900 | [diff] [blame] | 74 | help |
Damien Le Moal | 08734e0 | 2020-12-13 22:50:38 +0900 | [diff] [blame] | 75 | Base name (without suffix, relative to arch/riscv/boot/dts/canaan) |
Damien Le Moal | d5805af | 2020-12-13 22:50:37 +0900 | [diff] [blame] | 76 | for the DTS file that will be used to produce the DTB linked into the |
| 77 | kernel. |
| 78 | |
| 79 | endif |
| 80 | |
Loys Ollivier | 0cbb8a3 | 2019-06-17 21:29:48 +0200 | [diff] [blame] | 81 | endmenu |