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.
12 #include "strongarm.h"
17 static struct arm_boot_info collie_binfo
= {
18 .loader_start
= SA_SDCS0
,
19 .ram_size
= 0x20000000,
22 static void collie_init(ram_addr_t ram_size
,
23 const char *boot_device
,
24 const char *kernel_filename
, const char *kernel_cmdline
,
25 const char *initrd_filename
, const char *cpu_model
)
29 MemoryRegion
*phys_flash
= g_new(MemoryRegion
, 2);
35 s
= sa1110_init(collie_binfo
.ram_size
, cpu_model
);
37 memory_region_init_rom_device(&phys_flash
[0], &pflash_cfi01_ops_le
,
38 NULL
, "collie.fl1", 0x02000000);
39 dinfo
= drive_get(IF_PFLASH
, 0, 0);
40 pflash_cfi01_register(SA_CS0
, &phys_flash
[0],
41 dinfo
? dinfo
->bdrv
: NULL
, (64 * 1024),
42 512, 4, 0x00, 0x00, 0x00, 0x00);
44 memory_region_init_rom_device(&phys_flash
[1], &pflash_cfi01_ops_le
,
45 NULL
, "collie.fl2", 0x02000000);
46 dinfo
= drive_get(IF_PFLASH
, 0, 1);
47 pflash_cfi01_register(SA_CS1
, &phys_flash
[1],
48 dinfo
? dinfo
->bdrv
: NULL
, (64 * 1024),
49 512, 4, 0x00, 0x00, 0x00, 0x00);
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
->env
, &collie_binfo
);
60 static QEMUMachine collie_machine
= {
62 .desc
= "Collie PDA (SA-1110)",
66 static void collie_machine_init(void)
68 qemu_register_machine(&collie_machine
);
71 machine_init(collie_machine_init
)