aboutsummaryrefslogtreecommitdiffstats
path: root/hw/integratorcp.c
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2009-05-14 22:35:07 +0100
committerPaul Brook <paul@codesourcery.com>2009-05-14 22:35:07 +0100
commit6a824ec3d2e3d9b061c31aa14535eb7e08a6846c (patch)
tree162f5a5ed40d3223d204f4f06a48813d948174eb /hw/integratorcp.c
parenta7086888fc9d08d725eb5c8cc862c3434f7503e2 (diff)
ARM timers qdev conversion
Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'hw/integratorcp.c')
-rw-r--r--hw/integratorcp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/integratorcp.c b/hw/integratorcp.c
index 2b606e7d5..ee733fbc2 100644
--- a/hw/integratorcp.c
+++ b/hw/integratorcp.c
@@ -486,8 +486,9 @@ static void integratorcp_init(ram_addr_t ram_size,
for (i = 0; i < 32; i++) {
pic[i] = qdev_get_irq_sink(dev, i);
}
- dev = sysbus_create_simple("integrator_pic", 0xca000000, pic[26]);
- icp_pit_init(0x13000000, pic, 5);
+ sysbus_create_simple("integrator_pic", 0xca000000, pic[26]);
+ sysbus_create_varargs("integrator_pit", 0x13000000,
+ pic[5], pic[6], pic[7], NULL);
sysbus_create_simple("pl031", 0x15000000, pic[8]);
sysbus_create_simple("pl011", 0x16000000, pic[1]);
sysbus_create_simple("pl011", 0x17000000, pic[2]);