summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2018-06-08 14:15:33 +0200
committerPeter Maydell2018-06-08 14:15:33 +0200
commit2f0939c2342f0dbe5d3abb264cf5e6cd6636375a (patch)
tree5d1af0953ccf6cfcf6138327ba8d310a1bd97a4e /include
parentsdcard: Allow commands valid in SPI mode (diff)
downloadqemu-2f0939c2342f0dbe5d3abb264cf5e6cd6636375a.tar.gz
qemu-2f0939c2342f0dbe5d3abb264cf5e6cd6636375a.tar.xz
qemu-2f0939c2342f0dbe5d3abb264cf5e6cd6636375a.zip
sdcard: Add a 'spec_version' property, default to Spec v2.00
As of this commit, the Spec v1 is not working, and all controllers expect the cards to be conformant to Spec v2. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-id: 20180607180641.874-4-f4bug@amsat.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/hw/sd/sd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hw/sd/sd.h b/include/hw/sd/sd.h
index 9bdb3c9285..7c6ad3c8f1 100644
--- a/include/hw/sd/sd.h
+++ b/include/hw/sd/sd.h
@@ -54,6 +54,11 @@
#define APP_CMD (1 << 5)
#define AKE_SEQ_ERROR (1 << 3)
+enum SDPhySpecificationVersion {
+ SD_PHY_SPECv1_10_VERS = 1,
+ SD_PHY_SPECv2_00_VERS = 2,
+};
+
typedef enum {
SD_VOLTAGE_0_4V = 400, /* currently not supported */
SD_VOLTAGE_1_8V = 1800,