aboutsummaryrefslogtreecommitdiff
path: root/arch/mips/qemu/q-firmware.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2007-11-04 04:49:44 +0000
committerRalf Baechle <ralf@linux-mips.org>2007-11-15 23:21:48 +0000
commita57c228935fd55c4a1cf7c0b7823537c81914000 (patch)
tree36a2aa23cf2f6aec80cb0c46469f8e9cdcddcabe /arch/mips/qemu/q-firmware.c
parenta8049c53cdad347b5b1234969dba65a179fdf8f1 (diff)
[MIPS] Qemu: Add early printk, your friend in a cold night.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/qemu/q-firmware.c')
-rw-r--r--arch/mips/qemu/q-firmware.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/qemu/q-firmware.c b/arch/mips/qemu/q-firmware.c
index c2239b41758..3ed43f416cd 100644
--- a/arch/mips/qemu/q-firmware.c
+++ b/arch/mips/qemu/q-firmware.c
@@ -2,6 +2,9 @@
#include <linux/string.h>
#include <asm/addrspace.h>
#include <asm/bootinfo.h>
+#include <asm/io.h>
+
+#define QEMU_PORT_BASE 0xb4000000
void __init prom_init(void)
{
@@ -15,4 +18,7 @@ void __init prom_init(void)
} else {
add_memory_region(0x0<<20, 0x10<<20, BOOT_MEM_RAM);
}
+
+
+ set_io_port_base(QEMU_PORT_BASE);
}