]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/mips/txx9/jmr3927/prom.c
[MIPS] TXx9: Support early_printk
[linux-2.6-omap-h63xx.git] / arch / mips / txx9 / jmr3927 / prom.c
index 23df38c1490e74dfa4b3d2541e2e97b56b29ca19..70c4c8ec3e84b36d57b241f68a19c9a38bc05303 100644 (file)
 #include <asm/txx9/generic.h>
 #include <asm/txx9/jmr3927.h>
 
-#define TIMEOUT       0xffffff
-
-void
-prom_putchar(char c)
-{
-        int i = 0;
-
-        do {
-            i++;
-            if (i>TIMEOUT)
-                break;
-        } while (!(tx3927_sioptr(1)->cisr & TXx927_SICISR_TXALS));
-       tx3927_sioptr(1)->tfifo = c;
-       return;
-}
-
 void __init jmr3927_prom_init(void)
 {
        /* CCFG */
@@ -65,4 +49,5 @@ void __init jmr3927_prom_init(void)
 
        prom_init_cmdline();
        add_memory_region(0, JMR3927_SDRAM_SIZE, BOOT_MEM_RAM);
+       txx9_sio_putchar_init(TX3927_SIO_REG(1));
 }