Skip to contentSkip to conversation

riscv: add Siflower RISC-V SoC family Kconfig support

PATCH Superseded Chuanhong Guo 1 participant 2 messages Jan 20, 2025 RISC-V

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 riscv: add Siflower RISC-V SoC family Kconfig support

Siflower RISC-V SoCs, including SF21A6826, SF21H8898 and some other upcomping chips, are RISC-V chips with T-Head C908 cores for home routers and gateways. Add a Kconfig entry named ARCH_SIFLOWER for them.
Notably these chips uses ARM PL011 for UART. ARM_AMBA is selected for its driver.

---
 arch/riscv/Kconfig.socs | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/riscv/Kconfig.socs +9 -0
index 1916cf7ba450..2a700c51594d 100644
@@ -19,6 +19,15 @@ config ARCH_SIFIVE
 	help
 	  This enables support for SiFive SoC platform hardware.
 
+config ARCH_SIFLOWER
+	def_bool SOC_SIFLOWER
+
+config SOC_SIFLOWER
+	bool "Siflower RISC-V SoCs"
+	select ARM_AMBA if TTY
+	help
+	  This enables support for Siflower RISC-V SoC platform hardware.
+
 config ARCH_SOPHGO
 	bool "Sophgo SoCs"
 	help
Signature · 1 line
2.48.1
#1 lore raw
Quoted 18 lines · Chuanhong Guo

Siflower RISC-V SoCs, including SF21A6826, SF21H8898 and some other upcomping chips, are RISC-V chips with T-Head C908 cores for home routers and gateways. Add a Kconfig entry named ARCH_SIFLOWER for them.
Notably these chips uses ARM PL011 for UART. ARM_AMBA is selected for its driver.

---
 arch/riscv/Kconfig.socs | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/riscv/Kconfig.socs +0 -0
index 1916cf7ba450..2a700c51594d 100644

arch/riscv/Kconfig.socs config ARCH_SIFIVE · line 25

Quoted 7 lines
arch/riscv/Kconfig.socs +4 -0
@@ -19,6 +19,15 @@ config ARCH_SIFIVE
        help
          This enables support for SiFive SoC platform hardware.
 
+config ARCH_SIFLOWER
+       def_bool SOC_SIFLOWER
+
+config SOC_SIFLOWER

Ooooops. I removed SOC_SIFLOWER but forgot to commit it. I'll send a v2. Sorry for the noise.

Quoted 11 lines
arch/riscv/Kconfig.socs +5 -1
+       bool "Siflower RISC-V SoCs"
+       select ARM_AMBA if TTY
+       help
+         This enables support for Siflower RISC-V SoC platform hardware.
+
 config ARCH_SOPHGO
        bool "Sophgo SoCs"
        help
--

2.48.1

--
Regards,
Chuanhong Guo