diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2008-04-18 17:43:16 -0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2008-04-18 17:43:16 -0400 |
commit | 14a6acc23fa49446529bd99742264192939819bc (patch) | |
tree | 269b682af934adc821ae589841dffc0fa52b5d23 | |
parent | a0316b244e75d80df3790b69b0a2cb0bbf4c1562 (diff) |
RealView: Add uncompressing support for PB1176
This patch adds the UART0 base address detection in uncompress.h.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
-rw-r--r-- | include/asm-arm/arch-realview/uncompress.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-arm/arch-realview/uncompress.h b/include/asm-arm/arch-realview/uncompress.h index 4ebc9c908442..4c905d7a13a1 100644 --- a/include/asm-arm/arch-realview/uncompress.h +++ b/include/asm-arm/arch-realview/uncompress.h | |||
@@ -22,6 +22,7 @@ | |||
22 | 22 | ||
23 | #include <asm/arch/board-eb.h> | 23 | #include <asm/arch/board-eb.h> |
24 | #include <asm/arch/board-pb11mp.h> | 24 | #include <asm/arch/board-pb11mp.h> |
25 | #include <asm/arch/board-pb1176.h> | ||
25 | 26 | ||
26 | #define AMBA_UART_DR(base) (*(volatile unsigned char *)((base) + 0x00)) | 27 | #define AMBA_UART_DR(base) (*(volatile unsigned char *)((base) + 0x00)) |
27 | #define AMBA_UART_LCRH(base) (*(volatile unsigned char *)((base) + 0x2c)) | 28 | #define AMBA_UART_LCRH(base) (*(volatile unsigned char *)((base) + 0x2c)) |
@@ -37,6 +38,8 @@ static inline unsigned long get_uart_base(void) | |||
37 | return REALVIEW_EB_UART0_BASE; | 38 | return REALVIEW_EB_UART0_BASE; |
38 | else if (machine_is_realview_pb11mp()) | 39 | else if (machine_is_realview_pb11mp()) |
39 | return REALVIEW_PB11MP_UART0_BASE; | 40 | return REALVIEW_PB11MP_UART0_BASE; |
41 | else if (machine_is_realview_pb1176()) | ||
42 | return REALVIEW_PB1176_UART0_BASE; | ||
40 | else | 43 | else |
41 | return 0; | 44 | return 0; |
42 | } | 45 | } |