]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - include/asm-arm/arch-iop33x/uncompress.h
Merge branch 'header-move' of git://git.kernel.org/pub/scm/linux/kernel/git/hskinnemo...
[mirror_ubuntu-zesty-kernel.git] / include / asm-arm / arch-iop33x / uncompress.h
CommitLineData
3f7e5815 1/*
c852ac80 2 * include/asm-arm/arch-iop33x/uncompress.h
3f7e5815 3 */
c852ac80 4
3f7e5815
LB
5#include <asm/types.h>
6#include <asm/mach-types.h>
7#include <linux/serial_reg.h>
be509729 8#include <asm/arch/hardware.h>
3f7e5815
LB
9
10static volatile u32 *uart_base;
11
c852ac80 12#define TX_DONE (UART_LSR_TEMT | UART_LSR_THRE)
3f7e5815
LB
13
14static inline void putc(char c)
15{
16 while ((uart_base[UART_LSR] & TX_DONE) != TX_DONE)
17 barrier();
c852ac80 18 uart_base[UART_TX] = c;
3f7e5815
LB
19}
20
21static inline void flush(void)
22{
23}
24
25static __inline__ void __arch_decomp_setup(unsigned long arch_id)
26{
27 if (machine_is_iq80331() || machine_is_iq80332())
c852ac80 28 uart_base = (volatile u32 *)IOP33X_UART0_PHYS;
3f7e5815
LB
29 else
30 uart_base = (volatile u32 *)0xfe800000;
31}
32
33/*
34 * nothing to do
35 */
36#define arch_decomp_setup() __arch_decomp_setup(arch_id)
37#define arch_decomp_wdog()