diff options
author | Jun Nie <jun.nie@linaro.org> | 2015-04-28 17:18:07 +0800 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2015-05-15 21:49:27 +0200 |
commit | 58d0398535647e1bb03e552d2f571d1dee55398c (patch) | |
tree | 355fbefe78f9f3ef8681abfb2002fbfc5470ae1c /arch/arm/include/debug | |
parent | acede515b3a5997becc5736657e11f4f410a8235 (diff) | |
download | linux-58d0398535647e1bb03e552d2f571d1dee55398c.tar.bz2 |
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/debug')
-rw-r--r-- | arch/arm/include/debug/pl01x.S | 7 |
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 |