dp: rx: Added function to override the DPCD lane count value.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
This commit is contained in:
parent
26bdc1bd63
commit
3b2d898c44
2 changed files with 15 additions and 0 deletions
|
@ -217,6 +217,20 @@ void XDprx_SetLinkRate(XDprx *InstancePtr, u8 LinkRate)
|
||||||
0x01);
|
0x01);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void XDprx_SetLaneCount(XDprx *InstancePtr, u8 LaneCount)
|
||||||
|
{
|
||||||
|
InstancePtr->LinkConfig.LaneCount = LaneCount;
|
||||||
|
|
||||||
|
XDprx_WriteReg(InstancePtr->Config.BaseAddr, XDPRX_OVER_CTRL_DPCD,
|
||||||
|
0x01);
|
||||||
|
XDprx_WriteReg(InstancePtr->Config.BaseAddr, XDPRX_OVER_LANE_COUNT_SET,
|
||||||
|
LaneCount);
|
||||||
|
XDprx_WriteReg(InstancePtr->Config.BaseAddr, XDPRX_OVER_CTRL_DPCD,
|
||||||
|
0x00);
|
||||||
|
XDprx_WriteReg(InstancePtr->Config.BaseAddr, XDPRX_LOCAL_EDID_VIDEO,
|
||||||
|
0x01);
|
||||||
|
}
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/**
|
/**
|
||||||
* This function installs a custom delay/sleep function to be used by the XDprx
|
* This function installs a custom delay/sleep function to be used by the XDprx
|
||||||
|
|
|
@ -94,6 +94,7 @@ u32 XDprx_InitializeRx(XDprx *InstancePtr);
|
||||||
void XDprx_DtgEn(XDprx *InstancePtr);
|
void XDprx_DtgEn(XDprx *InstancePtr);
|
||||||
void XDprx_DtgDis(XDprx *InstancePtr);
|
void XDprx_DtgDis(XDprx *InstancePtr);
|
||||||
void XDprx_SetLinkRate(XDprx *InstancePtr, u8 LinkRate);
|
void XDprx_SetLinkRate(XDprx *InstancePtr, u8 LinkRate);
|
||||||
|
void XDprx_SetLaneCount(XDprx *InstancePtr, u8 LaneCount);
|
||||||
void XDprx_SetUserTimerHandler(XDprx *InstancePtr,
|
void XDprx_SetUserTimerHandler(XDprx *InstancePtr,
|
||||||
XDp_TimerHandler CallbackFunc, void *CallbackRef);
|
XDp_TimerHandler CallbackFunc, void *CallbackRef);
|
||||||
void XDprx_WaitUs(XDprx *InstancePtr, u32 MicroSeconds);
|
void XDprx_WaitUs(XDprx *InstancePtr, u32 MicroSeconds);
|
||||||
|
|
Loading…
Add table
Reference in a new issue