/* This function is used to set voltage to 1.8V.  */
s32 XSdPs_SetVoltage18(XSdPs *InstancePtr)
/* This function is used to set voltage to 1.8V.  */
s32 XSdPs_SetVoltage18(XSdPs *InstancePtr)
{
    s32 Status;
    u16 CtrlReg;
    CtrlReg = XSdPs_ReadReg16(InstancePtr->Config.BaseAddress,
            XSDPS_HOST_CTRL2_OFFSET);
    CtrlReg |= XSDPS_HC2_1V8_EN_MASK;
    XSdPs_WriteReg16(InstancePtr->Config.BaseAddress, XSDPS_HOST_CTRL2_OFFSET,
            CtrlReg);
    (void)usleep(5000U);
    Status = XSdPs_CheckVoltage18(InstancePtr);
    if (Status != XST_SUCCESS) {
        Status = XST_FAILURE;
    }
    return Status;
}