[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-arm] [PATCH v2 4/7] sdcard: Disable SEND_IF_COND (CMD8) for Spec v
From: |
Philippe Mathieu-Daudé |
Subject: |
[Qemu-arm] [PATCH v2 4/7] sdcard: Disable SEND_IF_COND (CMD8) for Spec v1 |
Date: |
Thu, 7 Jun 2018 15:06:38 -0300 |
CMD8 is "Reserved" in Spec v1.10.
Spec v2.00 introduces the SEND_IF_COND command:
6.4.1 Power Up
CMD8 is newly added in the Physical Layer Specification Version
2.00 to support multiple voltage ranges and used to check whether
the card supports supplied voltage. The version 2.00 or later host
shall issue CMD8 and verify voltage before card initialization.
The host that does not support CMD8 shall supply high voltage range.
Message-Id: address@hidden
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
hw/sd/sd.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/hw/sd/sd.c b/hw/sd/sd.c
index 1ae085de69..3ec0f71f24 100644
--- a/hw/sd/sd.c
+++ b/hw/sd/sd.c
@@ -1018,7 +1018,9 @@ static sd_rsp_type_t sd_normal_command(SDState *sd,
SDRequest req)
break;
case 8: /* CMD8: SEND_IF_COND */
- /* Physical Layer Specification Version 2.00 command */
+ if (sd->spec_version < SD_PHY_SPECv2_00_VERS) {
+ break;
+ }
if (sd->state != sd_idle_state) {
break;
}
--
2.17.1
- [Qemu-arm] [PATCH v2 0/7] sdcard: cleanup the SD_SPEC version, Philippe Mathieu-Daudé, 2018/06/07
- [Qemu-arm] [PATCH v2 1/7] sdcard: Update the Configuration Register (SCR) to Spec Version 1.10, Philippe Mathieu-Daudé, 2018/06/07
- [Qemu-arm] [PATCH v2 2/7] sdcard: Allow commands valid in SPI mode, Philippe Mathieu-Daudé, 2018/06/07
- [Qemu-arm] [PATCH v2 4/7] sdcard: Disable SEND_IF_COND (CMD8) for Spec v1,
Philippe Mathieu-Daudé <=
- [Qemu-arm] [PATCH v2 3/7] sdcard: Add a 'spec_version' property, default to Spec v2.00, Philippe Mathieu-Daudé, 2018/06/07
- [Qemu-arm] [PATCH v2 5/7] sdcard: Reflect when the Spec v3 is supported in the Config Register (SCR), Philippe Mathieu-Daudé, 2018/06/07
- [Qemu-arm] [PATCH v2 6/7] sdcard: Disable CMD19/CMD23 for Spec v2, Philippe Mathieu-Daudé, 2018/06/07
- [Qemu-arm] [RFC PATCH v2 7/7] hw/sd/ssi-sd: Force cards connected in SPI mode to use Spec v1.10, Philippe Mathieu-Daudé, 2018/06/07
- Re: [Qemu-arm] [PATCH v2 0/7] sdcard: cleanup the SD_SPEC version, Philippe Mathieu-Daudé, 2018/06/07
- Re: [Qemu-arm] [PATCH v2 0/7] sdcard: cleanup the SD_SPEC version, Peter Maydell, 2018/06/08