Revision d028d02d hw/versatilepb.c

b/hw/versatilepb.c
182 182
    qemu_irq sic[32];
183 183
    DeviceState *dev, *sysctl;
184 184
    SysBusDevice *busdev;
185
    DeviceState *pl041;
185 186
    PCIBus *pci_bus;
186 187
    NICInfo *nd;
187 188
    int n;
......
273 274
    /* Add PL031 Real Time Clock. */
274 275
    sysbus_create_simple("pl031", 0x101e8000, pic[10]);
275 276

  
277
    /* Add PL041 AACI Interface to the LM4549 codec */
278
    pl041 = qdev_create(NULL, "pl041");
279
    qdev_prop_set_uint32(pl041, "nc_fifo_depth", 512);
280
    qdev_init_nofail(pl041);
281
    sysbus_mmio_map(sysbus_from_qdev(pl041), 0, 0x10004000);
282
    sysbus_connect_irq(sysbus_from_qdev(pl041), 0, sic[24]);
283

  
276 284
    /* Memory map for Versatile/PB:  */
277 285
    /* 0x10000000 System registers.  */
278 286
    /* 0x10001000 PCI controller config registers.  */

Also available in: Unified diff