From: Peter Maydell <peter.maydell@linaro.org>
To: Anthony Liguori <anthony@codemonkey.ws>, qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH 3/4] hw/omap1: Wire up GPIO clock
Date: Fri, 23 Sep 2011 12:46:40 +0100 [thread overview]
Message-ID: <1316778401-16313-4-git-send-email-peter.maydell@linaro.org> (raw)
In-Reply-To: <1316778401-16313-1-git-send-email-peter.maydell@linaro.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 <peter.maydell@linaro.org>
---
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
next prev parent reply other threads:[~2011-09-23 11:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-23 11:46 [Qemu-devel] [PULL 0/4] pull: omap patches Peter Maydell
2011-09-23 11:46 ` [Qemu-devel] [PATCH 1/4] omap_intc: Use MemoryRegion API Peter Maydell
2011-09-23 11:46 ` [Qemu-devel] [PATCH 2/4] omap_intc: Qdevify Peter Maydell
2011-09-23 11:46 ` Peter Maydell [this message]
2011-09-23 11:46 ` [Qemu-devel] [PATCH 4/4] MAINTAINERS: claim maintainership for the OMAP devices Peter Maydell
2011-09-26 13:28 ` [Qemu-devel] [PULL 0/4] pull: omap patches Anthony Liguori
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=1316778401-16313-4-git-send-email-peter.maydell@linaro.org \
--to=peter.maydell@linaro.org \
--cc=anthony@codemonkey.ws \
--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).