aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/Kconfig.debug7
-rw-r--r--arch/arm/mach-spear/include/mach/debug-macro.S36
-rw-r--r--arch/arm/mach-spear/include/mach/spear.h2
3 files changed, 7 insertions, 38 deletions
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index 0498a3a311f0..2d57da324562 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -893,6 +893,9 @@ config DEBUG_LL_INCLUDE
893config DEBUG_UART_PL01X 893config DEBUG_UART_PL01X
894 def_bool ARCH_EP93XX || \ 894 def_bool ARCH_EP93XX || \
895 ARCH_INTEGRATOR || \ 895 ARCH_INTEGRATOR || \
896 ARCH_SPEAR3XX || \
897 ARCH_SPEAR6XX || \
898 ARCH_SPEAR13XX || \
896 ARCH_VERSATILE 899 ARCH_VERSATILE
897 900
898# Compatibility options for 8250 901# Compatibility options for 8250
@@ -940,9 +943,11 @@ config DEBUG_UART_PHYS
940 default 0xc0013000 if DEBUG_U300_UART 943 default 0xc0013000 if DEBUG_U300_UART
941 default 0xc8000000 if ARCH_IXP4XX && !CPU_BIG_ENDIAN 944 default 0xc8000000 if ARCH_IXP4XX && !CPU_BIG_ENDIAN
942 default 0xc8000003 if ARCH_IXP4XX && CPU_BIG_ENDIAN 945 default 0xc8000003 if ARCH_IXP4XX && CPU_BIG_ENDIAN
946 default 0xd0000000 if ARCH_SPEAR3XX || ARCH_SPEAR6XX
943 default 0xd0012000 if DEBUG_MVEBU_UART 947 default 0xd0012000 if DEBUG_MVEBU_UART
944 default 0xd4017000 if DEBUG_MMP_UART2 948 default 0xd4017000 if DEBUG_MMP_UART2
945 default 0xd4018000 if DEBUG_MMP_UART3 949 default 0xd4018000 if DEBUG_MMP_UART3
950 default 0xe0000000 if ARCH_SPEAR13XX
946 default 0xf0000be0 if ARCH_EBSA110 951 default 0xf0000be0 if ARCH_EBSA110
947 default 0xf1012000 if DEBUG_MVEBU_UART_ALTERNATE 952 default 0xf1012000 if DEBUG_MVEBU_UART_ALTERNATE
948 default 0xf1012000 if ARCH_DOVE || ARCH_KIRKWOOD || ARCH_MV78XX0 || \ 953 default 0xf1012000 if ARCH_DOVE || ARCH_KIRKWOOD || ARCH_MV78XX0 || \
@@ -973,6 +978,8 @@ config DEBUG_UART_VIRT
973 default 0xf8090000 if DEBUG_VEXPRESS_UART0_RS1 978 default 0xf8090000 if DEBUG_VEXPRESS_UART0_RS1
974 default 0xfb009000 if DEBUG_REALVIEW_STD_PORT 979 default 0xfb009000 if DEBUG_REALVIEW_STD_PORT
975 default 0xfb10c000 if DEBUG_REALVIEW_PB1176_PORT 980 default 0xfb10c000 if DEBUG_REALVIEW_PB1176_PORT
981 default 0xfd000000 if ARCH_SPEAR3XX || ARCH_SPEAR6XX
982 default 0xfd000000 if ARCH_SPEAR13XX
976 default 0xfd012000 if ARCH_MV78XX0 983 default 0xfd012000 if ARCH_MV78XX0
977 default 0xfde12000 if ARCH_DOVE 984 default 0xfde12000 if ARCH_DOVE
978 default 0xfe012000 if ARCH_ORION5X 985 default 0xfe012000 if ARCH_ORION5X
diff --git a/arch/arm/mach-spear/include/mach/debug-macro.S b/arch/arm/mach-spear/include/mach/debug-macro.S
deleted file mode 100644
index 75b05ad0fbad..000000000000
--- a/arch/arm/mach-spear/include/mach/debug-macro.S
+++ /dev/null
@@ -1,36 +0,0 @@
1/*
2 * arch/arm/plat-spear/include/plat/debug-macro.S
3 *
4 * Debugging macro include header for spear platform
5 *
6 * Copyright (C) 2009 ST Microelectronics
7 * Viresh Kumar <viresh.linux@gmail.com>
8 *
9 * This file is licensed under the terms of the GNU General Public
10 * License version 2. This program is licensed "as is" without any
11 * warranty of any kind, whether express or implied.
12 */
13
14#include <linux/amba/serial.h>
15#include <mach/spear.h>
16
17 .macro addruart, rp, rv, tmp
18 mov \rp, #SPEAR_DBG_UART_BASE @ Physical base
19 mov \rv, #VA_SPEAR_DBG_UART_BASE @ Virtual base
20 .endm
21
22 .macro senduart, rd, rx
23 strb \rd, [\rx, #UART01x_DR] @ ASC_TX_BUFFER
24 .endm
25
26 .macro waituart, rd, rx
271001: ldr \rd, [\rx, #UART01x_FR] @ FLAG REGISTER
28 tst \rd, #UART01x_FR_TXFF @ TX_FULL
29 bne 1001b
30 .endm
31
32 .macro busyuart, rd, rx
331002: ldr \rd, [\rx, #UART01x_FR] @ FLAG REGISTER
34 tst \rd, #UART011_FR_TXFE @ TX_EMPTY
35 beq 1002b
36 .endm
diff --git a/arch/arm/mach-spear/include/mach/spear.h b/arch/arm/mach-spear/include/mach/spear.h
index cf3a5369eeca..5cdc53d9b653 100644
--- a/arch/arm/mach-spear/include/mach/spear.h
+++ b/arch/arm/mach-spear/include/mach/spear.h
@@ -39,7 +39,6 @@
39 39
40/* Debug uart for linux, will be used for debug and uncompress messages */ 40/* Debug uart for linux, will be used for debug and uncompress messages */
41#define SPEAR_DBG_UART_BASE SPEAR_ICM1_UART_BASE 41#define SPEAR_DBG_UART_BASE SPEAR_ICM1_UART_BASE
42#define VA_SPEAR_DBG_UART_BASE VA_SPEAR_ICM1_UART_BASE
43 42
44/* Sysctl base for spear platform */ 43/* Sysctl base for spear platform */
45#define SPEAR_SYS_CTRL_BASE SPEAR_ICM3_SYS_CTRL_BASE 44#define SPEAR_SYS_CTRL_BASE SPEAR_ICM3_SYS_CTRL_BASE
@@ -86,7 +85,6 @@
86 85
87/* Debug uart for linux, will be used for debug and uncompress messages */ 86/* Debug uart for linux, will be used for debug and uncompress messages */
88#define SPEAR_DBG_UART_BASE UART_BASE 87#define SPEAR_DBG_UART_BASE UART_BASE
89#define VA_SPEAR_DBG_UART_BASE VA_UART_BASE
90 88
91#endif /* SPEAR13XX */ 89#endif /* SPEAR13XX */
92 90