musicpal.c (4482e05cbbb7e50e476f6a9500cf0b38913bd939) | musicpal.c (ba1ba5cca3962a9cc400c713c736b4fb8db1f38e) |
---|---|
1/* 2 * Marvell MV88W8618 / Freecom MusicPal emulation. 3 * 4 * Copyright (c) 2008 Jan Kiszka 5 * 6 * This code is licensed under the GNU GPL v2. 7 * 8 * Contributions after 2012-01-13 are licensed under the terms of the --- 1556 unchanged lines hidden (view full) --- 1565 1566static struct arm_boot_info musicpal_binfo = { 1567 .loader_start = 0x0, 1568 .board_id = 0x20e, 1569}; 1570 1571static void musicpal_init(MachineState *machine) 1572{ | 1/* 2 * Marvell MV88W8618 / Freecom MusicPal emulation. 3 * 4 * Copyright (c) 2008 Jan Kiszka 5 * 6 * This code is licensed under the GNU GPL v2. 7 * 8 * Contributions after 2012-01-13 are licensed under the terms of the --- 1556 unchanged lines hidden (view full) --- 1565 1566static struct arm_boot_info musicpal_binfo = { 1567 .loader_start = 0x0, 1568 .board_id = 0x20e, 1569}; 1570 1571static void musicpal_init(MachineState *machine) 1572{ |
1573 const char *cpu_model = machine->cpu_model; | |
1574 const char *kernel_filename = machine->kernel_filename; 1575 const char *kernel_cmdline = machine->kernel_cmdline; 1576 const char *initrd_filename = machine->initrd_filename; 1577 ARMCPU *cpu; 1578 qemu_irq pic[32]; 1579 DeviceState *dev; 1580 DeviceState *i2c_dev; 1581 DeviceState *lcd_dev; 1582 DeviceState *key_dev; 1583 DeviceState *wm8750_dev; 1584 SysBusDevice *s; 1585 I2CBus *i2c; 1586 int i; 1587 unsigned long flash_size; 1588 DriveInfo *dinfo; 1589 MemoryRegion *address_space_mem = get_system_memory(); 1590 MemoryRegion *ram = g_new(MemoryRegion, 1); 1591 MemoryRegion *sram = g_new(MemoryRegion, 1); 1592 | 1573 const char *kernel_filename = machine->kernel_filename; 1574 const char *kernel_cmdline = machine->kernel_cmdline; 1575 const char *initrd_filename = machine->initrd_filename; 1576 ARMCPU *cpu; 1577 qemu_irq pic[32]; 1578 DeviceState *dev; 1579 DeviceState *i2c_dev; 1580 DeviceState *lcd_dev; 1581 DeviceState *key_dev; 1582 DeviceState *wm8750_dev; 1583 SysBusDevice *s; 1584 I2CBus *i2c; 1585 int i; 1586 unsigned long flash_size; 1587 DriveInfo *dinfo; 1588 MemoryRegion *address_space_mem = get_system_memory(); 1589 MemoryRegion *ram = g_new(MemoryRegion, 1); 1590 MemoryRegion *sram = g_new(MemoryRegion, 1); 1591 |
1593 if (!cpu_model) { 1594 cpu_model = "arm926"; 1595 } 1596 cpu = ARM_CPU(cpu_generic_init(TYPE_ARM_CPU, cpu_model)); | 1592 cpu = ARM_CPU(cpu_create(machine->cpu_type)); |
1597 1598 /* For now we use a fixed - the original - RAM size */ 1599 memory_region_allocate_system_memory(ram, NULL, "musicpal.ram", 1600 MP_RAM_DEFAULT_SIZE); 1601 memory_region_add_subregion(address_space_mem, 0, ram); 1602 1603 memory_region_init_ram(sram, NULL, "musicpal.sram", MP_SRAM_SIZE, 1604 &error_fatal); --- 105 unchanged lines hidden (view full) --- 1710 arm_load_kernel(cpu, &musicpal_binfo); 1711} 1712 1713static void musicpal_machine_init(MachineClass *mc) 1714{ 1715 mc->desc = "Marvell 88w8618 / MusicPal (ARM926EJ-S)"; 1716 mc->init = musicpal_init; 1717 mc->ignore_memory_transaction_failures = true; | 1593 1594 /* For now we use a fixed - the original - RAM size */ 1595 memory_region_allocate_system_memory(ram, NULL, "musicpal.ram", 1596 MP_RAM_DEFAULT_SIZE); 1597 memory_region_add_subregion(address_space_mem, 0, ram); 1598 1599 memory_region_init_ram(sram, NULL, "musicpal.sram", MP_SRAM_SIZE, 1600 &error_fatal); --- 105 unchanged lines hidden (view full) --- 1706 arm_load_kernel(cpu, &musicpal_binfo); 1707} 1708 1709static void musicpal_machine_init(MachineClass *mc) 1710{ 1711 mc->desc = "Marvell 88w8618 / MusicPal (ARM926EJ-S)"; 1712 mc->init = musicpal_init; 1713 mc->ignore_memory_transaction_failures = true; |
1714 mc->default_cpu_type = ARM_CPU_TYPE_NAME("arm926"); |
|
1718} 1719 1720DEFINE_MACHINE("musicpal", musicpal_machine_init) 1721 1722static void mv88w8618_wlan_class_init(ObjectClass *klass, void *data) 1723{ 1724 SysBusDeviceClass *sdc = SYS_BUS_DEVICE_CLASS(klass); 1725 --- 24 unchanged lines hidden --- | 1715} 1716 1717DEFINE_MACHINE("musicpal", musicpal_machine_init) 1718 1719static void mv88w8618_wlan_class_init(ObjectClass *klass, void *data) 1720{ 1721 SysBusDeviceClass *sdc = SYS_BUS_DEVICE_CLASS(klass); 1722 --- 24 unchanged lines hidden --- |