XilinxProcessorIPLib/drivers/vphy/src/xvphy_gtpe2.c
u32 XVphy_Gtpe2TxChReconfig(XVphy *InstancePtr, u8 QuadId,
		XVphy_ChannelId ChId)
{
	u16 DrpVal;
    u32 Status = XST_SUCCESS;

	if (XVphy_IsHDMI(InstancePtr, XVPHY_DIR_TX)) {
        Status |= XVphy_DrpRd(InstancePtr, QuadId, ChId,
                XVPHY_DRP_TXDATAWIDTH, &DrpVal);
        DrpVal &= ~(0x07);

		if (InstancePtr->Config.TransceiverWidth == 2) {
			/* Set TX Data width of the TX GT to 20 bits */
			DrpVal |= 3;
		}
		else {
			/* Set TX Data width of the TX GT to 40 bits */
			DrpVal |= 5;
		}
		Status |= XVphy_DrpWr(InstancePtr, QuadId, ChId,
                    XVPHY_DRP_TXDATAWIDTH, DrpVal);
	}
    Status |= XVphy_Gtpe2TxPllRefClkDiv1Reconfig(InstancePtr, QuadId, ChId);

	return Status;
}
/*****************************************************************************/
/**
* This function will configure the channel's TX settings.
*
* @param	InstancePtr is a pointer to the XVphy core instance.
* @param	QuadId is the GT quad ID to operate on.
* @param	ChId is the channel ID to operate on.
*
* @return
*		- XST_SUCCESS if the configuration was successful.
*		- XST_FAILURE otherwise.
*
* @note		None.
*
******************************************************************************/
This function will configure the channel's TX settings.
This function will configure the channel ' s TX settings .
u32 XVphy_Gtpe2TxChReconfig(XVphy *InstancePtr, u8 QuadId,
		XVphy_ChannelId ChId)
{
	u16 DrpVal;
    u32 Status = XST_SUCCESS;
	if (XVphy_IsHDMI(InstancePtr, XVPHY_DIR_TX)) {
        Status |= XVphy_DrpRd(InstancePtr, QuadId, ChId,
                XVPHY_DRP_TXDATAWIDTH, &DrpVal);
        DrpVal &= ~(0x07);
		if (InstancePtr->Config.TransceiverWidth == 2) {
			DrpVal |= 3;
		}
		else {
			DrpVal |= 5;
		}
		Status |= XVphy_DrpWr(InstancePtr, QuadId, ChId,
                    XVPHY_DRP_TXDATAWIDTH, DrpVal);
	}
    Status |= XVphy_Gtpe2TxPllRefClkDiv1Reconfig(InstancePtr, QuadId, ChId);
	return Status;
}
u32 XVphy_Gtpe2TxChReconfig ( XVphy * InstancePtr , u8 QuadId , XVphy_ChannelId ChId ) { u16 DrpVal ; u32 Status = XST_SUCCESS ; if ( XVphy_IsHDMI ( InstancePtr , XVPHY_DIR_TX ) ) { Status |= XVphy_DrpRd ( InstancePtr , QuadId , ChId , XVPHY_DRP_TXDATAWIDTH , & DrpVal ) ; DrpVal &= ~ ( 0x07 ) ; if ( InstancePtr -> Config . TransceiverWidth == 2 ) { DrpVal |= 3 ; } else { DrpVal |= 5 ; } Status |= XVphy_DrpWr ( InstancePtr , QuadId , ChId , XVPHY_DRP_TXDATAWIDTH , DrpVal ) ; } Status |= XVphy_Gtpe2TxPllRefClkDiv1Reconfig ( InstancePtr , QuadId , ChId ) ; return Status ; }
This function will configure the channel's TX settings.
This function will configure the channel ' s TX settings .
/* Set TX Data width of the TX GT to 20 bits */ /* Set TX Data width of the TX GT to 40 bits */