First Support on Ginger and OMAP TI
[linux-ginger.git] / arch / arm / mach-mmp / include / mach / uncompress.h
blobc93d5fa5865c59dd130574132c16b055fbd3e6b9
1 /*
2 * arch/arm/mach-mmp/include/mach/uncompress.h
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
9 #include <linux/serial_reg.h>
10 #include <mach/addr-map.h>
12 #define UART1_BASE (APB_PHYS_BASE + 0x36000)
13 #define UART2_BASE (APB_PHYS_BASE + 0x17000)
14 #define UART3_BASE (APB_PHYS_BASE + 0x18000)
16 static inline void putc(char c)
18 volatile unsigned long *UART = (unsigned long *)UART2_BASE;
20 /* UART enabled? */
21 if (!(UART[UART_IER] & UART_IER_UUE))
22 return;
24 while (!(UART[UART_LSR] & UART_LSR_THRE))
25 barrier();
27 UART[UART_TX] = c;
31 * This does not append a newline
33 static inline void flush(void)
38 * nothing to do
40 #define arch_decomp_setup()
41 #define arch_decomp_wdog()