mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 13:14:07 +08:00
c48c4a4c7e
Add support for the Kendryte K210 RISC-V SoC. For now, this support only provides a simple sysctl driver allowing to setup the CPU and uart clock. This support is enabled through the new Kconfig option SOC_KENDRYTE and defines the config option CONFIG_K210_SYSCTL to enable the K210 SoC sysctl driver compilation. The sysctl driver also registers an early SoC initialization function allowing enabling the general purpose use of the 2MB of SRAM normally reserved for the SoC AI engine. This initialization function is automatically called before the dt early initialization using the flat dt root node compatible property matching the value "kendryte,k210". Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> [Palmer: Add missing endmenu in Kconfig.socs] Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
44 lines
1.0 KiB
Plaintext
44 lines
1.0 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 VIRTIO_PCI
|
|
select VIRTIO_BALLOON
|
|
select VIRTIO_MMIO
|
|
select VIRTIO_CONSOLE
|
|
select VIRTIO_NET
|
|
select NET_9P_VIRTIO
|
|
select VIRTIO_BLK
|
|
select SCSI_VIRTIO
|
|
select DRM_VIRTIO_GPU
|
|
select HW_RANDOM_VIRTIO
|
|
select RPMSG_CHAR
|
|
select RPMSG_VIRTIO
|
|
select CRYPTO_DEV_VIRTIO
|
|
select VIRTIO_INPUT
|
|
select POWER_RESET_SYSCON
|
|
select POWER_RESET_SYSCON_POWEROFF
|
|
select GOLDFISH
|
|
select RTC_DRV_GOLDFISH
|
|
select SIFIVE_PLIC
|
|
help
|
|
This enables support for QEMU Virt Machine.
|
|
|
|
config SOC_KENDRYTE
|
|
bool "Kendryte K210 SoC"
|
|
depends on !MMU
|
|
help
|
|
This enables support for Kendryte K210 SoC platform hardware.
|
|
|
|
endmenu
|