projects
/
firefly-linux-kernel-4.4.55.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'release' of git://lm-sensors.org/kernel/mhoffman/hwmon-2.6
[firefly-linux-kernel-4.4.55.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
}