/* This function is used configure the Power Level.  */
void XSdPs_ConfigPower(XSdPs *InstancePtr)
/* This function is used configure the Power Level.  */
void XSdPs_ConfigPower(XSdPs *InstancePtr)
{
    u8 PowerLevel;
    if ((InstancePtr->Host_Caps & XSDPS_CAP_VOLT_3V3_MASK) != 0U) {
        PowerLevel = XSDPS_PC_BUS_VSEL_3V3_MASK;
    } else if ((InstancePtr->Host_Caps & XSDPS_CAP_VOLT_3V0_MASK) != 0U) {
        PowerLevel = XSDPS_PC_BUS_VSEL_3V0_MASK;
    } else if ((InstancePtr->Host_Caps & XSDPS_CAP_VOLT_1V8_MASK) != 0U) {
        PowerLevel = XSDPS_PC_BUS_VSEL_1V8_MASK;
    } else {
        PowerLevel = 0U;
    }
    XSdPs_WriteReg8(InstancePtr->Config.BaseAddress,
            XSDPS_POWER_CTRL_OFFSET,
            PowerLevel | XSDPS_PC_BUS_PWR_MASK);
}