Received: from eggs.gnu.org ([140.186.70.92]:47299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R74DX-0008Tx-Bx for qemu-devel@nongnu.org; Fri, 23 Sep 2011 07:46:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R74DU-0005UG-RL for qemu-devel@nongnu.org; Fri, 23 Sep 2011 07:46:55 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:51769) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R74DU-0005Rq-LG for qemu-devel@nongnu.org; Fri, 23 Sep 2011 07:46:52 -0400 From: Peter Maydell Date: Fri, 23 Sep 2011 12:46:40 +0100 Message-Id: <1316778401-16313-4-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1316778401-16313-1-git-send-email-peter.maydell@linaro.org> References: <1316778401-16313-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 3/4] hw/omap1: Wire up GPIO clock List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori , qemu-devel@nongnu.org Wire up the OMAP1 GPIO clock -- this fixes a hw_error() on startup with OMAP1 based machines (sx1, cheetah). Signed-off-by: Peter Maydell --- hw/omap1.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/omap1.c b/hw/omap1.c index 4bf88e8..619812c 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)); -- 1.7.1