sdps: Dont switch to 1.8V

Silicon 1.0 does not support switching to 1.8V and UHS mode.
Comment this code with a "broken" quirk.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Signed-off-by: Harini Katakam <harinik@xilinx.com>
Reviewed-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
This commit is contained in:
Harini Katakam 2015-10-01 01:18:47 +05:30 committed by Nava kishore Manne
parent 37fa380b82
commit b9a528a0ec

View file

@ -99,6 +99,9 @@
#define EXT_CSD_DEVICE_TYPE_SDR_1V8_HS200 0x10U
#define EXT_CSD_DEVICE_TYPE_SDR_1V2_HS200 0x20U
/* Note: Remove this once fixed */
#define UHS_BROKEN
/**************************** Type Definitions *******************************/
/***************** Macros (Inline Functions) Definitions *********************/
@ -375,6 +378,8 @@ s32 XSdPs_SdCardInitialize(XSdPs *InstancePtr)
InstancePtr->HCS = 1U;
}
/* There is no support to switch to 1.8V and use UHS mode on 1.0 silicon */
#ifndef UHS_BROKEN
if ((RespOCR & XSDPS_OCR_S18) != 0U) {
InstancePtr->Switch1v8 = 1U;
Status = XSdPs_Switch_Voltage(InstancePtr);
@ -384,6 +389,7 @@ s32 XSdPs_SdCardInitialize(XSdPs *InstancePtr)
}
}
#endif
/* CMD2 for Card ID */
Status = XSdPs_CmdTransfer(InstancePtr, CMD2, 0U, 0U);