2 * Arch specific code for Lantiq based boards
4 * Copyright (C) 2013 John Crispin <blogic@openwrt.org>
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published
8 * by the Free Software Foundation.
14 #define READREG(r) *(volatile unsigned int *)(r)
15 #define WRITEREG(r,v) *(volatile unsigned int *)(r) = v
17 #define UART_BASE 0xbe100c00
18 #define ASC_TBUF (UART_BASE | 0x20)
19 #define ASC_FSTAT (UART_BASE | 0x48)
24 void board_putc(char c)
26 while ((READREG(ASC_FSTAT) & TXMASK) >> TXOFFSET);
28 WRITEREG(ASC_TBUF, c);