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>
This commit is contained in:
parent
a0316b244e
commit
14a6acc23f
1 changed files with 3 additions and 0 deletions
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
#include <asm/arch/board-eb.h>
|
#include <asm/arch/board-eb.h>
|
||||||
#include <asm/arch/board-pb11mp.h>
|
#include <asm/arch/board-pb11mp.h>
|
||||||
|
#include <asm/arch/board-pb1176.h>
|
||||||
|
|
||||||
#define AMBA_UART_DR(base) (*(volatile unsigned char *)((base) + 0x00))
|
#define AMBA_UART_DR(base) (*(volatile unsigned char *)((base) + 0x00))
|
||||||
#define AMBA_UART_LCRH(base) (*(volatile unsigned char *)((base) + 0x2c))
|
#define AMBA_UART_LCRH(base) (*(volatile unsigned char *)((base) + 0x2c))
|
||||||
|
@ -37,6 +38,8 @@ static inline unsigned long get_uart_base(void)
|
||||||
return REALVIEW_EB_UART0_BASE;
|
return REALVIEW_EB_UART0_BASE;
|
||||||
else if (machine_is_realview_pb11mp())
|
else if (machine_is_realview_pb11mp())
|
||||||
return REALVIEW_PB11MP_UART0_BASE;
|
return REALVIEW_PB11MP_UART0_BASE;
|
||||||
|
else if (machine_is_realview_pb1176())
|
||||||
|
return REALVIEW_PB1176_UART0_BASE;
|
||||||
else
|
else
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue