diff options
| -rw-r--r-- | arch/arm/mach-mmp/include/mach/uncompress.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-mmp/include/mach/uncompress.h b/arch/arm/mach-mmp/include/mach/uncompress.h index a7dcc5307216..85bd8a2d84b5 100644 --- a/arch/arm/mach-mmp/include/mach/uncompress.h +++ b/arch/arm/mach-mmp/include/mach/uncompress.h | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | #define UART2_BASE (APB_PHYS_BASE + 0x17000) | 14 | #define UART2_BASE (APB_PHYS_BASE + 0x17000) |
| 15 | #define UART3_BASE (APB_PHYS_BASE + 0x18000) | 15 | #define UART3_BASE (APB_PHYS_BASE + 0x18000) |
| 16 | 16 | ||
| 17 | static volatile unsigned long *UART = (unsigned long *)UART2_BASE; | 17 | static volatile unsigned long *UART; |
| 18 | 18 | ||
| 19 | static inline void putc(char c) | 19 | static inline void putc(char c) |
| 20 | { | 20 | { |
| @@ -37,6 +37,9 @@ static inline void flush(void) | |||
| 37 | 37 | ||
| 38 | static inline void arch_decomp_setup(void) | 38 | static inline void arch_decomp_setup(void) |
| 39 | { | 39 | { |
| 40 | /* default to UART2 */ | ||
| 41 | UART = (unsigned long *)UART2_BASE; | ||
| 42 | |||
| 40 | if (machine_is_avengers_lite()) | 43 | if (machine_is_avengers_lite()) |
| 41 | UART = (unsigned long *)UART3_BASE; | 44 | UART = (unsigned long *)UART3_BASE; |
| 42 | } | 45 | } |
