20 #include <mach/hardware.h>
29 #define AMBA_UART_DR(base) (*(volatile unsigned char *)((base) + 0x00))
30 #define AMBA_UART_LCRH(base) (*(volatile unsigned char *)((base) + 0x2c))
31 #define AMBA_UART_CR(base) (*(volatile unsigned char *)((base) + 0x30))
32 #define AMBA_UART_FR(base) (*(volatile unsigned char *)((base) + 0x18))
37 static inline unsigned long get_uart_base(
void)
39 if (machine_is_realview_eb())
41 else if (machine_is_realview_pb11mp())
43 else if (machine_is_realview_pb1176())
45 else if (machine_is_realview_pba8())
47 else if (machine_is_realview_pbx())
56 static inline void putc(
int c)
58 unsigned long base = get_uart_base();
66 static inline void flush(
void)
68 unsigned long base = get_uart_base();
77 #define arch_decomp_setup()
78 #define arch_decomp_wdog()