summaryrefslogtreecommitdiff
path: root/arch/mips/qemu/q-setup.c
blob: 23d34c1917c00fa07208f18aea99d0a482ca36b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <linux/init.h>

#include <asm/i8253.h>
#include <asm/io.h>
#include <asm/time.h>

extern void qemu_reboot_setup(void);

#define QEMU_PORT_BASE 0xb4000000

const char *get_system_type(void)
{
	return "Qemu";
}

void __init plat_time_init(void)
{
	setup_pit_timer();
}

void __init plat_mem_setup(void)
{
	set_io_port_base(QEMU_PORT_BASE);
	qemu_reboot_setup();
}