diff mbox series

[v5,06/17] ARM: hisi: add support for SD5203 SoC

Message ID 20200929141454.2312-7-thunder.leizhen@huawei.com
State Superseded
Headers show
Series add support for Hisilicon SD5203 SoC | expand

Commit Message

Zhen Lei Sept. 29, 2020, 2:14 p.m. UTC
From: Kefeng Wang <wangkefeng.wang@huawei.com>


Enable support for the Hisilicon SD5203 SoC. The core is ARM926EJ-S.

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>

---
 arch/arm/mach-hisi/Kconfig | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

-- 
1.8.3

Comments

Wei Xu Sept. 30, 2020, 3:05 a.m. UTC | #1
Hi Zhen Lei,

On 2020/9/29 22:14, Zhen Lei wrote:
> From: Kefeng Wang <wangkefeng.wang@huawei.com>

> 

> Enable support for the Hisilicon SD5203 SoC. The core is ARM926EJ-S.

> 

> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>

> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>


Thanks!
Applied to the hisilicon arm32 SoC tree.

Best Regards,
Wei

> ---

>  arch/arm/mach-hisi/Kconfig | 16 ++++++++++++++--

>  1 file changed, 14 insertions(+), 2 deletions(-)

> 

> diff --git a/arch/arm/mach-hisi/Kconfig b/arch/arm/mach-hisi/Kconfig

> index 3b010fe7c0e9b48..2e980f834a6aa1b 100644

> --- a/arch/arm/mach-hisi/Kconfig

> +++ b/arch/arm/mach-hisi/Kconfig

> @@ -1,9 +1,9 @@

>  # SPDX-License-Identifier: GPL-2.0-only

>  config ARCH_HISI

>  	bool "Hisilicon SoC Support"

> -	depends on ARCH_MULTI_V7

> +	depends on ARCH_MULTI_V7 || ARCH_MULTI_V5

>  	select ARM_AMBA

> -	select ARM_GIC

> +	select ARM_GIC if ARCH_MULTI_V7

>  	select ARM_TIMER_SP804

>  	select POWER_RESET

>  	select POWER_RESET_HISI

> @@ -15,6 +15,7 @@ menu "Hisilicon platform type"

>  

>  config ARCH_HI3xxx

>  	bool "Hisilicon Hi36xx family"

> +	depends on ARCH_MULTI_V7

>  	select CACHE_L2X0

>  	select HAVE_ARM_SCU if SMP

>  	select HAVE_ARM_TWD if SMP

> @@ -25,6 +26,7 @@ config ARCH_HI3xxx

>  

>  config ARCH_HIP01

>  	bool "Hisilicon HIP01 family"

> +	depends on ARCH_MULTI_V7

>  	select HAVE_ARM_SCU if SMP

>  	select HAVE_ARM_TWD if SMP

>  	select ARM_GLOBAL_TIMER

> @@ -33,6 +35,7 @@ config ARCH_HIP01

>  

>  config ARCH_HIP04

>  	bool "Hisilicon HiP04 Cortex A15 family"

> +	depends on ARCH_MULTI_V7

>  	select ARM_ERRATA_798181 if SMP

>  	select HAVE_ARM_ARCH_TIMER

>  	select MCPM if SMP

> @@ -43,6 +46,7 @@ config ARCH_HIP04

>  

>  config ARCH_HIX5HD2

>  	bool "Hisilicon X5HD2 family"

> +	depends on ARCH_MULTI_V7

>  	select CACHE_L2X0

>  	select HAVE_ARM_SCU if SMP

>  	select HAVE_ARM_TWD if SMP

> @@ -50,6 +54,14 @@ config ARCH_HIX5HD2

>  	select PINCTRL_SINGLE

>  	help

>  	  Support for Hisilicon HIX5HD2 SoC family

> +

> +config ARCH_SD5203

> +	bool "Hisilicon SD5203 family"

> +	depends on ARCH_MULTI_V5

> +	select DW_APB_ICTL

> +	help

> +	  Support for Hisilicon SD5203 SoC family

> +

>  endmenu

>  

>  endif

>
diff mbox series

Patch

diff --git a/arch/arm/mach-hisi/Kconfig b/arch/arm/mach-hisi/Kconfig
index 3b010fe7c0e9b48..2e980f834a6aa1b 100644
--- a/arch/arm/mach-hisi/Kconfig
+++ b/arch/arm/mach-hisi/Kconfig
@@ -1,9 +1,9 @@ 
 # SPDX-License-Identifier: GPL-2.0-only
 config ARCH_HISI
 	bool "Hisilicon SoC Support"
-	depends on ARCH_MULTI_V7
+	depends on ARCH_MULTI_V7 || ARCH_MULTI_V5
 	select ARM_AMBA
-	select ARM_GIC
+	select ARM_GIC if ARCH_MULTI_V7
 	select ARM_TIMER_SP804
 	select POWER_RESET
 	select POWER_RESET_HISI
@@ -15,6 +15,7 @@  menu "Hisilicon platform type"
 
 config ARCH_HI3xxx
 	bool "Hisilicon Hi36xx family"
+	depends on ARCH_MULTI_V7
 	select CACHE_L2X0
 	select HAVE_ARM_SCU if SMP
 	select HAVE_ARM_TWD if SMP
@@ -25,6 +26,7 @@  config ARCH_HI3xxx
 
 config ARCH_HIP01
 	bool "Hisilicon HIP01 family"
+	depends on ARCH_MULTI_V7
 	select HAVE_ARM_SCU if SMP
 	select HAVE_ARM_TWD if SMP
 	select ARM_GLOBAL_TIMER
@@ -33,6 +35,7 @@  config ARCH_HIP01
 
 config ARCH_HIP04
 	bool "Hisilicon HiP04 Cortex A15 family"
+	depends on ARCH_MULTI_V7
 	select ARM_ERRATA_798181 if SMP
 	select HAVE_ARM_ARCH_TIMER
 	select MCPM if SMP
@@ -43,6 +46,7 @@  config ARCH_HIP04
 
 config ARCH_HIX5HD2
 	bool "Hisilicon X5HD2 family"
+	depends on ARCH_MULTI_V7
 	select CACHE_L2X0
 	select HAVE_ARM_SCU if SMP
 	select HAVE_ARM_TWD if SMP
@@ -50,6 +54,14 @@  config ARCH_HIX5HD2
 	select PINCTRL_SINGLE
 	help
 	  Support for Hisilicon HIX5HD2 SoC family
+
+config ARCH_SD5203
+	bool "Hisilicon SD5203 family"
+	depends on ARCH_MULTI_V5
+	select DW_APB_ICTL
+	help
+	  Support for Hisilicon SD5203 SoC family
+
 endmenu
 
 endif