XilinxProcessorIPLib/drivers/vphy/src/xvphy.c
u32 XVphy_CfgQuadRefClkFreq(XVphy *InstancePtr, u8 QuadId,
		XVphy_PllRefClkSelType RefClkType, u32 FreqHz)
{
	u8 RefClkIndex = RefClkType - XVPHY_PLL_REFCLKSEL_TYPE_GTREFCLK0;

	if (RefClkType > XVPHY_PLL_REFCLKSEL_TYPE_GTGREFCLK) {
		return XST_FAILURE;
	}
	InstancePtr->Quads[QuadId].RefClkHz[RefClkIndex] = FreqHz;

	return XST_SUCCESS;
}
/*****************************************************************************/
/**
* Configure the quad's reference clock frequency. This is a software only
* configuration and this value is used in the PLL calculator.
*
* @param	InstancePtr is a pointer to the XVphy core instance.
* @param	QuadId is the GT quad ID to operate on.
* @param	RefClkType is the reference clock type to operate on.
* @param	FreqHz is the reference clock frequency to configure software.
*
* @return
*		- XST_SUCCESS if the reference clock type is valid.
*		- XST_FAILURE otherwise.
*
* @note		None.
*
******************************************************************************/
Configure the quad's reference clock frequency. This is a software only
configuration and this value is used in the PLL calculator.
Configure the quad ' s reference clock frequency . This is a software only configuration and this value is used in the PLL calculator .
u32 XVphy_CfgQuadRefClkFreq(XVphy *InstancePtr, u8 QuadId,
		XVphy_PllRefClkSelType RefClkType, u32 FreqHz)
{
	u8 RefClkIndex = RefClkType - XVPHY_PLL_REFCLKSEL_TYPE_GTREFCLK0;
	if (RefClkType > XVPHY_PLL_REFCLKSEL_TYPE_GTGREFCLK) {
		return XST_FAILURE;
	}
	InstancePtr->Quads[QuadId].RefClkHz[RefClkIndex] = FreqHz;
	return XST_SUCCESS;
}
u32 XVphy_CfgQuadRefClkFreq ( XVphy * InstancePtr , u8 QuadId , XVphy_PllRefClkSelType RefClkType , u32 FreqHz ) { u8 RefClkIndex = RefClkType - XVPHY_PLL_REFCLKSEL_TYPE_GTREFCLK0 ; if ( RefClkType > XVPHY_PLL_REFCLKSEL_TYPE_GTGREFCLK ) { return XST_FAILURE ; } InstancePtr -> Quads [ QuadId ] . RefClkHz [ RefClkIndex ] = FreqHz ; return XST_SUCCESS ; }
Configure the quad's reference clock frequency.
Configure the quad ' s reference clock frequency .