]>
git.proxmox.com Git - mirror_ubuntu-kernels.git/blob - arch/arm/mach-w90x900/include/mach/uncompress.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * arch/arm/mach-w90x900/include/mach/uncompress.h
5 * Copyright (c) 2008 Nuvoton technology corporation
8 * Wan ZongShun <mcuos.com@gmail.com>
10 * Based on arch/arm/mach-s3c2410/include/mach/uncompress.h
13 #ifndef __ASM_ARCH_UNCOMPRESS_H
14 #define __ASM_ARCH_UNCOMPRESS_H
16 /* Defines for UART registers */
18 #include <mach/regs-serial.h>
20 #include <linux/serial_reg.h>
22 #define TX_DONE (UART_LSR_TEMT | UART_LSR_THRE)
23 static volatile u32
* const uart_base
= (u32
*)UART0_PA
;
25 static inline void putc(int ch
)
27 /* Check THRE and TEMT bits before we transmit the character.
29 while ((uart_base
[UART_LSR
] & TX_DONE
) != TX_DONE
)
35 static inline void flush(void)
39 static void arch_decomp_setup(void)
43 #endif/* __ASM_W90X900_UNCOMPRESS_H */