diff options
author | Barry Song <Baohua.Song@csr.com> | 2012-12-20 19:45:25 +0800 |
---|---|---|
committer | Barry Song <Barry.Song@csr.com> | 2013-01-22 19:53:36 +0800 |
commit | 7f46a10724e0d31c83029436e54298be2cc558fa (patch) | |
tree | 1de423733f7e72ceefa45ee08c7e5d5ab1df8681 /arch/arm/mach-prima2/include/mach/uart.h | |
parent | 4898de3d15d8ba34aa7a1b0f753a476d52ebdf92 (diff) |
ARM: PRIMA2: provide two DEBUG_LL ports for prima2 and marco
prima2 and marco has different memory base, the old code will
fail if we enable DEBUG_LL in marco.
this patch adds two debuf port, while debugging, we select one
of PRIMA2 and MARCO debug ports, in the products, we disable
DEBUG_LL.
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Diffstat (limited to 'arch/arm/mach-prima2/include/mach/uart.h')
-rw-r--r-- | arch/arm/mach-prima2/include/mach/uart.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-prima2/include/mach/uart.h b/arch/arm/mach-prima2/include/mach/uart.h index c98b4d5ac24..c10510d01a4 100644 --- a/arch/arm/mach-prima2/include/mach/uart.h +++ b/arch/arm/mach-prima2/include/mach/uart.h @@ -10,7 +10,13 @@ #define __MACH_PRIMA2_SIRFSOC_UART_H /* UART-1: used as serial debug port */ +#if defined(CONFIG_DEBUG_SIRFPRIMA2_UART1) #define SIRFSOC_UART1_PA_BASE 0xb0060000 +#elif defined(CONFIG_DEBUG_SIRFMARCO_UART1) +#define SIRFSOC_UART1_PA_BASE 0xcc060000 +#else +#define SIRFSOC_UART1_PA_BASE 0 +#endif #define SIRFSOC_UART1_VA_BASE SIRFSOC_VA(0x060000) #define SIRFSOC_UART1_SIZE SZ_4K |