dptx: Handle new IP configuration parameter.

GT data width.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
This commit is contained in:
Andrei-Liviu Simion 2014-08-17 18:07:16 -07:00 committed by Jagannadha Sutradharudu Teki
parent adc89fae61
commit fa10a1a066

View file

@ -815,7 +815,13 @@ static void XDptx_CalculateTs(XDptx *InstancePtr, u8 Stream, u8 BitsPerPixel)
/* Round up. */
MsaConfig->TransferUnitSize++;
}
if ((MsaConfig->TransferUnitSize % 2) != 0) {
if ((InstancePtr->Config.PayloadDataWidth == 4) &&
(MsaConfig->TransferUnitSize % 4) != 0) {
/* Set to a multiple of 4 boundary. */
MsaConfig->TransferUnitSize += (4 -
(MsaConfig->TransferUnitSize % 4));
}
else if ((MsaConfig->TransferUnitSize % 2) != 0) {
/* Set to an even boundary. */
MsaConfig->TransferUnitSize++;
}