Skip to content

Commit 0dc0e47

Browse files
author
Russell King
committed
ARM: debug: move SPEAr debug to generic PL01x code
The SPEAr debug code is a copy of the PL01x debugging code, so rather than have this pointless code duplication, lets just use the standard implementation instead. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 97bd1a4 commit 0dc0e47

3 files changed

Lines changed: 7 additions & 38 deletions

File tree

‎arch/arm/Kconfig.debug‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,9 @@ config DEBUG_LL_INCLUDE
893893
config DEBUG_UART_PL01X
894894
def_bool ARCH_EP93XX || \
895895
ARCH_INTEGRATOR || \
896+
ARCH_SPEAR3XX || \
897+
ARCH_SPEAR6XX || \
898+
ARCH_SPEAR13XX || \
896899
ARCH_VERSATILE
897900

898901
# Compatibility options for 8250
@@ -940,9 +943,11 @@ config DEBUG_UART_PHYS
940943
default 0xc0013000 if DEBUG_U300_UART
941944
default 0xc8000000 if ARCH_IXP4XX && !CPU_BIG_ENDIAN
942945
default 0xc8000003 if ARCH_IXP4XX && CPU_BIG_ENDIAN
946+
default 0xd0000000 if ARCH_SPEAR3XX || ARCH_SPEAR6XX
943947
default 0xd0012000 if DEBUG_MVEBU_UART
944948
default 0xd4017000 if DEBUG_MMP_UART2
945949
default 0xd4018000 if DEBUG_MMP_UART3
950+
default 0xe0000000 if ARCH_SPEAR13XX
946951
default 0xf0000be0 if ARCH_EBSA110
947952
default 0xf1012000 if DEBUG_MVEBU_UART_ALTERNATE
948953
default 0xf1012000 if ARCH_DOVE || ARCH_KIRKWOOD || ARCH_MV78XX0 || \
@@ -973,6 +978,8 @@ config DEBUG_UART_VIRT
973978
default 0xf8090000 if DEBUG_VEXPRESS_UART0_RS1
974979
default 0xfb009000 if DEBUG_REALVIEW_STD_PORT
975980
default 0xfb10c000 if DEBUG_REALVIEW_PB1176_PORT
981+
default 0xfd000000 if ARCH_SPEAR3XX || ARCH_SPEAR6XX
982+
default 0xfd000000 if ARCH_SPEAR13XX
976983
default 0xfd012000 if ARCH_MV78XX0
977984
default 0xfde12000 if ARCH_DOVE
978985
default 0xfe012000 if ARCH_ORION5X

‎arch/arm/mach-spear/include/mach/debug-macro.S‎

Lines changed: 0 additions & 36 deletions
This file was deleted.

‎arch/arm/mach-spear/include/mach/spear.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939

4040
/* Debug uart for linux, will be used for debug and uncompress messages */
4141
#define SPEAR_DBG_UART_BASE SPEAR_ICM1_UART_BASE
42-
#define VA_SPEAR_DBG_UART_BASE VA_SPEAR_ICM1_UART_BASE
4342

4443
/* Sysctl base for spear platform */
4544
#define SPEAR_SYS_CTRL_BASE SPEAR_ICM3_SYS_CTRL_BASE
@@ -86,7 +85,6 @@
8685

8786
/* Debug uart for linux, will be used for debug and uncompress messages */
8887
#define SPEAR_DBG_UART_BASE UART_BASE
89-
#define VA_SPEAR_DBG_UART_BASE VA_UART_BASE
9088

9189
#endif /* SPEAR13XX */
9290

0 commit comments

Comments
 (0)