Merge tag 'drm-misc-fixes-2019-06-05' of git://anongit.freedesktop.org/drm/drm-misc...
[sfrench/cifs-2.6.git] / arch / arm / mach-w90x900 / include / mach / uncompress.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * arch/arm/mach-w90x900/include/mach/uncompress.h
4  *
5  * Copyright (c) 2008 Nuvoton technology corporation
6  * All rights reserved.
7  *
8  * Wan ZongShun <mcuos.com@gmail.com>
9  *
10  * Based on arch/arm/mach-s3c2410/include/mach/uncompress.h
11  */
12
13 #ifndef __ASM_ARCH_UNCOMPRESS_H
14 #define __ASM_ARCH_UNCOMPRESS_H
15
16 /* Defines for UART registers */
17
18 #include <mach/regs-serial.h>
19 #include <mach/map.h>
20 #include <linux/serial_reg.h>
21
22 #define TX_DONE (UART_LSR_TEMT | UART_LSR_THRE)
23 static volatile u32 * const uart_base = (u32 *)UART0_PA;
24
25 static inline void putc(int ch)
26 {
27         /* Check THRE and TEMT bits before we transmit the character.
28          */
29         while ((uart_base[UART_LSR] & TX_DONE) != TX_DONE)
30                 barrier();
31
32         *uart_base = ch;
33 }
34
35 static inline void flush(void)
36 {
37 }
38
39 static void arch_decomp_setup(void)
40 {
41 }
42
43 #endif/* __ASM_W90X900_UNCOMPRESS_H */