]> git.proxmox.com Git - qemu.git/commitdiff
hw/omap2: Wire up the IRQ for the 2430's fifth GPIO module
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 18 Oct 2011 15:12:54 +0000 (16:12 +0100)
committerAndrzej Zaborowski <andrew.zaborowski@intel.com>
Fri, 21 Oct 2011 15:19:53 +0000 (17:19 +0200)
The OMAP2430 version of the omap-gpio device has five GPIO modules,
not four like the other OMAP2 versions; wire up the fifth module's
IRQ line correctly.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
hw/omap2.c

index 838c32f3710e95c3275699ddc3a961fd676a987f..5197fef2d88475a27d1ff39d2310e608551cbfd7 100644 (file)
@@ -2409,6 +2409,11 @@ struct omap_mpu_state_s *omap2420_mpu_init(unsigned long sdram_size,
                        qdev_get_gpio_in(s->ih[0], OMAP_INT_24XX_GPIO_BANK3));
     sysbus_connect_irq(busdev, 9,
                        qdev_get_gpio_in(s->ih[0], OMAP_INT_24XX_GPIO_BANK4));
+    if (s->mpu_model == omap2430) {
+        sysbus_connect_irq(busdev, 12,
+                           qdev_get_gpio_in(s->ih[0],
+                                            OMAP_INT_243X_GPIO_BANK5));
+    }
     ta = omap_l4ta(s->l4, 3);
     sysbus_mmio_map(busdev, 0, omap_l4_region_base(ta, 1));
     sysbus_mmio_map(busdev, 1, omap_l4_region_base(ta, 0));