/** @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
\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
/** @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
\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