XilinxProcessorIPLib/drivers/v_hdmiphy1/src/xhdmiphy1_hdmi.c
void XHdmiphy1_ClkDetFreqReset(XHdmiphy1 *InstancePtr, u8 QuadId,
		XHdmiphy1_DirectionType Dir)
{
	u32 RegVal;

	/* Suppress Warning Messages */
	QuadId = QuadId;

	/* Read clkdet ctrl register. */
	RegVal = XHdmiphy1_ReadReg(InstancePtr->Config.BaseAddr,
			XHDMIPHY1_CLKDET_CTRL_REG);

	if (Dir == XHDMIPHY1_DIR_TX) {
		RegVal |= XHDMIPHY1_CLKDET_CTRL_TX_FREQ_RST_MASK;
	}
	else {
		RegVal |= XHDMIPHY1_CLKDET_CTRL_RX_FREQ_RST_MASK;
	}

	/* Write new value to clkdet ctrl register. */
	XHdmiphy1_WriteReg(InstancePtr->Config.BaseAddr, XHDMIPHY1_CLKDET_CTRL_REG,
			RegVal);
}
/*****************************************************************************/
/**
* This function resets clock detector TX/RX frequency.
*
* @param	InstancePtr is a pointer to the XHdmiphy1 core instance.
* @param	QuadId is the GT quad ID to operate on.
* @param	Dir is an indicator for RX or TX.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function resets clock detector TX/RX frequency.
This function resets clock detector TX / RX frequency .
void XHdmiphy1_ClkDetFreqReset(XHdmiphy1 *InstancePtr, u8 QuadId,
		XHdmiphy1_DirectionType Dir)
{
	u32 RegVal;
	QuadId = QuadId;
	RegVal = XHdmiphy1_ReadReg(InstancePtr->Config.BaseAddr,
			XHDMIPHY1_CLKDET_CTRL_REG);
	if (Dir == XHDMIPHY1_DIR_TX) {
		RegVal |= XHDMIPHY1_CLKDET_CTRL_TX_FREQ_RST_MASK;
	}
	else {
		RegVal |= XHDMIPHY1_CLKDET_CTRL_RX_FREQ_RST_MASK;
	}
	XHdmiphy1_WriteReg(InstancePtr->Config.BaseAddr, XHDMIPHY1_CLKDET_CTRL_REG,
			RegVal);
}
void XHdmiphy1_ClkDetFreqReset ( XHdmiphy1 * InstancePtr , u8 QuadId , XHdmiphy1_DirectionType Dir ) { u32 RegVal ; QuadId = QuadId ; RegVal = XHdmiphy1_ReadReg ( InstancePtr -> Config . BaseAddr , XHDMIPHY1_CLKDET_CTRL_REG ) ; if ( Dir == XHDMIPHY1_DIR_TX ) { RegVal |= XHDMIPHY1_CLKDET_CTRL_TX_FREQ_RST_MASK ; } else { RegVal |= XHDMIPHY1_CLKDET_CTRL_RX_FREQ_RST_MASK ; } XHdmiphy1_WriteReg ( InstancePtr -> Config . BaseAddr , XHDMIPHY1_CLKDET_CTRL_REG , RegVal ) ; }
This function resets clock detector TX/RX frequency.
This function resets clock detector TX / RX frequency .
/* Suppress Warning Messages */ /* Read clkdet ctrl register. */ /* Write new value to clkdet ctrl register. */