1#include <linux/init.h> 2#include <asm/io.h> 3#include <asm/time.h> 4 5extern void qvga_init(void); 6extern void qemu_reboot_setup(void); 7 8#define QEMU_PORT_BASE 0xb4000000 9 10const char *get_system_type(void) 11{ 12 return "Qemu"; 13} 14 15void __init plat_timer_setup(struct irqaction *irq) 16{ 17 /* set the clock to 100 Hz */ 18 outb_p(0x34,0x43); /* binary, mode 2, LSB/MSB, ch 0 */ 19 outb_p(LATCH & 0xff , 0x40); /* LSB */ 20 outb(LATCH >> 8 , 0x40); /* MSB */ 21 setup_irq(0, irq); 22} 23 24void __init plat_mem_setup(void) 25{ 26 set_io_port_base(QEMU_PORT_BASE); 27#ifdef CONFIG_VT 28 qvga_init(); 29#endif 30 31 qemu_reboot_setup(); 32} 33