| * This program is free software; you can redistribute it and/or modify it |
| * under the terms of the GNU General Public License version 2 as published |
| * by the Free Software Foundation. |
| * Copyright (C) 2010 John Crispin <blogic@openwrt.org> |
| #define LTQ_ASC_FSTAT ((u32 *)(LTQ_EARLY_ASC + 0x0048)) |
| #define LTQ_ASC_TBUF ((u32 *)(LTQ_EARLY_ASC + 0x0020 + 3)) |
| #define LTQ_ASC_TBUF ((u32 *)(LTQ_EARLY_ASC + 0x0020)) |
| void prom_putchar(char c) |
| do { } while ((ltq_r32(LTQ_ASC_FSTAT) & TXMASK) >> TXOFFSET); |
| ltq_w8('\r', LTQ_ASC_TBUF); |
| local_irq_restore(flags); |