1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * arch/arm/mach-ks8695/include/mach/uncompress.h
5 * Copyright (C) 2006 Ben Dooks <ben@simtec.co.uk>
6 * Copyright (C) 2006 Simtec Electronics
8 * KS8695 - Kernel uncompressor
11 #ifndef __ASM_ARCH_UNCOMPRESS_H
12 #define __ASM_ARCH_UNCOMPRESS_H
15 #include <mach/regs-uart.h>
17 static inline void putc(char c)
19 while (!(__raw_readl((void __iomem*)KS8695_UART_PA + KS8695_URLS) & URLS_URTHRE))
22 __raw_writel(c, (void __iomem*)KS8695_UART_PA + KS8695_URTH);
25 static inline void flush(void)
27 while (!(__raw_readl((void __iomem*)KS8695_UART_PA + KS8695_URLS) & URLS_URTE))
31 #define arch_decomp_setup()