spi-topcliff-pch: Fix issue for transmitting over 4KByte
[zen-stable.git] / arch / arm / mach-prima2 / include / mach / uncompress.h
blob83125c6a30b31ca9db32d258a28ab12f6bed4912
1 /*
2 * arch/arm/mach-prima2/include/mach/uncompress.h
4 * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
6 * Licensed under GPLv2 or later.
7 */
9 #ifndef __ASM_ARCH_UNCOMPRESS_H
10 #define __ASM_ARCH_UNCOMPRESS_H
12 #include <linux/io.h>
13 #include <mach/hardware.h>
14 #include <mach/uart.h>
16 void arch_decomp_setup(void)
20 #define arch_decomp_wdog()
22 static __inline__ void putc(char c)
25 * during kernel decompression, all mappings are flat:
26 * virt_addr == phys_addr
28 while (__raw_readl(SIRFSOC_UART1_PA_BASE + SIRFSOC_UART_TXFIFO_STATUS)
29 & SIRFSOC_UART1_TXFIFO_FULL)
30 barrier();
32 __raw_writel(c, SIRFSOC_UART1_PA_BASE + SIRFSOC_UART_TXFIFO_DATA);
35 static inline void flush(void)
39 #endif