sdps:Command for relative card address is send during reinitialization.

This Patch Sends command for relative card address when re-initialization is done.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
This commit is contained in:
P L Sai Krishna 2014-09-29 11:06:59 +05:30 committed by Suneel Garapati
parent e29e5689e0
commit c8ab773a4d
2 changed files with 6 additions and 3 deletions

View file

@ -46,6 +46,8 @@
* 2.0 hk 12/13/13 Added check for arm to use sleep.h and its API's
* 2.1 hk 04/18/14 Add sleep for microblaze designs. CR# 781117.
* 2.2 hk 07/28/14 Make changes to enable use of data cache.
* 2.3 sk 09/23/14 Send command for relative card address
* when re-initialization is done.CR# 819614.
*
* </pre>
*
@ -370,8 +372,7 @@ int XSdPs_SdCardInitialize(XSdPs *InstancePtr)
InstancePtr->CardID[3] =
XSdPs_ReadReg16(InstancePtr->Config.BaseAddress,
XSDPS_RESP3_OFFSET);
while (InstancePtr->RelCardAddr == 0) {
do {
Status = XSdPs_CmdTransfer(InstancePtr, CMD3, 0, 0);
if (Status != XST_SUCCESS) {
Status = XST_FAILURE;
@ -385,7 +386,7 @@ int XSdPs_SdCardInitialize(XSdPs *InstancePtr)
InstancePtr->RelCardAddr =
XSdPs_ReadReg(InstancePtr->Config.BaseAddress,
XSDPS_RESP0_OFFSET) & 0xFFFF0000;
}
} while (InstancePtr->RelCardAddr == 0);
Status = XSdPs_CmdTransfer(InstancePtr, CMD9, (InstancePtr->RelCardAddr), 0);
if (Status != XST_SUCCESS) {

View file

@ -104,6 +104,8 @@
* 2.1 hk 04/18/14 Increase sleep for eMMC switch command.
* Add sleep for microblaze designs. CR# 781117.
* 2.2 hk 07/28/14 Make changes to enable use of data cache.
* 2.3 sk 09/23/14 Send command for relative card address
* when re-initialization is done.CR# 819614.
*
* </pre>
*