summaryrefslogtreecommitdiffstats
path: root/arch/arm/include
diff options
context:
space:
mode:
authorJun Nie <jun.nie@linaro.org>2015-04-28 11:18:07 +0200
committerArnd Bergmann <arnd@arndb.de>2015-05-15 21:49:27 +0200
commit58d0398535647e1bb03e552d2f571d1dee55398c (patch)
tree355fbefe78f9f3ef8681abfb2002fbfc5470ae1c /arch/arm/include
parentARM: zx: add basic support for ZTE ZX296702 (diff)
downloadlinux-58d0398535647e1bb03e552d2f571d1dee55398c.tar.xz
linux-58d0398535647e1bb03e552d2f571d1dee55398c.zip
ARM: zx: add low level debug support for zx296702
Use the UART0 peripheral for low level debug. Only the UART port 0 is currently supported. Signed-off-by: Jun Nie <jun.nie@linaro.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/debug/pl01x.S7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/include/debug/pl01x.S b/arch/arm/include/debug/pl01x.S
index 92ef808a2337..f7d8323cefcc 100644
--- a/arch/arm/include/debug/pl01x.S
+++ b/arch/arm/include/debug/pl01x.S
@@ -12,6 +12,13 @@
*/
#include <linux/amba/serial.h>
+#ifdef CONFIG_DEBUG_ZTE_ZX
+#undef UART01x_DR
+#undef UART01x_FR
+#define UART01x_DR 0x04
+#define UART01x_FR 0x14
+#endif
+
#ifdef CONFIG_DEBUG_UART_PHYS
.macro addruart, rp, rv, tmp
ldr \rp, =CONFIG_DEBUG_UART_PHYS