/* This function checks if the voltage is set to 1.8V or not.  */
s32 XSdPs_CheckVoltage18(XSdPs *InstancePtr)
/* This function checks if the voltage is set to 1.8V or not.  */
s32 XSdPs_CheckVoltage18(XSdPs *InstancePtr)
{
    u32 Status;
    if ((XSdPs_ReadReg16(InstancePtr->Config.BaseAddress,
            XSDPS_HOST_CTRL2_OFFSET) & XSDPS_HC2_1V8_EN_MASK) == 0U) {
        Status = XST_FAILURE;
        goto RETURN_PATH;
    }
    Status = XST_SUCCESS;
RETURN_PATH:
    return Status;
}