dp: rx: Added function to set the user pixel width.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
This commit is contained in:
parent
3b2d898c44
commit
0e0e170875
2 changed files with 10 additions and 0 deletions
|
@ -231,6 +231,15 @@ void XDprx_SetLaneCount(XDprx *InstancePtr, u8 LaneCount)
|
||||||
0x01);
|
0x01);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void XDprx_SetUserPixelWidth(XDprx *InstancePtr, u8 UserPixelWidth)
|
||||||
|
{
|
||||||
|
XDprx_WriteReg(InstancePtr->Config.BaseAddr, XDPRX_USER_PIXEL_WIDTH,
|
||||||
|
UserPixelWidth);
|
||||||
|
|
||||||
|
XDprx_WriteReg(InstancePtr->Config.BaseAddr, XDPRX_SOFT_RESET, 0x01);
|
||||||
|
XDprx_WriteReg(InstancePtr->Config.BaseAddr, XDPRX_SOFT_RESET, 0x00);
|
||||||
|
}
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/**
|
/**
|
||||||
* 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
|
||||||
|
|
|
@ -95,6 +95,7 @@ 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_SetLaneCount(XDprx *InstancePtr, u8 LaneCount);
|
||||||
|
void XDprx_SetUserPixelWidth(XDprx *InstancePtr, u8 UserPixelWidth);
|
||||||
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