dp: rx: Added a function to generate an HPD.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
This commit is contained in:
Andrei-Liviu Simion 2015-01-16 15:29:21 -08:00 committed by Nava kishore Manne
parent f588c504e9
commit 8593e4f84a
2 changed files with 7 additions and 0 deletions

View file

@ -188,6 +188,7 @@ void XDprx_WaitUs(XDprx *InstancePtr, u32 MicroSeconds);
/* xdprx_intr.c: Interrupt handling functions. */
void XDprx_InterruptHandler(XDprx *InstancePtr);
void XDprx_GenerateHpdInterrupt(XDprx *InstancePtr, u16 DurationUs);
void XDprx_SetIntrVmChangeHandler(XDprx *InstancePtr,
XDprx_IntrHandler CallbackFunc, void *CallbackRef);
void XDprx_SetIntrPowerStateHandler(XDprx *InstancePtr,

View file

@ -152,6 +152,12 @@ void XDprx_InterruptHandler(XDprx *InstancePtr)
}
}
void XDprx_GenerateHpdInterrupt(XDprx *InstancePtr, u16 DurationUs)
{
XDprx_WriteReg(InstancePtr->Config.BaseAddr, XDPRX_HPD_INTERRUPT,
(DurationUs << 16) | 0x1);
}
/******************************************************************************/
/**
* This function installs a callback function for when a video mode change