Path: blob/master/arch/arm/mach-gemini/include/mach/uncompress.h
10820 views
/*1* Copyright (C) 2008-2009 Paulius Zaleckas <[email protected]>2*3* Based on mach-pxa/include/mach/uncompress.h:4* Copyright: (C) 2001 MontaVista Software Inc.5*6* This program is free software; you can redistribute it and/or modify7* it under the terms of the GNU General Public License as published by8* the Free Software Foundation; either version 2 of the License, or9* (at your option) any later version.10*/1112#ifndef __MACH_UNCOMPRESS_H13#define __MACH_UNCOMPRESS_H1415#include <linux/serial_reg.h>16#include <mach/hardware.h>1718static volatile unsigned long * const UART = (unsigned long *)GEMINI_UART_BASE;1920/*21* The following code assumes the serial port has already been22* initialized by the bootloader. If you didn't setup a port in23* your bootloader then nothing will appear (which might be desired).24*/25static inline void putc(char c)26{27while (!(UART[UART_LSR] & UART_LSR_THRE))28barrier();29UART[UART_TX] = c;30}3132static inline void flush(void)33{34}3536/*37* nothing to do38*/39#define arch_decomp_setup()4041#define arch_decomp_wdog()4243#endif /* __MACH_UNCOMPRESS_H */444546