Linux 5.7.7
[linux/fpc-iii.git] / arch / arm / mach-dove / include / mach / uncompress.h
blob7a4bd8838036ffb7a7233325b6b6696170d173d4
1 /*
2 * This file is licensed under the terms of the GNU General Public
3 * License version 2. This program is licensed "as is" without any
4 * warranty of any kind, whether express or implied.
5 */
7 #define UART0_PHYS_BASE (0xf1000000 + 0x12000)
9 #define UART_THR ((volatile unsigned char *)(UART0_PHYS_BASE + 0x0))
10 #define UART_LSR ((volatile unsigned char *)(UART0_PHYS_BASE + 0x14))
12 #define LSR_THRE 0x20
14 static void putc(const char c)
16 int i;
18 for (i = 0; i < 0x1000; i++) {
19 /* Transmit fifo not full? */
20 if (*UART_LSR & LSR_THRE)
21 break;
24 *UART_THR = c;
27 static void flush(void)
32 * nothing to do
34 #define arch_decomp_setup()