Commit d1b32218 authored by Philippe Mathieu-Daudé's avatar Philippe Mathieu-Daudé Committed by Peter Maydell
Browse files

sdcard: Disable SEND_IF_COND (CMD8) for Spec v1

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.

Signed-off-by: default avatarPhilippe Mathieu-Daudé <>
Reviewed-by: default avatarPeter Maydell <>
Signed-off-by: default avatarPeter Maydell <>
parent 2f0939c2
......@@ -1018,7 +1018,9 @@ static sd_rsp_type_t sd_normal_command(SDState *sd, SDRequest req)
case 8: /* CMD8: SEND_IF_COND */
/* Physical Layer Specification Version 2.00 command */
if (sd->spec_version < SD_PHY_SPECv2_00_VERS) {
if (sd->state != sd_idle_state) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment