]> git.proxmox.com Git - qemu.git/commitdiff
do not pretend to support low voltage operation
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 7 Mar 2009 22:10:40 +0000 (22:10 +0000)
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 7 Mar 2009 22:10:40 +0000 (22:10 +0000)
Eliminate "mmc0: SD card claims to support the incompletely defined 'low voltage
range'. This will be ignored." warning. Qemu says the card is a SD card, and SD
spec doesn't define low-voltage cards, so do now pretend to be one.

Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6772 c046a42c-6fe2-441c-8c8c-71466251a162

hw/sd.c

diff --git a/hw/sd.c b/hw/sd.c
index 0c770bc0a51f201c29ec9023c0338c3e9276b16a..fa1c02cf0e13ec098aa6ed5fe71db0fd68d2f9b0 100644 (file)
--- a/hw/sd.c
+++ b/hw/sd.c
@@ -195,7 +195,7 @@ static uint16_t sd_crc16(void *message, size_t width)
 static void sd_set_ocr(SDState *sd)
 {
     /* All voltages OK, card power-up OK, Standard Capacity SD Memory Card */
-    sd->ocr = 0x80ffff80;
+    sd->ocr = 0x80ffff00;
 }
 
 static void sd_set_scr(SDState *sd)