2010-04-01 05:30:42 -06:00
|
|
|
/*
|
|
|
|
* arch/arm/plat-spear/include/plat/uncompress.h
|
|
|
|
*
|
|
|
|
* Serial port stubs for kernel decompress status messages
|
|
|
|
*
|
|
|
|
* Copyright (C) 2009 ST Microelectronics
|
2012-06-20 13:53:02 -06:00
|
|
|
* Viresh Kumar <viresh.linux@gmail.com>
|
2010-04-01 05:30:42 -06:00
|
|
|
*
|
|
|
|
* This file is licensed under the terms of the GNU General Public
|
|
|
|
* License version 2. This program is licensed "as is" without any
|
|
|
|
* warranty of any kind, whether express or implied.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/io.h>
|
|
|
|
#include <linux/amba/serial.h>
|
2012-04-11 11:30:11 -06:00
|
|
|
#include <mach/spear.h>
|
2010-04-01 05:30:42 -06:00
|
|
|
|
|
|
|
#ifndef __PLAT_UNCOMPRESS_H
|
|
|
|
#define __PLAT_UNCOMPRESS_H
|
|
|
|
/*
|
|
|
|
* This does not append a newline
|
|
|
|
*/
|
|
|
|
static inline void putc(int c)
|
|
|
|
{
|
|
|
|
void __iomem *base = (void __iomem *)SPEAR_DBG_UART_BASE;
|
|
|
|
|
2011-02-15 23:41:06 -07:00
|
|
|
while (readl_relaxed(base + UART01x_FR) & UART01x_FR_TXFF)
|
2010-04-01 05:30:42 -06:00
|
|
|
barrier();
|
|
|
|
|
2011-02-15 23:41:06 -07:00
|
|
|
writel_relaxed(c, base + UART01x_DR);
|
2010-04-01 05:30:42 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
static inline void flush(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* nothing to do
|
|
|
|
*/
|
|
|
|
#define arch_decomp_setup()
|
|
|
|
|
|
|
|
#endif /* __PLAT_UNCOMPRESS_H */
|