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 0/5] Fix MMC card detection for Realview boards
Date: Mon, 21 Feb 2011 20:57:48 +0000	[thread overview]
Message-ID: <1298321873-17064-1-git-send-email-peter.maydell@linaro.org> (raw)

This patchset fixes a number of problems which were preventing
Linux on Realview boards (EB926, EB 11MPCore, PB-A8 and PBX)
from recognising the presence of an MMC card. Basically the
PL181 needs to export some output pins for card status,
which we can then wire up to both a system register and a
PL061 GPIO module. However we weren't actually instantiating
the PL061 and in any case the ID registers weren't correct for
Linux to detect it.

Combined with the SD card model patch I posted earlier
(http://patchwork.ozlabs.org/patch/83594/) these patches
allow Linux on a PBX to detect and mount an SD card rootfs.

(I'm doing this work not for the sake of the realview boards,
but because it's also mostly necessary for the Versatile Express
model patchset I'm cleaning up and hope to post shortly.)

Peter Maydell (5):
  hw/pl181: Implement GPIO output pins for card status
  hw/arm_sysctl.c: Wire MCI register MMC card status bits to GPIO inputs
  hw/pl061.c: Implement ARM PL061 as well as Luminary one
  hw/irq: Add qemu_irq_split() so one GPIO output can feed two inputs
  hw/realview: Wire up the MMC card status

 hw/arm_sysctl.c |   47 ++++++++++++++++++++++++++++++++++++++++++++++-
 hw/irq.c        |   15 +++++++++++++++
 hw/irq.h        |    3 +++
 hw/pl061.c      |   23 +++++++++++++++++++----
 hw/pl181.c      |    6 ++++++
 hw/primecell.h  |    4 ++++
 hw/realview.c   |   29 ++++++++++++++++++++++++++---
 hw/stellaris.c  |    2 +-
 8 files changed, 120 insertions(+), 9 deletions(-)

             reply	other threads:[~2011-02-21 20:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-21 20:57 Peter Maydell [this message]
2011-02-21 20:57 ` [Qemu-devel] [PATCH 1/5] hw/pl181: Implement GPIO output pins for card status Peter Maydell
2011-02-21 20:57 ` [Qemu-devel] [PATCH 2/5] hw/arm_sysctl.c: Wire MCI register MMC card status bits to GPIO inputs Peter Maydell
2011-02-21 20:57 ` [Qemu-devel] [PATCH 3/5] hw/pl061.c: Implement ARM PL061 as well as Luminary one Peter Maydell
2011-02-21 20:57 ` [Qemu-devel] [PATCH 4/5] hw/irq: Add qemu_irq_split() so one GPIO output can feed two inputs Peter Maydell
2011-02-21 20:57 ` [Qemu-devel] [PATCH 5/5] hw/realview: Wire up the MMC card status Peter Maydell
2011-03-06 18:04 ` [Qemu-devel] [PATCH 0/5] Fix MMC card detection for Realview boards Aurelien Jarno

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=1298321873-17064-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).