This source file includes following definitions.
- putc
- flush
1
2
3
4
5
6 #include <asm/types.h>
7 #include <asm/mach-types.h>
8 #include <linux/serial_reg.h>
9
10 #define uart_base ((volatile u8 *)0xfe800000)
11
12 #define TX_DONE (UART_LSR_TEMT | UART_LSR_THRE)
13
14 static inline void putc(char c)
15 {
16 while ((uart_base[UART_LSR] & TX_DONE) != TX_DONE)
17 barrier();
18 uart_base[UART_TX] = c;
19 }
20
21 static inline void flush(void)
22 {
23 }
24
25 #define arch_decomp_setup() do { } while (0)