This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / arch / mips / pmc-sierra / yosemite / py-console.c
index abc0435..22c336f 100644 (file)
@@ -48,6 +48,8 @@ struct yo_uartregs {
 #define iu_iir u3.iir
 #define iu_fcr u3.fcr
 
+extern unsigned long uart_base;
+
 #define IO_BASE_64     0x9000000000000000ULL
 
 static unsigned char readb_outer_space(unsigned long phys)
@@ -108,6 +110,11 @@ static void writeb_outer_space(unsigned long phys, unsigned char c)
        __asm__("sll    $0, $0, 2\n");
 }
 
+static inline struct yo_uartregs *console_uart(void)
+{
+       return (struct yo_uartregs *) (uart_base + 8);
+}
+
 void prom_putchar(char c)
 {
        unsigned long lsr = 0xfd000008UL + offsetof(struct yo_uartregs, iu_lsr);