@@ -22,10 +22,35 @@ config SOC_STARFIVE
bool "StarFive SoCs"
select PINCTRL
select RESET_CONTROLLER
+ select RESET_STARFIVE
+ help
+ This enables support for StarFive SoC platform hardware.
+
+if SOC_STARFIVE
+
+config SOC_JH7100
+ bool "StarFive JH7100 SoC support"
+ depends on SOC_STARFIVE
select SIFIVE_L2
select SIFIVE_PLIC
+ select CLK_STARFIVE_JH7100
+ select PINCTRL_STARFIVE_JH7100
+ default SOC_STARFIVE
help
- This enables support for StarFive SoC platform hardware.
+ This enables support for StarFive JH7100 SoC.
+
+config SOC_JH7110
+ bool "StarFive JH7110 SoC support"
+ depends on SOC_STARFIVE
+ select SIFIVE_L2
+ select SIFIVE_PLIC
+ select CLK_STARFIVE_JH7110_SYS
+ select PINCTRL_STARFIVE_JH7110
+ default SOC_STARFIVE
+ help
+ This enables support for StarFive JH7110 SoC.
+
+endif
config SOC_VIRT
bool "QEMU Virt Machine"
@@ -1,3 +1,3 @@
# SPDX-License-Identifier: GPL-2.0
-dtb-$(CONFIG_SOC_STARFIVE) += jh7100-beaglev-starlight.dtb
-dtb-$(CONFIG_SOC_STARFIVE) += jh7110-starfive-visionfive-v2.dtb
+dtb-$(CONFIG_SOC_JH7100) += jh7100-beaglev-starlight.dtb
+dtb-$(CONFIG_SOC_JH7110) += jh7110-starfive-visionfive-v2.dtb
@@ -5,36 +5,34 @@ config CLK_STARFIVE
config CLK_STARFIVE_JH7100
bool "StarFive JH7100 clock support"
- depends on SOC_STARFIVE || COMPILE_TEST
+ depends on SOC_JH7100 || COMPILE_TEST
select CLK_STARFIVE
- default SOC_STARFIVE
help
Say yes here to support the clock controller on the StarFive JH7100
SoC.
config CLK_STARFIVE_JH7100_AUDIO
tristate "StarFive JH7100 audio clock support"
- depends on SOC_STARFIVE || COMPILE_TEST
+ depends on SOC_JH7100 || COMPILE_TEST
select CLK_STARFIVE
- default m if SOC_STARFIVE
+ default m if SOC_JH7100
help
Say Y or M here to support the audio clocks on the StarFive JH7100
SoC.
config CLK_STARFIVE_JH7110_SYS
bool "StarFive JH7110 system clock support"
- depends on SOC_STARFIVE || COMPILE_TEST
+ depends on SOC_JH7110 || COMPILE_TEST
select CLK_STARFIVE
- default SOC_STARFIVE
help
Say yes here to support the system clock controller on the
StarFive JH7110 SoC.
config CLK_STARFIVE_JH7110_AON
tristate "StarFive JH7110 always-on clock support"
- depends on SOC_STARFIVE || COMPILE_TEST
+ depends on SOC_JH7110 || COMPILE_TEST
select CLK_STARFIVE
- default m if SOC_STARFIVE
+ default m if SOC_JH7110
help
Say yes here to support the always-on clock controller on the
StarFive JH7110 SoC.
@@ -2,7 +2,7 @@
config PINCTRL_STARFIVE_JH7100
tristate "Pinctrl and GPIO driver for the StarFive JH7100 SoC"
- depends on SOC_STARFIVE || COMPILE_TEST
+ depends on SOC_JH7100 || COMPILE_TEST
depends on OF
select GENERIC_PINCTRL_GROUPS
select GENERIC_PINMUX_FUNCTIONS
@@ -10,7 +10,6 @@ config PINCTRL_STARFIVE_JH7100
select GPIOLIB
select GPIOLIB_IRQCHIP
select OF_GPIO
- default SOC_STARFIVE
help
Say yes here to support pin control on the StarFive JH7100 SoC.
This also provides an interface to the GPIO pins not used by other
@@ -28,10 +27,9 @@ config PINCTRL_STARFIVE
config PINCTRL_STARFIVE_JH7110
bool "Pinctrl and GPIO driver for the StarFive JH7110 SoC"
- depends on SOC_STARFIVE || COMPILE_TEST
+ depends on SOC_JH7110 || COMPILE_TEST
depends on OF
select PINCTRL_STARFIVE
- default SOC_STARFIVE
help
Say yes here to support pin control on the StarFive JH7110 SoC.
This also provides an interface to the GPIO pins not used by other
@@ -228,7 +228,6 @@ config RESET_SOCFPGA
config RESET_STARFIVE
bool "StarFive SoC Reset Driver"
depends on SOC_STARFIVE || COMPILE_TEST
- default SOC_STARFIVE
help
This enables the reset controller driver for the StarFive SoCs.
Add Kconfig options to select the specified StarFive SoC. Select necessary Kconfig options required by the specified SoC for booting. Signed-off-by: Hal Feng <hal.feng@linux.starfivetech.com> --- arch/riscv/Kconfig.socs | 27 ++++++++++++++++++++++++++- arch/riscv/boot/dts/starfive/Makefile | 4 ++-- drivers/clk/starfive/Kconfig | 14 ++++++-------- drivers/pinctrl/starfive/Kconfig | 6 ++---- drivers/reset/Kconfig | 1 - 5 files changed, 36 insertions(+), 16 deletions(-)