XilinxProcessorIPLib/drivers/vphy/src/xvphy_gtye4.c
static u16 XVphy_DrpEncodeClk25(u32 RefClkFreqHz)
{
	u16 DrpEncode;
	u32 RefClkFreqMHz = RefClkFreqHz / 1000000;

	DrpEncode = ((RefClkFreqMHz / 25) +
			(((RefClkFreqMHz % 25) > 0) ? 1 : 0)) - 1;

	return (DrpEncode & 0x1F);
}
/*****************************************************************************/
/**
* This function will translate the configured CLK25 to DRP encoding.
*
* @param	AttrEncode is the attribute to encode.
*
* @return	The DRP encoding for the CLK25 value.
*
* @note		None.
*
******************************************************************************/
This function will translate the configured CLK25 to DRP encoding.
This function will translate the configured CLK25 to DRP encoding .
static u16 XVphy_DrpEncodeClk25(u32 RefClkFreqHz)
{
	u16 DrpEncode;
	u32 RefClkFreqMHz = RefClkFreqHz / 1000000;
	DrpEncode = ((RefClkFreqMHz / 25) +
			(((RefClkFreqMHz % 25) > 0) ? 1 : 0)) - 1;
	return (DrpEncode & 0x1F);
}
static u16 XVphy_DrpEncodeClk25 ( u32 RefClkFreqHz ) { u16 DrpEncode ; u32 RefClkFreqMHz = RefClkFreqHz / 1000000 ; DrpEncode = ( ( RefClkFreqMHz / 25 ) + ( ( ( RefClkFreqMHz % 25 ) > 0 ) ? 1 : 0 ) ) - 1 ; return ( DrpEncode & 0x1F ) ; }
This function will translate the configured CLK25 to DRP encoding.
This function will translate the configured CLK25 to DRP encoding .