From 332ba9d22513d96724782cefed9451b2145cab6d Mon Sep 17 00:00:00 2001 From: Andrei-Liviu Simion Date: Mon, 9 Feb 2015 15:42:42 -0700 Subject: [PATCH] dp: tx: Training should fail if clock recovery fails on max voltage. As required by DisplayPort compliance, the clock recovery sequence should fail if all lanes haven't completed clock recovery on the first attempt using the maximum voltage swing supported. Signed-off-by: Andrei-Liviu Simion --- XilinxProcessorIPLib/drivers/dp/src/xdp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/XilinxProcessorIPLib/drivers/dp/src/xdp.c b/XilinxProcessorIPLib/drivers/dp/src/xdp.c index 397da57c..5b79208e 100644 --- a/XilinxProcessorIPLib/drivers/dp/src/xdp.c +++ b/XilinxProcessorIPLib/drivers/dp/src/xdp.c @@ -2092,6 +2092,11 @@ static XDp_TxTrainingState XDp_TxTrainingStateClockRecovery(XDp *InstancePtr) break; } + /* Only try maximum voltage swing once. */ + if (LinkConfig->VsLevel == XDP_TX_MAXIMUM_VS_LEVEL) { + break; + } + /* Adjust the drive settings as requested by the RX device. */ Status = XDp_TxAdjVswingPreemp(InstancePtr); if (Status != XST_SUCCESS) {