]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blame - arch/arm/mach-w90x900/include/mach/uncompress.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152
[mirror_ubuntu-eoan-kernel.git] / arch / arm / mach-w90x900 / include / mach / uncompress.h
CommitLineData
2874c5fd 1/* SPDX-License-Identifier: GPL-2.0-or-later */
7ec80ddf 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
7ec80ddf 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>
040f0459 20#include <linux/serial_reg.h>
7ec80ddf 21
040f0459 22#define TX_DONE (UART_LSR_TEMT | UART_LSR_THRE)
8ea0de4b 23static volatile u32 * const uart_base = (u32 *)UART0_PA;
040f0459 24
4d2b7d4c 25static inline void putc(int ch)
7ec80ddf 26{
040f0459 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;
7ec80ddf 33}
34
35static inline void flush(void)
36{
37}
38
39static void arch_decomp_setup(void)
40{
41}
42
43#endif/* __ASM_W90X900_UNCOMPRESS_H */