summaryrefslogtreecommitdiffstats
path: root/arch/mips/txx9/jmr3927/prom.c
diff options
context:
space:
mode:
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>2008-07-29 22:10:08 +0900
committerRalf Baechle <ralf@linux-mips.org>2008-07-30 21:54:41 +0100
commite352953ce00bb870124e9054dbbbda2262f9269c (patch)
tree76297cc5749b91bec76d75f4520d88add8ca3efc /arch/mips/txx9/jmr3927/prom.c
parent7779a5e07d33fe316fe468e7afe7975fb686a831 (diff)
downloadblackbird-op-linux-e352953ce00bb870124e9054dbbbda2262f9269c.tar.gz
blackbird-op-linux-e352953ce00bb870124e9054dbbbda2262f9269c.zip
[MIPS] TXx9: Support early_printk
Kill jmr3927-specific prom_putchar and add txx9-generic prom_putchar to support early_printk. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/txx9/jmr3927/prom.c')
-rw-r--r--arch/mips/txx9/jmr3927/prom.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/arch/mips/txx9/jmr3927/prom.c b/arch/mips/txx9/jmr3927/prom.c
index 23df38c1490e..70c4c8ec3e84 100644
--- a/arch/mips/txx9/jmr3927/prom.c
+++ b/arch/mips/txx9/jmr3927/prom.c
@@ -41,22 +41,6 @@
#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));
}
OpenPOWER on IntegriCloud