diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2011-09-21 11:10:43 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2011-09-23 09:54:56 +0000 |
commit | bdbc1b3cd4fbec9f7219e05e77874b489e61b217 (patch) | |
tree | 68da9d546cd5fa363b65d9c90fde19a7b979cf11 /hw/omap1.c | |
parent | 0919ac787641db11024912651f3bc5764d4f1286 (diff) |
hw/omap1: Wire up GPIO clock
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>
Diffstat (limited to 'hw/omap1.c')
-rw-r--r-- | hw/omap1.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/omap1.c b/hw/omap1.c index 4bf88e8b7f..619812c176 100644 --- a/hw/omap1.c +++ b/hw/omap1.c @@ -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)); |