diff mbox series

[01/10] arm64: Add SOPHGO SOC family Kconfig support

Message ID 20250209220646.1090868-2-alexander.sverdlin@gmail.com (mailing list archive)
State Superseded
Headers show
Series arm64 support for Milk-V Duo Module 01 EVB | expand

Commit Message

Alexander Sverdlin Feb. 9, 2025, 10:06 p.m. UTC
First user will be Aarch64 core within SG2000 SoC.

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
---
 arch/arm64/Kconfig.platforms | 12 ++++++++++++
 1 file changed, 12 insertions(+)

Comments

Chen Wang Feb. 10, 2025, 12:38 a.m. UTC | #1
On 2025/2/10 6:06, Alexander Sverdlin wrote:
> First user will be Aarch64 core within SG2000 SoC.
>
> Signed-off-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
> ---
>   arch/arm64/Kconfig.platforms | 12 ++++++++++++
>   1 file changed, 12 insertions(+)
>
> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
> index 02f9248f7c84..f45f3f05edf8 100644
> --- a/arch/arm64/Kconfig.platforms
> +++ b/arch/arm64/Kconfig.platforms
> @@ -307,6 +307,18 @@ config ARCH_INTEL_SOCFPGA
>   	  Stratix 10 (ex. Altera), Stratix10 Software Virtual Platform,
>   	  Agilex and eASIC N5X.
>   
> +config ARCH_SOPHGO
> +	bool "Sophgo SoCs"
> +	select CLK_SOPHGO_CV1800
> +	select MFD_SYSCON
> +	select RESET_CONTROLLER
> +	help
> +	  This enables support for Sophgo SoC platform hardware, such as
> +	  SG2000.

In the long run, ARCH_SOPHGO will be used to enable all arm64 products 
under Sophgo (although only SG2000 is seen at present), so it is not 
good to limit it to SG2000.

So I suggest you modify the help description here and do not select 
these SG2000-specific configurations. The specific configuration can be 
enabled in defconfig. Please refer to the similar ARCH_SOPHGO processing 
in `arch/riscv/Kconfig.socs`.

Regards,

Chen

> +
> +	  Enable this option if you are going to boot your dual-ARCH SoC in
> +	  ARM64 mode.
> +
>   config ARCH_STM32
>   	bool "STMicroelectronics STM32 SoC Family"
>   	select GPIOLIB
diff mbox series

Patch

diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index 02f9248f7c84..f45f3f05edf8 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -307,6 +307,18 @@  config ARCH_INTEL_SOCFPGA
 	  Stratix 10 (ex. Altera), Stratix10 Software Virtual Platform,
 	  Agilex and eASIC N5X.
 
+config ARCH_SOPHGO
+	bool "Sophgo SoCs"
+	select CLK_SOPHGO_CV1800
+	select MFD_SYSCON
+	select RESET_CONTROLLER
+	help
+	  This enables support for Sophgo SoC platform hardware, such as
+	  SG2000.
+
+	  Enable this option if you are going to boot your dual-ARCH SoC in
+	  ARM64 mode.
+
 config ARCH_STM32
 	bool "STMicroelectronics STM32 SoC Family"
 	select GPIOLIB