diff options
| author | Jun Nie <jun.nie@linaro.org> | 2015-04-28 05:18:07 -0400 |
|---|---|---|
| committer | Arnd Bergmann <arnd@arndb.de> | 2015-05-15 15:49:27 -0400 |
| commit | 58d0398535647e1bb03e552d2f571d1dee55398c (patch) | |
| tree | 355fbefe78f9f3ef8681abfb2002fbfc5470ae1c /arch/arm/include/debug | |
| parent | acede515b3a5997becc5736657e11f4f410a8235 (diff) | |
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 @@ | |||
| 12 | */ | 12 | */ |
| 13 | #include <linux/amba/serial.h> | 13 | #include <linux/amba/serial.h> |
| 14 | 14 | ||
| 15 | #ifdef CONFIG_DEBUG_ZTE_ZX | ||
| 16 | #undef UART01x_DR | ||
| 17 | #undef UART01x_FR | ||
| 18 | #define UART01x_DR 0x04 | ||
| 19 | #define UART01x_FR 0x14 | ||
| 20 | #endif | ||
| 21 | |||
| 15 | #ifdef CONFIG_DEBUG_UART_PHYS | 22 | #ifdef CONFIG_DEBUG_UART_PHYS |
| 16 | .macro addruart, rp, rv, tmp | 23 | .macro addruart, rp, rv, tmp |
| 17 | ldr \rp, =CONFIG_DEBUG_UART_PHYS | 24 | ldr \rp, =CONFIG_DEBUG_UART_PHYS |
