dp: rx: Added a function to disable 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:58:36 -08:00 committed by Nava kishore Manne
parent f5c0d7b518
commit 3465d04239
2 changed files with 9 additions and 0 deletions

View file

@ -124,6 +124,14 @@ void XDprx_DtgEn(XDprx *InstancePtr)
XDprx_WriteReg(InstancePtr->Config.BaseAddr, XDPRX_DTG_ENABLE, 0x01);
}
void XDprx_DtgDis(XDprx *InstancePtr)
{
XDprx_WriteReg(InstancePtr->Config.BaseAddr, XDPRX_DTG_ENABLE, 0x00);
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

View file

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