2006-12-07 01:59:39 +00:00
|
|
|
#include <asm/types.h>
|
|
|
|
#include <linux/serial_reg.h>
|
2008-08-05 15:14:15 +00:00
|
|
|
#include <mach/hardware.h>
|
2006-12-07 01:59:39 +00:00
|
|
|
|
|
|
|
#define UART_BASE ((volatile u32 *)IOP13XX_UART1_PHYS)
|
|
|
|
#define TX_DONE (UART_LSR_TEMT | UART_LSR_THRE)
|
|
|
|
|
|
|
|
static inline void putc(char c)
|
|
|
|
{
|
|
|
|
while ((UART_BASE[UART_LSR] & TX_DONE) != TX_DONE)
|
2007-07-20 01:07:31 +00:00
|
|
|
barrier();
|
2006-12-07 01:59:39 +00:00
|
|
|
UART_BASE[UART_TX] = c;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void flush(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* nothing to do
|
|
|
|
*/
|
|
|
|
#define arch_decomp_setup()
|
|
|
|
#define arch_decomp_wdog()
|