1 /* arch/arm/mach-zynq/include/mach/uncompress.h
3 * Copyright (C) 2011 Xilinx
5 * This software is licensed under the terms of the GNU General Public
6 * License version 2, as published by the Free Software Foundation, and
7 * may be copied, distributed, and modified under those terms.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
15 #ifndef __MACH_UNCOMPRESS_H__
16 #define __MACH_UNCOMPRESS_H__
19 #include <asm/processor.h>
20 #include <mach/zynq_soc.h>
21 #include <mach/uart.h>
23 void arch_decomp_setup(void)
27 static inline void flush(void)
30 * Wait while the FIFO is not empty
32 while (!(__raw_readl(IOMEM(LL_UART_PADDR
+ UART_SR_OFFSET
)) &
37 #define arch_decomp_wdog()
39 static void putc(char ch
)
42 * Wait for room in the FIFO, then write the char into the FIFO
44 while (__raw_readl(IOMEM(LL_UART_PADDR
+ UART_SR_OFFSET
)) &
48 __raw_writel(ch
, IOMEM(LL_UART_PADDR
+ UART_FIFO_OFFSET
));