summaryrefslogtreecommitdiff
path: root/hw/sd.h
diff options
context:
space:
mode:
authorIgor Mitsyanko <i.mitsyanko@gmail.com>2012-10-30 07:45:12 +0000
committerPeter Maydell <peter.maydell@linaro.org>2012-10-30 07:45:12 +0000
commitf2d189d38436a8ccdedd94de01673b04aa008e11 (patch)
tree7fe289b1116341c3193f508b6c345e1e03b23ecf /hw/sd.h
parentfc5b64d0829297c7a525ddf6c0bb08ef0a9af5b6 (diff)
downloadqemu-f2d189d38436a8ccdedd94de01673b04aa008e11.tar.gz
qemu-f2d189d38436a8ccdedd94de01673b04aa008e11.tar.bz2
qemu-f2d189d38436a8ccdedd94de01673b04aa008e11.zip
hw/sd.c: Fix erase for high capacity cards
Standard capacity cards SDSC use byte unit address while SDHC and SDXC cards use block unit address (512 bytes) when setting ERASE_START and ERASE_END with CMD32 and CMD33, we have to account for this. Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/sd.h')
-rw-r--r--hw/sd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/sd.h b/hw/sd.h
index 4eb9679acd..d9b97e4466 100644
--- a/hw/sd.h
+++ b/hw/sd.h
@@ -50,6 +50,7 @@
#define READY_FOR_DATA (1 << 8)
#define APP_CMD (1 << 5)
#define AKE_SEQ_ERROR (1 << 3)
+#define OCR_CCS_BITN 30
typedef enum {
sd_none = -1,