qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: qemu-devel@nongnu.org
Cc: patches@linaro.org
Subject: [Qemu-devel] [PATCH] hw/omap1: Wire up GPIO clock
Date: Wed, 21 Sep 2011 12:16:56 +0100	[thread overview]
Message-ID: <1316603816-12601-1-git-send-email-peter.maydell@linaro.org> (raw)

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>
---
This might textually conflict with Avi's memory API batch 8; I'm posting
it for review anyway so I can put it together in a pullreq with the other
outstanding omap patches which I'll rebase once batch 8 is committed.

 hw/omap1.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/hw/omap1.c b/hw/omap1.c
index 614fd31..6237b6f 100644
--- a/hw/omap1.c
+++ b/hw/omap1.c
@@ -3847,6 +3847,7 @@ struct omap_mpu_state_s *omap310_mpu_init(unsigned long sdram_size,
 
     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,
                     s->irq[0][OMAP_INT_GPIO_BANK1]);
-- 
1.7.1

                 reply	other threads:[~2011-09-21 11:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1316603816-12601-1-git-send-email-peter.maydell@linaro.org \
    --to=peter.maydell@linaro.org \
    --cc=patches@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).