From e120e7c552d398e5f6dadcf76c2c4cc7263b2b56 Mon Sep 17 00:00:00 2001 From: Amit Mahajan Date: Thu, 29 Oct 2009 13:03:23 +0530 Subject: [PATCH] Selecting UART0 base address based on platform selected --- loader/libs/c/include/arch/pl011_uart.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/loader/libs/c/include/arch/pl011_uart.h b/loader/libs/c/include/arch/pl011_uart.h index f3a44e6..c32cfc8 100644 --- a/loader/libs/c/include/arch/pl011_uart.h +++ b/loader/libs/c/include/arch/pl011_uart.h @@ -14,8 +14,17 @@ * such a driver so far, hopefully it will turn out to be useful. */ -/* FIXME: Select based on arch */ +/* Select the physcial base address of UART0 based on platform selected */ +#if defined(pb926) #define PL011_DEFAULT_PHYSICAL_BASE 0x101F1000 +#elif defined(eb) +#define PL011_DEFAULT_PHYSICAL_BASE 0x10009000 +#elif defined(pb11mpcore) +#define PL011_DEFAULT_PHYSICAL_BASE 0x10009000 +#elif defined(pba8) +#define PL011_DEFAULT_PHYSICAL_BASE 0x10009000 +#endif + #define PL011_BASE PL011_DEFAULT_PHYSICAL_BASE /* Architecture specific memory access macros */