Skip to content

hw/arm: Add MMC device for NPCM7XX boards

Hao Wu qemu-arm qemu-devel 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 0 repliesNew
  2. v25 patches 6 repliesSuperseded
  3. v14 patches 4 repliesSuperseded

Changes in v3 from the cover letter

1. Fix an error use of strcmp in qtest.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5hw/sd: add nuvoton MMChw/sd/meson.build hw/sd/npcm7xx_sdhci.c include/hw/sd/npcm7xx_sdhci.h+248 -00 replies
2/5hw/arm: Add Nuvoton SD module to boardhw/arm/npcm7xx.c include/hw/arm/npcm7xx.h+13 -10 replies
3/5hw/arm: Attach MMC to quanta-gbs-bmchw/arm/npcm7xx_boards.c+20 -00 replies
4/5tests/qtest/libqos: add SDHCI commandstests/qtest/libqos/meson.build tests/qtest/libqos/sdhci-cmd.c tests/qtest/libqos/sdhci-cmd.h+187 -00 replies
5/5tests/qtest: add qtests for npcm7xx sdhcitests/qtest/meson.build tests/qtest/npcm7xx_sdhci-test.c+210 -00 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchHao WuChris RauerTyrone TingPeter Maydell
1/5R-b R-b R-b R-b
2/5R-b R-b R-b R-b
3/5R-b R-b R-b
4/5R-b R-b R-b R-b
5/5R-b R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/5] hw/arm: Add MMC device for NPCM7XX boards

This patch set implements the Nuvoton MMC device
for NPCM7XX boards.

The MMC device is compatible with the SDHCI interface in QEMU. It allows the user to attach an SD card image to it.

Changes since v2:
1. Fix an error use of strcmp in qtest.

Changes since v1:
1. Rearrange the "add SDHCI commands" to just before when it's actually used.
2. Add standrad SDHCI MMIO as subregion, similar to cadence_sdhci. e. Add a vmstate for NPCM7XX SDHCI.
4. Address various minor fixes suggested by Peter Maydell.

Shengtan Mao (5):
hw/sd: add nuvoton MMC
hw/arm: Add Nuvoton SD module to board
hw/arm: Attach MMC to quanta-gbs-bmc
tests/qtest/libqos: add SDHCI commands
tests/qtest: add qtests for npcm7xx sdhci

 hw/arm/npcm7xx.c                 |  12 +-
 hw/arm/npcm7xx_boards.c          |  20 +++
 hw/sd/meson.build                |   1 +
 hw/sd/npcm7xx_sdhci.c            | 182 +++++++++++++++++++++++++++
 include/hw/arm/npcm7xx.h         |   2 +
 include/hw/sd/npcm7xx_sdhci.h    |  65 ++++++++++
 tests/qtest/libqos/meson.build   |   1 +
 tests/qtest/libqos/sdhci-cmd.c   | 116 +++++++++++++++++
 tests/qtest/libqos/sdhci-cmd.h   |  70 +++++++++++
 tests/qtest/meson.build          |   1 +
 tests/qtest/npcm7xx_sdhci-test.c | 209 +++++++++++++++++++++++++++++++
 11 files changed, 678 insertions(+), 1 deletion(-)
 create mode 100644 hw/sd/npcm7xx_sdhci.c
 create mode 100644 include/hw/sd/npcm7xx_sdhci.h
 create mode 100644 tests/qtest/libqos/sdhci-cmd.c
 create mode 100644 tests/qtest/libqos/sdhci-cmd.h
 create mode 100644 tests/qtest/npcm7xx_sdhci-test.c
Signature · 1 line
2.33.1.1089.g2158813163f-goog