vga: remove CONFIG_BOCHS_VBE
[qemu/opensuse.git] / hw / collie.c
blob56f89a9f2e86b5bdc80c013da6e322dfcf940524
1 /*
2 * SA-1110-based Sharp Zaurus SL-5500 platform.
4 * Copyright (C) 2011 Dmitry Eremin-Solenikov
6 * This code is licensed under GNU GPL v2.
8 * Contributions after 2012-01-13 are licensed under the terms of the
9 * GNU GPL, version 2 or (at your option) any later version.
11 #include "hw.h"
12 #include "sysbus.h"
13 #include "boards.h"
14 #include "devices.h"
15 #include "strongarm.h"
16 #include "arm-misc.h"
17 #include "flash.h"
18 #include "blockdev.h"
19 #include "exec-memory.h"
21 static struct arm_boot_info collie_binfo = {
22 .loader_start = SA_SDCS0,
23 .ram_size = 0x20000000,
26 static void collie_init(ram_addr_t ram_size,
27 const char *boot_device,
28 const char *kernel_filename, const char *kernel_cmdline,
29 const char *initrd_filename, const char *cpu_model)
31 StrongARMState *s;
32 DriveInfo *dinfo;
33 MemoryRegion *sysmem = get_system_memory();
35 if (!cpu_model) {
36 cpu_model = "sa1110";
39 s = sa1110_init(sysmem, collie_binfo.ram_size, cpu_model);
41 dinfo = drive_get(IF_PFLASH, 0, 0);
42 pflash_cfi01_register(SA_CS0, NULL, "collie.fl1", 0x02000000,
43 dinfo ? dinfo->bdrv : NULL, (64 * 1024),
44 512, 4, 0x00, 0x00, 0x00, 0x00, 0);
46 dinfo = drive_get(IF_PFLASH, 0, 1);
47 pflash_cfi01_register(SA_CS1, NULL, "collie.fl2", 0x02000000,
48 dinfo ? dinfo->bdrv : NULL, (64 * 1024),
49 512, 4, 0x00, 0x00, 0x00, 0x00, 0);
51 sysbus_create_simple("scoop", 0x40800000, NULL);
53 collie_binfo.kernel_filename = kernel_filename;
54 collie_binfo.kernel_cmdline = kernel_cmdline;
55 collie_binfo.initrd_filename = initrd_filename;
56 collie_binfo.board_id = 0x208;
57 arm_load_kernel(s->cpu, &collie_binfo);
60 static QEMUMachine collie_machine = {
61 .name = "collie",
62 .desc = "Collie PDA (SA-1110)",
63 .init = collie_init,
66 static void collie_machine_init(void)
68 qemu_register_machine(&collie_machine);
71 machine_init(collie_machine_init)