mirror of
https://github.com/torvalds/linux.git
synced 2024-12-21 10:31:54 +00:00
2bc3fc877a
Right now the RISC-V timer driver is convoluted to support: 1. Linux RISC-V S-mode (with MMU) where it will use TIME CSR for clocksource and SBI timer calls for clockevent device. 2. Linux RISC-V M-mode (without MMU) where it will use CLINT MMIO counter register for clocksource and CLINT MMIO compare register for clockevent device. We now have a separate CLINT timer driver which also provide CLINT based IPI operations so let's remove CLINT MMIO related code from arch/riscv directory and RISC-V timer driver. Signed-off-by: Anup Patel <anup.patel@wdc.com> Tested-by: Emil Renner Berhing <kernel@esmil.dk> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org> Reviewed-by: Atish Patra <atish.patra@wdc.com> Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
52 lines
1.2 KiB
Plaintext
52 lines
1.2 KiB
Plaintext
menu "SoC selection"
|
|
|
|
config SOC_SIFIVE
|
|
bool "SiFive SoCs"
|
|
select SERIAL_SIFIVE if TTY
|
|
select SERIAL_SIFIVE_CONSOLE if TTY
|
|
select CLK_SIFIVE
|
|
select CLK_SIFIVE_FU540_PRCI
|
|
select SIFIVE_PLIC
|
|
help
|
|
This enables support for SiFive SoC platform hardware.
|
|
|
|
config SOC_VIRT
|
|
bool "QEMU Virt Machine"
|
|
select CLINT_TIMER if RISCV_M_MODE
|
|
select POWER_RESET
|
|
select POWER_RESET_SYSCON
|
|
select POWER_RESET_SYSCON_POWEROFF
|
|
select GOLDFISH
|
|
select RTC_DRV_GOLDFISH if RTC_CLASS
|
|
select SIFIVE_PLIC
|
|
help
|
|
This enables support for QEMU Virt Machine.
|
|
|
|
config SOC_KENDRYTE
|
|
bool "Kendryte K210 SoC"
|
|
depends on !MMU
|
|
select CLINT_TIMER if RISCV_M_MODE
|
|
select SERIAL_SIFIVE if TTY
|
|
select SERIAL_SIFIVE_CONSOLE if TTY
|
|
select SIFIVE_PLIC
|
|
help
|
|
This enables support for Kendryte K210 SoC platform hardware.
|
|
|
|
config SOC_KENDRYTE_K210_DTB
|
|
def_bool y
|
|
depends on SOC_KENDRYTE_K210_DTB_BUILTIN
|
|
|
|
config SOC_KENDRYTE_K210_DTB_BUILTIN
|
|
bool "Builtin device tree for the Kendryte K210"
|
|
depends on SOC_KENDRYTE
|
|
default y
|
|
select OF
|
|
select BUILTIN_DTB
|
|
select SOC_KENDRYTE_K210_DTB
|
|
help
|
|
Builds a device tree for the Kendryte K210 into the Linux image.
|
|
This option should be selected if no bootloader is being used.
|
|
If unsure, say Y.
|
|
|
|
endmenu
|