This source file includes following definitions.
- putc
- flush
1
2
3
4
5
6
7
8
9
10
11
12
13
14 #include <linux/io.h>
15 #include <linux/amba/serial.h>
16 #include <mach/spear.h>
17
18 #ifndef __PLAT_UNCOMPRESS_H
19 #define __PLAT_UNCOMPRESS_H
20
21
22
23 static inline void putc(int c)
24 {
25 void __iomem *base = (void __iomem *)SPEAR_DBG_UART_BASE;
26
27 while (readl_relaxed(base + UART01x_FR) & UART01x_FR_TXFF)
28 barrier();
29
30 writel_relaxed(c, base + UART01x_DR);
31 }
32
33 static inline void flush(void)
34 {
35 }
36
37
38
39
40 #define arch_decomp_setup()
41
42 #endif