/* Switches the SD card voltage from 3v3 to 1v8.  */
s32 XSdPs_Switch_Voltage(XSdPs *InstancePtr)
/* Switches the SD card voltage from 3v3 to 1v8.  */
s32 XSdPs_Switch_Voltage(XSdPs *InstancePtr)
{
    s32 Status;
    Status = XSdPs_SetupVoltageSwitch(InstancePtr);
    if (Status != XST_SUCCESS) {
        Status = XST_FAILURE;
        goto RETURN_PATH;
    }
    Status = XSdPs_CardSetVoltage18(InstancePtr);
    if (Status != XST_SUCCESS) {
        Status = XST_FAILURE;
        goto RETURN_PATH;
    }
    Status = XSdPs_CheckBusHigh(InstancePtr);
    if (Status != XST_SUCCESS) {
        Status = XST_FAILURE;
    }
RETURN_PATH:
    return Status;
}