XilinxProcessorIPLib/drivers/v_hdmiphy1/src/xhdmiphy1_gtye4.c
u32 XHdmiphy1_Gtye4CheckPllOpRange(XHdmiphy1 *InstancePtr, u8 QuadId,
        XHdmiphy1_ChannelId ChId, u64 PllClkOutFreqHz)
{
    u32 Status = XST_FAILURE;

    /* Suppress Warning Messages */
    InstancePtr = InstancePtr;
    QuadId = QuadId;

    if (((ChId == XHDMIPHY1_CHANNEL_ID_CMN0) &&
            (XHDMIPHY1_QPLL0_MIN <= PllClkOutFreqHz) &&
            (PllClkOutFreqHz <= XHDMIPHY1_QPLL0_MAX)) ||
        ((ChId == XHDMIPHY1_CHANNEL_ID_CMN1) &&
            (XHDMIPHY1_QPLL1_MIN <= PllClkOutFreqHz) &&
            (PllClkOutFreqHz <= XHDMIPHY1_QPLL1_MAX)) ||
        ((ChId >= XHDMIPHY1_CHANNEL_ID_CH1) &&
            (ChId <= XHDMIPHY1_CHANNEL_ID_CH4) &&
            (XHDMIPHY1_CPLL_MIN <= PllClkOutFreqHz) &&
            (PllClkOutFreqHz <= XHDMIPHY1_CPLL_MAX))) {
        Status = XST_SUCCESS;
    }

    return Status;
}
/*****************************************************************************/
/**
* This function will check if a given PLL output frequency is within the
* operating range of the PLL for the GT type.
*
* @param    InstancePtr is a pointer to the XHdmiphy1 core instance.
* @param    QuadId is the GT quad ID to operate on.
* @param    ChId is the channel ID to operate on.
* @param    PllClkOutFreqHz is the frequency to check.
*
* @return
*       - XST_SUCCESS if the frequency resides within the PLL's range.
*       - XST_FAILURE otherwise.
*
* @note     None.
*
******************************************************************************/
This function will check if a given PLL output frequency is within the
operating range of the PLL for the GT type.
This function will check if a given PLL output frequency is within the operating range of the PLL for the GT type .
u32 XHdmiphy1_Gtye4CheckPllOpRange(XHdmiphy1 *InstancePtr, u8 QuadId,
        XHdmiphy1_ChannelId ChId, u64 PllClkOutFreqHz)
{
    u32 Status = XST_FAILURE;
    InstancePtr = InstancePtr;
    QuadId = QuadId;
    if (((ChId == XHDMIPHY1_CHANNEL_ID_CMN0) &&
            (XHDMIPHY1_QPLL0_MIN <= PllClkOutFreqHz) &&
            (PllClkOutFreqHz <= XHDMIPHY1_QPLL0_MAX)) ||
        ((ChId == XHDMIPHY1_CHANNEL_ID_CMN1) &&
            (XHDMIPHY1_QPLL1_MIN <= PllClkOutFreqHz) &&
            (PllClkOutFreqHz <= XHDMIPHY1_QPLL1_MAX)) ||
        ((ChId >= XHDMIPHY1_CHANNEL_ID_CH1) &&
            (ChId <= XHDMIPHY1_CHANNEL_ID_CH4) &&
            (XHDMIPHY1_CPLL_MIN <= PllClkOutFreqHz) &&
            (PllClkOutFreqHz <= XHDMIPHY1_CPLL_MAX))) {
        Status = XST_SUCCESS;
    }
    return Status;
}
u32 XHdmiphy1_Gtye4CheckPllOpRange ( XHdmiphy1 * InstancePtr , u8 QuadId , XHdmiphy1_ChannelId ChId , u64 PllClkOutFreqHz ) { u32 Status = XST_FAILURE ; InstancePtr = InstancePtr ; QuadId = QuadId ; if ( ( ( ChId == XHDMIPHY1_CHANNEL_ID_CMN0 ) && ( XHDMIPHY1_QPLL0_MIN <= PllClkOutFreqHz ) && ( PllClkOutFreqHz <= XHDMIPHY1_QPLL0_MAX ) ) || ( ( ChId == XHDMIPHY1_CHANNEL_ID_CMN1 ) && ( XHDMIPHY1_QPLL1_MIN <= PllClkOutFreqHz ) && ( PllClkOutFreqHz <= XHDMIPHY1_QPLL1_MAX ) ) || ( ( ChId >= XHDMIPHY1_CHANNEL_ID_CH1 ) && ( ChId <= XHDMIPHY1_CHANNEL_ID_CH4 ) && ( XHDMIPHY1_CPLL_MIN <= PllClkOutFreqHz ) && ( PllClkOutFreqHz <= XHDMIPHY1_CPLL_MAX ) ) ) { Status = XST_SUCCESS ; } return Status ; }
This function will check if a given PLL output frequency is within the
operating range of the PLL for the GT type.
This function will check if a given PLL output frequency is within the operating range of the PLL for the GT type .
/* Suppress Warning Messages */