This series adds a qtest for the SD Host Controller Interface. To keep it simple, for each device using a SDHCI IP we ask the the capabilities it supports, and verify with the public datashits availables.
So far the QEMU devices only implement the v2 and v3 Specs. This exposes few inconsistencies, we fix them. Regards, Phil. Based-on: 20171213232025.24503-27-f4...@amsat.org (SDCard housekeeping) Philippe Mathieu-Daudé (8): sdhci: add a "sd-spec-version" property sdhci: some ARM boards do support SD_HOST_SPECv3_VERS sdhci: add qtest to check the SD Spec version sdhci: fix CAPAB/MAXCURR registers, both are 64bit and read-only sdhci: add check_capab_readonly() qtest sdhci: add a check_capab_baseclock() qtest sdhci: add a check_capab_sdma() qtest sdhci: add a check_capab_v3() qtest include/hw/sd/sdhci.h | 14 +++- hw/sd/sdhci-internal.h | 4 +- hw/arm/bcm2835_peripherals.c | 7 ++ hw/arm/fsl-imx6.c | 6 ++ hw/arm/xilinx_zynq.c | 2 + hw/sd/sdhci.c | 30 +++++++-- tests/sdhci-test.c | 152 +++++++++++++++++++++++++++++++++++++++++++ tests/Makefile.include | 1 + 8 files changed, 206 insertions(+), 10 deletions(-) create mode 100644 tests/sdhci-test.c -- 2.15.1