Revision 7c29d6ce hw/pxa2xx_pic.c
b/hw/pxa2xx_pic.c | ||
---|---|---|
268 | 268 |
|
269 | 269 |
qdev_init_gpio_in(dev, pxa2xx_pic_set_irq, PXA2XX_PIC_SRCS); |
270 | 270 |
|
271 |
sysbus_mmio_map(sysbus_from_qdev(dev), 0, base); |
|
272 |
|
|
273 | 271 |
/* Enable IC memory-mapped registers access. */ |
274 | 272 |
iomemtype = cpu_register_io_memory(pxa2xx_pic_readfn, |
275 | 273 |
pxa2xx_pic_writefn, s, DEVICE_NATIVE_ENDIAN); |
276 | 274 |
sysbus_init_mmio(sysbus_from_qdev(dev), 0x00100000, iomemtype); |
275 |
sysbus_mmio_map(sysbus_from_qdev(dev), 0, base); |
|
277 | 276 |
|
278 | 277 |
/* Enable IC coprocessor access. */ |
279 | 278 |
cpu_arm_set_cp_io(env, 6, pxa2xx_pic_cp_read, pxa2xx_pic_cp_write, s); |
Also available in: Unified diff