/* API to change clock freq to given value.  */
s32 XSdPs_Change_ClkFreq(XSdPs *InstancePtr, u32 SelFreq)
/* API to change clock freq to given value.  */
s32 XSdPs_Change_ClkFreq(XSdPs *InstancePtr, u32 SelFreq)
{
    s32 Status;
    Xil_AssertNonvoid(InstancePtr != NULL);
    Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
    if (InstancePtr->HC_Version == XSDPS_HC_SPEC_V3) {
        XSdPs_SetTapDelay(InstancePtr);
    }
    Status = XSdPs_SetClock(InstancePtr, SelFreq);
    if (Status != XST_SUCCESS) {
        Status = XST_FAILURE;
    }
    return Status;
}