Commit graph

671 commits

Author SHA1 Message Date
Punnaiah Choudary Kalluri
8c4eca5dde emacps: Removed unnecessary comments
Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-04-26 10:34:58 +05:30
Punnaiah Choudary Kalluri
cf4616c934 emacps: Restrict Alto GEM to 100mbps
Restrict the Alto GEM to 100mbps as no support in the current platfrom
for 1G.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-04-26 10:34:57 +05:30
Punnaiah Choudary Kalluri
510db9aef3 emacps: Remove PEEP board related code
Remove PEEP board related code.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-04-26 10:34:56 +05:30
Punnaiah Choudary Kalluri
9f76bf06be emacps: Include examples only when interrupt line is configured
Don't include examples when interrupt is not connected

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-04-26 10:34:55 +05:30
Kinjal Pravinbhai Patel
3b8941be6d drivers: cpu: hsi changes for hierarchical external interface names
updated cpu driver to use hsi::format_xparam_name to convert
hierarchical external interface names to valid compilable xparam names

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
2015-04-26 10:34:54 +05:30
Kinjal Pravinbhai Patel
6cb4127c2c driver: intc: hsi changes for hierarchical names
updated intc driver to use hsi::format_xparam_name to convert
hierarchical names in xparam names to compilable names

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
2015-04-26 10:34:54 +05:30
Kinjal Pravinbhai Patel
5316b1a4c7 drivers: cpu_cortexa9: changes for hsi
updated driver to use hsi::utils::format_xparam_name to convert
hierarchical names to valid compilable xparameter names

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
2015-04-26 10:34:53 +05:30
Andrei-Liviu Simion
9101ecf808 video_common: Updated Doxygen documentation.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:52 +05:30
Andrei-Liviu Simion
be8784f051 video_common: XVidC_ColorConversionStd->XVidC_ColorStd.
Previous naming was lengthy.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:51 +05:30
Andrei-Liviu Simion
81d24be485 video_common: ColorSpace->ColorFormat.
Color format better describes the represented RGB/YUV444/YUV422/YUV420 formats.
Color space would be YUV/RGB.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:50 +05:30
Andrei-Liviu Simion
3b2961139d dp: Only increment segment pointer if required.
It seems that monitors capable of MST, upon switching to SST mode in the monitor
options menu, respond with NACK when the segment pointer is written.
These same monitors ACK segment pointer writes when running in MST mode.
Tested monitors that are SST only monitors also ACK segment pointer writes.

The issue here is that MST monitors running in SST mode will error out when the
I2C read function is called because the segment pointer is always being written
to 0 (segment pointer is reset), and thus receives a NACK.
This patch prevents this from happening.

From now on, if the user changes the segment pointer, it is up to them to reset
it to 0.
The I2C read will only increment the segment pointer when required to do a read
outside of the base EDID block.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:49 +05:30
Andrei-Liviu Simion
7c1930723c dptx: Only increment segment pointer if required.
It seems that monitors capable of MST, upon switching to SST mode in the monitor
options menu, respond with NACK when the segment pointer is written.
These same monitors ACK segment pointer writes when running in MST mode.
Tested monitors that are SST only monitors also ACK segment pointer writes.

The issue here is that MST monitors running in SST mode will error out when the
I2C read function is called because the segment pointer is always being written
to 0 (segment pointer is reset), and thus receives a NACK.
This patch prevents this from happening.

From now on, if the user changes the segment pointer, it is up to them to reset
it to 0.
The I2C read will only increment the segment pointer when required to do a read
outside of the base EDID block.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:48 +05:30
Andrei-Liviu Simion
0194e3fc17 video_common: Fixed pixel clock calculation for interlaced modes.
In interlaced mode, the vertical total lines for frames 0 and 1 may not
necessarily be equal (off by 1). The pixel clock calculation needs to take this
into account by taking their average.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:48 +05:30
Andrei-Liviu Simion
767e6749ee video_common: Added XVidC_IsInterlaced.
This function checks if a video timing with a supplied ID from the video mode
table is interlaced or not.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:46 +05:30
Andrei-Liviu Simion
156f41affc video_common: Removed extern.
The video timing table isn't extern.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:45 +05:30
Andrei-Liviu Simion
2a4d0ee04e video_common: Removed duplicate interlaced video timings.
Removed 25 Hz and 30 Hz refresh rates since they have identical video timings to
the 50 Hz and 60 Hz varients. The 50/60Hz refresh rates take into account both
frames for interlaced.
The common video functions use the 50/60Hz refresh rates and divide by 2 where
needed to get the frame rate for each frame.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:44 +05:30
Andrei-Liviu Simion
57a0c64dd0 dp: tx: Don't write voltage swing and pre-emphasis values when writing TP0.
For compliance, training pattern 0 should be written without using a burst write
for voltage swing and pre-emphasis values.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:44 +05:30
Andrei-Liviu Simion
a36b777a40 dp: tx: When downshifting during link training, always issue training pattern 0.
For compliance purposes, training pattern 0 needs to be sent between
downshifting of lane count and link rates.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:43 +05:30
Andrei-Liviu Simion
45e5fabd1b dp: Update Doxygen documentation.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:41 +05:30
Andrei-Liviu Simion
b45d77cbe5 dp: rx: Added audio info and extension packet received interrupt handlers.
XDp_RxSetIntrInfoPktHandler and XDp_RxSetIntrExtPktHandler.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:40 +05:30
Andrei-Liviu Simion
74cef5fbbb dp: rx: Added audio control.
Enable, disable, and reset of audio stream packets on the main link.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:39 +05:30
Andrei-Liviu Simion
7368c8e1c9 dp: tx: Added function header to XDp_TxSendSbMsgRemoteIicWrite.
Added function description.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:38 +05:30
Andrei-Liviu Simion
83f6fe1f77 dp: rx: example: Set up handlers after core configuration has complete.
Since the RX handler initialization functions assert that the core is of type
RX, the configuration initialization function must be called prior to the
handlers being set.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:38 +05:30
Andrei-Liviu Simion
80eb9a43cd dp: Added TX/RX assertions on all API functions.
Functions now assert the core context upon which they operate.

XDp_Tx* functions are meant to be used with the DisplayPort core in the TX mode
of operation.
XDp_Rx* functions are meant to be used with the DisplayPort core in the RX mode
of operation.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:37 +05:30
Andrei-Liviu Simion
09b2ef3c26 dp: Enumerated the 2 modes of DisplayPort operation.
XDP_TX for Displayport transmitters (sources) XDP_RX for DisplayPort receivers
(sinks).

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:36 +05:30
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