Skip to content

Commit a4f0700

Browse files
committed
Merge tag 'hisi-arm-soc-for-5.10' of git://github.com/hisilicon/linux-hisi into arm/soc
Hisilicon ARM SoC updates for v5.10 - Add SD5203 SoC support which core is ARM926EJ-S - Add Low-level debugging support for SD5203 * tag 'hisi-arm-soc-for-5.10' of git://github.com/hisilicon/linux-hisi: ARM: debug: add UART early console support for SD5203 ARM: hisi: add support for SD5203 SoC Link: https://lore.kernel.org/r/5F742928.2060202@hisilicon.com Signed-off-by: Olof Johansson <olof@lixom.net>
2 parents 0255652 + c5fdb66 commit a4f0700

2 files changed

Lines changed: 24 additions & 3 deletions

File tree

arch/arm/Kconfig.debug

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1086,6 +1086,14 @@ choice
10861086
on SA-11x0 UART ports. The kernel will check for the first
10871087
enabled UART in a sequence 3-1-2.
10881088

1089+
config DEBUG_SD5203_UART
1090+
bool "Hisilicon SD5203 Debug UART"
1091+
depends on ARCH_SD5203
1092+
select DEBUG_UART_8250
1093+
help
1094+
Say Y here if you want kernel low-level debugging support
1095+
on SD5203 UART.
1096+
10891097
config DEBUG_SOCFPGA_UART0
10901098
depends on ARCH_SOCFPGA
10911099
bool "Use SOCFPGA UART0 for low-level debug"
@@ -1649,6 +1657,7 @@ config DEBUG_UART_PHYS
16491657
default 0x11006000 if DEBUG_MT6589_UART0
16501658
default 0x11009000 if DEBUG_MT8135_UART3
16511659
default 0x16000000 if DEBUG_INTEGRATOR
1660+
default 0x1600d000 if DEBUG_SD5203_UART
16521661
default 0x18000300 if DEBUG_BCM_5301X
16531662
default 0x18000400 if DEBUG_BCM_HR2
16541663
default 0x18010000 if DEBUG_SIRFATLAS7_UART0
@@ -1851,7 +1860,7 @@ config DEBUG_UART_VIRT
18511860
default 0xfec60000 if DEBUG_SIRFPRIMA2_UART1
18521861
default 0xfec90000 if DEBUG_RK32_UART2
18531862
default 0xfed0c000 if DEBUG_DAVINCI_DA8XX_UART1
1854-
default 0xfed0d000 if DEBUG_DAVINCI_DA8XX_UART2
1863+
default 0xfed0d000 if DEBUG_DAVINCI_DA8XX_UART2 || DEBUG_SD5203_UART
18551864
default 0xfed60000 if DEBUG_RK29_UART0
18561865
default 0xfed64000 if DEBUG_RK29_UART1 || DEBUG_RK3X_UART2
18571866
default 0xfed68000 if DEBUG_RK29_UART2 || DEBUG_RK3X_UART3

arch/arm/mach-hisi/Kconfig

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
config ARCH_HISI
33
bool "Hisilicon SoC Support"
4-
depends on ARCH_MULTI_V7
4+
depends on ARCH_MULTI_V7 || ARCH_MULTI_V5
55
select ARM_AMBA
6-
select ARM_GIC
6+
select ARM_GIC if ARCH_MULTI_V7
77
select ARM_TIMER_SP804
88
select POWER_RESET
99
select POWER_RESET_HISI
@@ -15,6 +15,7 @@ menu "Hisilicon platform type"
1515

1616
config ARCH_HI3xxx
1717
bool "Hisilicon Hi36xx family"
18+
depends on ARCH_MULTI_V7
1819
select CACHE_L2X0
1920
select HAVE_ARM_SCU if SMP
2021
select HAVE_ARM_TWD if SMP
@@ -25,6 +26,7 @@ config ARCH_HI3xxx
2526

2627
config ARCH_HIP01
2728
bool "Hisilicon HIP01 family"
29+
depends on ARCH_MULTI_V7
2830
select HAVE_ARM_SCU if SMP
2931
select HAVE_ARM_TWD if SMP
3032
select ARM_GLOBAL_TIMER
@@ -33,6 +35,7 @@ config ARCH_HIP01
3335

3436
config ARCH_HIP04
3537
bool "Hisilicon HiP04 Cortex A15 family"
38+
depends on ARCH_MULTI_V7
3639
select ARM_ERRATA_798181 if SMP
3740
select HAVE_ARM_ARCH_TIMER
3841
select MCPM if SMP
@@ -43,13 +46,22 @@ config ARCH_HIP04
4346

4447
config ARCH_HIX5HD2
4548
bool "Hisilicon X5HD2 family"
49+
depends on ARCH_MULTI_V7
4650
select CACHE_L2X0
4751
select HAVE_ARM_SCU if SMP
4852
select HAVE_ARM_TWD if SMP
4953
select PINCTRL
5054
select PINCTRL_SINGLE
5155
help
5256
Support for Hisilicon HIX5HD2 SoC family
57+
58+
config ARCH_SD5203
59+
bool "Hisilicon SD5203 family"
60+
depends on ARCH_MULTI_V5
61+
select DW_APB_ICTL
62+
help
63+
Support for Hisilicon SD5203 SoC family
64+
5365
endmenu
5466

5567
endif

0 commit comments

Comments
 (0)