The SD CMD7 deselect cmd have no response according to SD
physical layer simplified spec.
Cc: Hao Wu <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
/** @file\r
This file provides some helper functions which are specific for SD card device.\r
\r
/** @file\r
This file provides some helper functions which are specific for SD card device.\r
\r
- Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
SdMmcCmdBlk.CommandIndex = SD_SELECT_DESELECT_CARD;\r
SdMmcCmdBlk.CommandType = SdMmcCommandTypeAc;\r
\r
SdMmcCmdBlk.CommandIndex = SD_SELECT_DESELECT_CARD;\r
SdMmcCmdBlk.CommandType = SdMmcCommandTypeAc;\r
- SdMmcCmdBlk.ResponseType = SdMmcResponseTypeR1b;\r
+ if (Rca != 0) {\r
+ SdMmcCmdBlk.ResponseType = SdMmcResponseTypeR1b;\r
+ }\r
SdMmcCmdBlk.CommandArgument = (UINT32)Rca << 16;\r
\r
Status = SdMmcPassThruPassThru (PassThru, Slot, &Packet, NULL);\r
SdMmcCmdBlk.CommandArgument = (UINT32)Rca << 16;\r
\r
Status = SdMmcPassThruPassThru (PassThru, Slot, &Packet, NULL);\r
/** @file\r
The helper functions for BlockIo and BlockIo2 protocol.\r
\r
/** @file\r
The helper functions for BlockIo and BlockIo2 protocol.\r
\r
- Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
SdMmcCmdBlk.CommandIndex = SD_SELECT_DESELECT_CARD;\r
SdMmcCmdBlk.CommandType = SdMmcCommandTypeAc;\r
\r
SdMmcCmdBlk.CommandIndex = SD_SELECT_DESELECT_CARD;\r
SdMmcCmdBlk.CommandType = SdMmcCommandTypeAc;\r
- SdMmcCmdBlk.ResponseType = SdMmcResponseTypeR1b;\r
+ if (Rca != 0) {\r
+ SdMmcCmdBlk.ResponseType = SdMmcResponseTypeR1b;\r
+ }\r
SdMmcCmdBlk.CommandArgument = (UINT32)Rca << 16;\r
\r
Status = PassThru->PassThru (PassThru, Device->Slot, &Packet, NULL);\r
SdMmcCmdBlk.CommandArgument = (UINT32)Rca << 16;\r
\r
Status = PassThru->PassThru (PassThru, Device->Slot, &Packet, NULL);\r