-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 66195 b: refs/heads/master c: 5a86042 h: refs/heads/master i: 66193: fb97594 66191: e35c399 v: v3
- Loading branch information
Yoichi Yuasa
authored and
Ralf Baechle
committed
Oct 11, 2007
1 parent
7c53d03
commit 6c0a1e9
Showing
3 changed files
with
5 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: b4126e86301cfc6863cbc74bc4500a88b7c582df | ||
refs/heads/master: 5a860424a1bcf21655d993a7c09b36662e34d2a9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
/* | ||
* (C) P. Horton 2006 | ||
*/ | ||
#include <linux/io.h> | ||
#include <linux/serial_reg.h> | ||
|
||
#include <asm/addrspace.h> | ||
|
||
#include <cobalt.h> | ||
#define UART_BASE ((void __iomem *)CKSEG1ADDR(0x1c800000)) | ||
|
||
void prom_putchar(char c) | ||
{ | ||
while(!(COBALT_UART[UART_LSR] & UART_LSR_THRE)) | ||
while (!(readb(UART_BASE + UART_LSR) & UART_LSR_THRE)) | ||
; | ||
|
||
COBALT_UART[UART_TX] = c; | ||
writeb(c, UART_BASE + UART_TX); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters