Commit graph

646 commits

Author SHA1 Message Date
Andrei-Liviu Simion
7b382d036f dp: TX/RX core type should operate on the XDp structure pointer.
Rather than on the configuration structure pointer.

This makes it cleaner and easier to use as this function is an API function.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:35 +05:30
Andrei-Liviu Simion
e394c31035 dp: Added initial modification history comment.
Added note to the initial release that the TX code was taken from the dptx
driver.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:34 +05:30
Andrei-Liviu Simion
64a4f5378a dp: XDptx->XDp and XDprx->XDp.
XDp is used as an argument for all API functions. If a user application uses a
deprecated structure, it is automatically converted to the top-level XDp
structure which contains either a XDp_Tx or XDp_Rx structure which corresponds
to the previous XDptx and XDprx.
This is done for back-wards compatability with the dptx driver to minimize user
effort in migrating to the new dp driver.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:33 +05:30
Andrei-Liviu Simion
a13413ec39 dp: tx: Removed redundant condition.
If link does not need to be re-enabled, then it is already disabled. Don't need
to disable the link again.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:32 +05:30
Andrei-Liviu Simion
05f71ab631 dp: rx: Waiting for PHY to be ready based on number of lanes.
If the DisplayPort core is configured for 1 or 2 maximum lanes, wait for PHY to
be ready only on those lanes rather than waiting on all 4 lanes.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:32 +05:30
Andrei-Liviu Simion
e81ba1fde6 dp: Clean-up.
Lines should not exceed 80 characters in length.
The pre-processor only replaces full names, so prefixes cannot be altered using
macros (#define XDPTX_ XDP_TX_).

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:31 +05:30
Andrei-Liviu Simion
2a662e6f48 dp: tx: Added PHY polarity inversion option.
Both for all lanes and for individual lane PHY polarity setting.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:30 +05:30
Andrei-Liviu Simion
fdc058a91a dp: tx: Register space has 3 hex digits.
Clean-up.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:29 +05:30
Andrei-Liviu Simion
c35fe9c55d dptx: Added additional video common related updates.
Added frame rate into DisplayPort calculations to follow updates for the
commone video driver.

Note, this is the deprecated TX-only driver for DisplayPort (the TX-only driver,
dptx, and the unified TX-RX driver, dp, are both released for 2015.1).

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:28 +05:30
Andrei-Liviu Simion
2fdf4bb434 video_common: Added Doxygen documentation.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:27 +05:30
Andrei-Liviu Simion
97b327b727 dp: Added Doxygen documentation.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:26 +05:30
Andrei-Liviu Simion
3ef865451a dptx: Updated Doxygen documentation.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:25 +05:30
Andrei-Liviu Simion
71fb0b12d9 dptx: Update to use common video driver.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:24 +05:30
Andrei-Liviu Simion
6001213d68 dptx: Streams now start at index 1 instead of 0.
To follow the IP documentation.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:23 +05:30
Andrei-Liviu Simion
f06d5e04dc dptx: XDPTX_EDID_SIZE->XDPTX_EDID_BLOCK_SIZE.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:22 +05:30
Andrei-Liviu Simion
1d05464884 dptx: Update to use common video driver.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:22 +05:30
Andrei-Liviu Simion
1a280fdfc7 dp: Unified naming of xdptx and xdprx to xdp.
As per Xilinx standalone coding guidelines.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:21 +05:30
Andrei-Liviu Simion
c1f33ddd8f video_common: edid: Added function headers for commenting.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:20 +05:30
Andrei-Liviu Simion
b1c3f35b17 video_common: edid: example: Formatted to coding guidelines.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:19 +05:30
Andrei-Liviu Simion
5f8da8a650 video_common: edid: Fixed some lines that were exceeding 80 chars in length.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:18 +05:30
Andrei-Liviu Simion
43297b0ef2 video_common: edid: example: Renamed some functions.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:17 +05:30
Andrei-Liviu Simion
a7ac9e37cf video_common: edid: Shortened *BDisp* naming.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:17 +05:30
Andrei-Liviu Simion
0c1dab6865 video_common: edid: XVidC_EdidGetBDispVidDigVis->XVidC_EdidGetDigitalSigIfaceStd.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:16 +05:30
Andrei-Liviu Simion
682507fb26 video_common: edid: XVidC_EdidSuppBDispVidAna*->XVidC_EdidSuppAnalogSig*.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:15 +05:30
Andrei-Liviu Simion
aeb103b4e4 video_common: edid: XVidC_Edid_SuppBDispVidAnaVidSetup->XVidC_EdidGetAnalogSigVidSetup.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:14 +05:30
Andrei-Liviu Simion
3bd0a938cc video_common: edid: XVidC_EdidGetBDispVidAnaSls->XVidC_EdidGetAnalogSigLvlStd.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:13 +05:30
Andrei-Liviu Simion
358de34799 video_common: edid: XVidC_EdidIsBDispVidVsiAnalog->XVidC_EdidIsAnalogSig.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:13 +05:30
Andrei-Liviu Simion
4d2da3ff6b video_common: edid: XVidC_EdidIsBDispVidVsiDigital->XVidC_EdidIsDigitalSig.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:12 +05:30
Andrei-Liviu Simion
62fb70a67d video_common: edid: XVidC_EdidIsVpiYearMab->XVidC_EdidIsYearMan.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:11 +05:30
Andrei-Liviu Simion
0ab91829d2 video_common: edid: XVidC_EdidIsVpiYearModel->XVidC_EdidIsYearModel.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:10 +05:30
Andrei-Liviu Simion
0009c983cd video_common: edid: XVidC_EdidGetVpiYear->XVidC_EdidGetModManYear.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:09 +05:30
Andrei-Liviu Simion
bad0f38ab4 video_common: edid: XVidC_EdidGetVpiWeekMan->XVidC_EdidGetManWeek.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:08 +05:30
Andrei-Liviu Simion
ec845b6dc6 video_common: edid: XVidC_EditGetVpiSn->XVidC_EdidGetIdSn.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:07 +05:30
Andrei-Liviu Simion
89b50eecf8 video_common: edid: XVidC_EdidGetVpiIdProdCode->XVidC_EdidGetIdProdCode.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:07 +05:30
Andrei-Liviu Simion
1ac0efe730 video_common: edid: XVidC_EdidGetVpiIdManName->XVidC_EdidGetManName.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:06 +05:30
Andrei-Liviu Simion
051ddc74e5 video_common: edid: Use color depth enumeration type.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:05 +05:30
Andrei-Liviu Simion
9beb00b9b9 video_common: edid: Added function headers for documentation.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:04 +05:30
Andrei-Liviu Simion
4d686c08e0 dp: Check for ARM first for usleep.
Zynq systems may have both MicroBlaze and ARM. If this is the case, assume that
the application is running on an ARM processor.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:03 +05:30
Andrei-Liviu Simion
aa72195688 dp: rx: Use definitions instead of hard-coded values.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:02 +05:30
Andrei-Liviu Simion
01658a8c12 dp: rx: Updated some of the modification history.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:01 +05:30
Andrei-Liviu Simion
085e8da6cd dp: rx: Added interrupt with timer example.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:01 +05:30
Andrei-Liviu Simion
37dd178424 dp: rx: Fixed names of some incorrectly used definitions.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:00 +05:30
Andrei-Liviu Simion
574034b189 dp: rx: Added selftest function.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:33:59 +05:30
Andrei-Liviu Simion
a5359d4c2d dp: tcl: Generate dp_g.c instead of dptx_g.c.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:33:58 +05:30
Andrei-Liviu Simion
e0d0e0c1e7 dp: rx: Added core masks, shifts, and register values.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:33:57 +05:30
Andrei-Liviu Simion
178a11326e dp: rx: Added assertions on function arguments.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:33:56 +05:30
Andrei-Liviu Simion
835c8acbab dp: rx: Added modification history.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:33:56 +05:30
Andrei-Liviu Simion
249af540c6 dp: rx: Added file header documentation.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:33:55 +05:30
Andrei-Liviu Simion
ff3f15acbb dp: rx: Added function header comments for interrupt related functions.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:33:54 +05:30
Andrei-Liviu Simion
9463358c28 dp: rx: Added function header comments for primary source file.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:33:53 +05:30