]> git.proxmox.com Git - qemu.git/commitdiff
hw/omap1: Wire up GPIO clock
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 21 Sep 2011 11:10:43 +0000 (11:10 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 23 Sep 2011 09:54:56 +0000 (09:54 +0000)
Wire up the OMAP1 GPIO clock -- this fixes a hw_error() on startup
with OMAP1 based machines (sx1, cheetah).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/omap1.c

index 4bf88e8b7fd7d59590aca1ad8bc05171e447b757..619812c1764d6a0160f8c22b3fdf32f82639d358 100644 (file)
@@ -3950,6 +3950,7 @@ struct omap_mpu_state_s *omap310_mpu_init(MemoryRegion *system_memory,
 
     s->gpio = qdev_create(NULL, "omap-gpio");
     qdev_prop_set_int32(s->gpio, "mpu_model", s->mpu_model);
+    qdev_prop_set_ptr(s->gpio, "clk", omap_findclk(s, "arm_gpio_ck"));
     qdev_init_nofail(s->gpio);
     sysbus_connect_irq(sysbus_from_qdev(s->gpio), 0,
                        qdev_get_gpio_in(s->ih[0], OMAP_INT_GPIO_BANK1));