2 * This program is free software; you can redistribute it and/or modify it
3 * under the terms of the GNU General Public License version 2 as published
4 * by the Free Software Foundation.
6 * Copyright (C) 2010 John Crispin <blogic@openwrt.org>
10 #include <lantiq_soc.h>
13 #define LTQ_ASC_FSTAT ((u32 *)(LTQ_EARLY_ASC + 0x0048))
15 #define LTQ_ASC_TBUF ((u32 *)(LTQ_EARLY_ASC + 0x0020 + 3))
17 #define LTQ_ASC_TBUF ((u32 *)(LTQ_EARLY_ASC + 0x0020))
22 void prom_putchar(char c
)
26 local_irq_save(flags
);
27 do { } while ((ltq_r32(LTQ_ASC_FSTAT
) & TXMASK
) >> TXOFFSET
);
29 ltq_w8('\r', LTQ_ASC_TBUF
);
30 ltq_w8(c
, LTQ_ASC_TBUF
);
31 local_irq_restore(flags
);
This page took 0.031063 seconds and 5 git commands to generate.