]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
285f5fa7 DW |
2 | #include <asm/types.h> |
3 | #include <linux/serial_reg.h> | |
a09e64fb | 4 | #include <mach/hardware.h> |
285f5fa7 DW |
5 | |
6 | #define UART_BASE ((volatile u32 *)IOP13XX_UART1_PHYS) | |
7 | #define TX_DONE (UART_LSR_TEMT | UART_LSR_THRE) | |
8 | ||
9 | static inline void putc(char c) | |
10 | { | |
11 | while ((UART_BASE[UART_LSR] & TX_DONE) != TX_DONE) | |
7dea1b20 | 12 | barrier(); |
285f5fa7 DW |
13 | UART_BASE[UART_TX] = c; |
14 | } | |
15 | ||
16 | static inline void flush(void) | |
17 | { | |
18 | } | |
19 | ||
20 | /* | |
21 | * nothing to do | |
22 | */ | |
23 | #define arch_decomp_setup() |