[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 0/5] hw/arm: Add MMC device for NPCM7XX boards
From: |
Hao Wu |
Subject: |
[PATCH v2 0/5] hw/arm: Add MMC device for NPCM7XX boards |
Date: |
Thu, 7 Oct 2021 17:26:23 -0700 |
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 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
--
2.33.0.882.g93a45727a2-goog
- [PATCH v2 0/5] hw/arm: Add MMC device for NPCM7XX boards,
Hao Wu <=
- [PATCH v2 1/5] hw/sd: add nuvoton MMC, Hao Wu, 2021/10/07
- [PATCH v2 3/5] hw/arm: Attach MMC to quanta-gbs-bmc, Hao Wu, 2021/10/07
- [PATCH v2 2/5] hw/arm: Add Nuvoton SD module to board, Hao Wu, 2021/10/07
- [PATCH v2 4/5] tests/qtest/libqos: add SDHCI commands, Hao Wu, 2021/10/07
- [PATCH v2 5/5] tests/qtest: add qtests for npcm7xx sdhci, Hao Wu, 2021/10/07