git.openpandora.org
/
pandora-kernel.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
db330e811025d36cf9a33a1b2a2c6d169d1a9e23
[pandora-kernel.git]
/
arch
/
mips
/
cobalt
/
console.c
1
/*
2
* (C) P. Horton 2006
3
*/
4
#include <linux/io.h>
5
#include <linux/serial_reg.h>
6
7
#define UART_BASE ((void __iomem *)CKSEG1ADDR(0x1c800000))
8
9
void prom_putchar(char c)
10
{
11
while (!(readb(UART_BASE + UART_LSR) & UART_LSR_THRE))
12
;
13
14
writeb(c, UART_BASE + UART_TX);
15
}