allwinner-a10.c (f41ee66df0ceef0002644d08a61a6a929674898d) | allwinner-a10.c (9bca0edb282de0007a4f068d9d20f3e3c3aadef7) |
---|---|
1/* 2 * Allwinner A10 SoC emulation 3 * 4 * Copyright (C) 2013 Li Guang 5 * Written by Li Guang <lig.fnst@cn.fujitsu.com> 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published by the --- 94 unchanged lines hidden (view full) --- 103 object_property_set_bool(OBJECT(&s->sata), true, "realized", &err); 104 if (err) { 105 error_propagate(errp, err); 106 return; 107 } 108 sysbus_mmio_map(SYS_BUS_DEVICE(&s->sata), 0, AW_A10_SATA_BASE); 109 sysbus_connect_irq(SYS_BUS_DEVICE(&s->sata), 0, s->irq[56]); 110 | 1/* 2 * Allwinner A10 SoC emulation 3 * 4 * Copyright (C) 2013 Li Guang 5 * Written by Li Guang <lig.fnst@cn.fujitsu.com> 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published by the --- 94 unchanged lines hidden (view full) --- 103 object_property_set_bool(OBJECT(&s->sata), true, "realized", &err); 104 if (err) { 105 error_propagate(errp, err); 106 return; 107 } 108 sysbus_mmio_map(SYS_BUS_DEVICE(&s->sata), 0, AW_A10_SATA_BASE); 109 sysbus_connect_irq(SYS_BUS_DEVICE(&s->sata), 0, s->irq[56]); 110 |
111 /* FIXME use a qdev chardev prop instead of serial_hds[] */ | 111 /* FIXME use a qdev chardev prop instead of serial_hd() */ |
112 serial_mm_init(get_system_memory(), AW_A10_UART0_REG_BASE, 2, s->irq[1], | 112 serial_mm_init(get_system_memory(), AW_A10_UART0_REG_BASE, 2, s->irq[1], |
113 115200, serial_hds[0], DEVICE_NATIVE_ENDIAN); | 113 115200, serial_hd(0), DEVICE_NATIVE_ENDIAN); |
114} 115 116static void aw_a10_class_init(ObjectClass *oc, void *data) 117{ 118 DeviceClass *dc = DEVICE_CLASS(oc); 119 120 dc->realize = aw_a10_realize; 121 /* Reason: Uses serial_hds and nd_table in realize function */ --- 17 unchanged lines hidden --- | 114} 115 116static void aw_a10_class_init(ObjectClass *oc, void *data) 117{ 118 DeviceClass *dc = DEVICE_CLASS(oc); 119 120 dc->realize = aw_a10_realize; 121 /* Reason: Uses serial_hds and nd_table in realize function */ --- 17 unchanged lines hidden --- |