Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
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
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b4126e86301cfc6863cbc74bc4500a88b7c582df
refs/heads/master: 5a860424a1bcf21655d993a7c09b36662e34d2a9
9 changes: 4 additions & 5 deletions trunk/arch/mips/cobalt/console.c
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);
}
2 changes: 0 additions & 2 deletions trunk/include/asm-mips/mach-cobalt/cobalt.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,4 @@ extern int cobalt_board_id;
# define COBALT_KEY_SELECT (1 << 7)
# define COBALT_KEY_MASK 0xfe

#define COBALT_UART ((volatile unsigned char *) CKSEG1ADDR(0x1c800000))

#endif /* __ASM_COBALT_H */

0 comments on commit 6c0a1e9

Please sign in to comment.