forked from Minki/linux
d5805af9fe
All SiPeed K210 MAIX boards have the exact same vendor, arch and implementation IDs, preventing differentiation to select the correct device tree to use through the SOC_BUILTIN_DTB_DECLARE() macro. This result in this macro to be useless and mandates changing the code of the sysctl driver to change the builtin device tree suitable for the target board. Fix this problem by removing the SOC_BUILTIN_DTB_DECLARE() macro since it is used only for the K210 support. The code searching the builtin DTBs using the vendor, arch an implementation IDs is also removed. Support for builtin DTB falls back to the simpler and more traditional handling of builtin DTB using the CONFIG_BUILTIN_DTB option, similarly to other architectures. Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
61 lines
1.5 KiB
Plaintext
61 lines
1.5 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_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.
|
|
|
|
if SOC_KENDRYTE
|
|
|
|
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
|
|
help
|
|
Build 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.
|
|
|
|
config SOC_KENDRYTE_K210_DTB_SOURCE
|
|
string "Source file for the Kendryte K210 builtin DTB"
|
|
depends on SOC_KENDRYTE
|
|
depends on SOC_KENDRYTE_K210_DTB_BUILTIN
|
|
default "k210"
|
|
help
|
|
Base name (without suffix, relative to arch/riscv/boot/dts/kendryte)
|
|
for the DTS file that will be used to produce the DTB linked into the
|
|
kernel.
|
|
|
|
endif
|
|
|
|
endmenu
|