blob: dd9c2934190e045a9e6872bfe84fa26d3c574fec [file] [log] [blame]
Dan Williams285f5fa2006-12-07 02:59:39 +01001#include <asm/types.h>
2#include <linux/serial_reg.h>
3#include <asm/hardware.h>
Dan Williams285f5fa2006-12-07 02:59:39 +01004
5#define UART_BASE ((volatile u32 *)IOP13XX_UART1_PHYS)
6#define TX_DONE (UART_LSR_TEMT | UART_LSR_THRE)
7
8static inline void putc(char c)
9{
10 while ((UART_BASE[UART_LSR] & TX_DONE) != TX_DONE)
Dan Williams7dea1b22007-07-20 02:07:31 +010011 barrier();
Dan Williams285f5fa2006-12-07 02:59:39 +010012 UART_BASE[UART_TX] = c;
13}
14
15static inline void flush(void)
16{
17}
18
19/*
20 * nothing to do
21 */
22#define arch_decomp_setup()
23#define arch_decomp_wdog()