dp: rx: Added a function to enable the display timing generator.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
This commit is contained in:
Andrei-Liviu Simion 2015-01-15 16:56:23 -08:00 committed by Nava kishore Manne
parent 5d03fa54da
commit f5c0d7b518
2 changed files with 8 additions and 0 deletions

View file

@ -117,6 +117,13 @@ void XDprx_CfgInitialize(XDprx *InstancePtr, XDp_Config *ConfigPtr,
InstancePtr->IsReady = XIL_COMPONENT_IS_READY;
}
void XDprx_DtgEn(XDprx *InstancePtr)
{
XDprx_WriteReg(InstancePtr->Config.BaseAddr, XDPRX_SOFT_RESET, 0x01);
XDprx_WriteReg(InstancePtr->Config.BaseAddr, XDPRX_SOFT_RESET, 0x00);
XDprx_WriteReg(InstancePtr->Config.BaseAddr, XDPRX_DTG_ENABLE, 0x01);
}
/******************************************************************************/
/**
* This function installs a custom delay/sleep function to be used by the XDprx

View file

@ -90,6 +90,7 @@ void XDprx_CfgInitialize(XDprx *InstancePtr, XDp_Config *ConfigPtr,
u32 EffectiveAddr);
/* xdprx.c: General usage functions. */
void XDprx_DtgEn(XDprx *InstancePtr);
void XDprx_SetUserTimerHandler(XDprx *InstancePtr,
XDp_TimerHandler CallbackFunc, void *CallbackRef);
void XDprx_WaitUs(XDprx *InstancePtr, u32 MicroSeconds);