]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: Add Kendryte K210 SoC support
authorChristoph Hellwig <hch@lst.de>
Mon, 16 Mar 2020 00:47:39 +0000 (09:47 +0900)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Fri, 3 Apr 2020 17:49:52 +0000 (10:49 -0700)
commit09f0c0891cdde9f73ce8d39243d08388b4dbddaf
tree31be2ea1d5a0208300a07d9052f98beaf89c6395
parent03750deb405d0d59595eaa82d582e4b38d53ca88
riscv: Add Kendryte K210 SoC support

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>
arch/riscv/Kconfig.socs
drivers/soc/Kconfig
drivers/soc/Makefile
drivers/soc/kendryte/Kconfig [new file with mode: 0644]
drivers/soc/kendryte/Makefile [new file with mode: 0644]
drivers/soc/kendryte/k210-sysctl.c [new file with mode: 0644]