# Qemu kernel config for mips/mipsel, from linux-mips.org 2.6.18-stable, # some initialization bits should eventually happen in qemu BIOS. diff --git a/arch/mips/qemu/Makefile b/arch/mips/qemu/Makefile index 078cd30..493259c 100644 --- a/arch/mips/qemu/Makefile +++ b/arch/mips/qemu/Makefile @@ -4,4 +4,5 @@ # obj-y = q-firmware.o q-irq.o q-mem.o q-setup.o q-reset.o +obj-$(CONFIG_VT) += q-vga.o obj-$(CONFIG_SMP) += q-smp.o diff --git a/arch/mips/qemu/q-setup.c b/arch/mips/qemu/q-setup.c index 8413943..37c2f73 100644 --- a/arch/mips/qemu/q-setup.c +++ b/arch/mips/qemu/q-setup.c @@ -2,6 +2,7 @@ #include #include #include +extern void qvga_init(void); extern void qemu_reboot_setup(void); #define QEMU_PORT_BASE 0xb4000000 @@ -23,5 +24,9 @@ void __init plat_timer_setup(struct irqa void __init plat_mem_setup(void) { set_io_port_base(QEMU_PORT_BASE); +#ifdef CONFIG_VT + qvga_init(); +#endif + qemu_reboot_setup(); } diff --git a/arch/mips/qemu/q-vga.c b/arch/mips/qemu/q-vga.c new file mode 100644 index 0000000..e26109a --- /dev/null +++ b/arch/mips/qemu/q-vga.c @@ -0,0 +1,189 @@ +/* + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive + * for more details. + * + * Copyright (C) 2005 by Ralf Baechle (ralf@linux-mips.org) + * + * This will eventually go into the qemu firmware. + */ +#include +#include +#include +#include +#include