Commit graph

846 commits

Author SHA1 Message Date
Shadul Shaikh
46350e52d2 dprxss: Modified the order of execution in training pattern 1 callback
This patch modifies the order of execution in training pattern 1 callback as
DP159 programming for training pattern 1 and then link bandwidth callback.

This modification require for few GPUs (Intel) to allow DP159 programming for
training pattern 1 before link bandwidth callback.

Signed-off-by: Shadul Shaikh <shaduls@xilinx.com>
Acked-by: Srikanth Vemula <svemula@xilinx.com>
2015-11-06 21:33:32 +05:30
Nava kishore Manne
fc2ea039d9 iicps: Select interrupt ID in example based on instance present
To allow for automatic testing, select IIC_INTR_ID based on the
PSU_<> present. Left initial definition intact for Zynq.

Signed-off-by: Nava kishore Manne <navam@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
2015-11-06 20:52:48 +05:30
Shadul Shaikh
59ac8e6c21 dptxss: Modified driver example files modification history
This patch modifies modification history of DisplayPort TX Subsystem driver
example files.

Signed-off-by: Shadul Shaikh <shaduls@xilinx.com>
Acked-by: Srikanth Vemula <svemula@xilinx.com>
2015-11-03 11:56:11 +05:30
Shadul Shaikh
4da4f82fc4 dptxss: Modified driver files modification history
This patch modifies modification history of DisplayPort TX Subsystem driver
files.

Signed-off-by: Shadul Shaikh <shaduls@xilinx.com>
Acked-by: Srikanth Vemula <svemula@xilinx.com>
2015-11-03 11:54:17 +05:30
Rohit Consul
4fd5787f10 video_common: Update stream report API for custom tag
In Stream reporting API if custom tag is detected print stream
properties as-is instead of using the mode table based API's

Signed-off-by: Rohit Consul <rohit.consul@xilinx.com>
Acked-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-10-30 21:12:32 +05:30
VNSL Durga
a83a191293 csudma: Modified logic of polling variable in example.
Signed-off-by: VNSL Durga <vnsldurg@xilinx.com>
Acked-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-10-27 14:40:00 +05:30
Venkata Naga Sai Krishna Kolapalli
a7d10c5f22 rtcpsu : Enable battery switching bit in control register
This patch enables rtc controller to switch to battery
when vcc_psaux is not available.

Signed-off-by: Venkata Naga Sai Krishna Kolapalli <venkatan@xilinx.com>
Reviewed-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-10-27 14:12:20 +05:30
Rohit Consul
120d4554bd v_hdmitxss: Rename external API
Renamed XV_HdmiTxSs_SendAudioInfoFrame API to
XV_HdmiTxSs_SendAuxInfoFrame

Corrected Ppc data type to XVidC_PixelsPerClock

Removed vtc patch as fix is available in vtc driver v7.1

Signed-off-by: Rohit Consul <rohit.consul@xilinx.com>
2015-10-23 14:38:53 +05:30
Rohit Consul
e4715b82e8 v_hdmitxss: update depends clause for vtc driver
Updated vtc driver dependency version to 7.1

Signed-off-by: Rohit Consul <rohit.consul@xilinx.com>
2015-10-23 14:38:52 +05:30
Rohit Consul
83bfc8403a v_hdmirxss: update config structure for driver parameter
Updated pixel per clock parameter type to reflect usage
Deleted hdcp timer calls from - not needed in this module

Signed-off-by: Rohit Consul <rohit.consul@xilinx.com>
2015-10-23 14:38:52 +05:30
Rohit Consul
5700a3bded v_hdmirxss: Set hpd false when cable is disconnected
When cable disconnect is detected drive hpd line low

Signed-off-by: Rohit Consul <rohit.consul@xilinx.com>
2015-10-23 14:38:52 +05:30
Rohit Consul
c41c7cc5f4 v_hdmirx.c: Add custom video mode id tag
For input resolution not found in mode table update the video
mode id as custom.

Signed-off-by: Rohit Consul <rohit.consul@xilinx.com>
2015-10-23 14:38:52 +05:30
P L Sai Krishna
f0dfbbd126 sdps: Polled for Transfer Complete bit after cmd6.
Polled for Transfer Complete bit after sending CMD6
in case of eMMC card. since CMD6 expects a R1b response
we need to check for Transfer complete before sending
next command.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Reviewed-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-10-23 14:15:15 +05:30
Srikanth Vemula
5155c4f47f vtc: Added interlaced programming feature.
Added new interlaced source select field to provide interlaced programming option to user.

Signed-off-by: VNSL Durga <vnsldurg@xilinx.com>
Acked-by: Srikanth Vemula <svemula@xilinx.com>
2015-10-22 23:28:35 +05:30
P L Sai Krishna
56ea0274df sdps: Polled for transfer complete for cmd6.
This patch does following things:
Added polling for transfer complete for cmd6 in case
of eMMC and MMC card.
Added 2.0 controller version check in case of eMMC to
switch for High speed mode in Zynq.
Added check for eMMC card, since HS200 mode switching
will only support by eMMC.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Acked-by: Harini Katakam <harinik@xilinx.com>
2015-10-22 23:17:37 +05:30
Kedareswara rao Appana
3171d55588 can: Update the driver tcl to check for valid IP parameter
Few IP parameters exported in smaller cases to the hdf
but the dirver tcl is checking for the same parameters in
upper case resulting wrong values are being genearted
in xparameters.h file. This patch fixes this issue.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Acked-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
2015-10-20 17:06:24 +05:30
Kedareswara rao Appana
0707af60f4 can: Create a new version of can driver
Created a new vesrion of can can_v3_1

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Acked-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
2015-10-20 17:04:28 +05:30
Andrei-Liviu Simion
4b33a35165 vphy: Initial release of Video PHY driver.
Video PHY driver for abstraction of GTs.

Contribution from Gilbert Magnaye on HDMI.
Contribution from Vamsi Krishna Dhanikonda on DisplayPort.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Rohit Consul <rohitco@xilinx.com>
2015-10-20 16:34:48 +05:30
Andrei-Liviu Simion
4c505a9c37 hdcp1x: Added dependency on timer counter.
Compilation failure if an HDCP design was generated without a
timer counter instatiated.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Shadul Shaikh <shaduls@xilinx.com>
2015-10-19 22:40:59 +05:30
Andrei-Liviu Simion
3b7b32fe0e dp: tx: Moved wait for PHY ready from initialization.
PHY ready check is now done immediately before initiating link
training.

In pass-through designs where the TX reference clock is derived
from the input RX clock, having no RX clock would have resulted
the TX initialization failing due to PHY ready time out.

This patch allows TX and RX to both be initialized in any
order.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Shadul Shaikh <shaduls@xilinx.com>
2015-10-19 22:31:36 +05:30
VNSL Durga
743a656e2c ZDMA: Modified XZDma_CreateBDList API
Corrected destination descriptor address calculation in
XZDma_CreateBDList API.

Signed-off-by: VNSL Durga <vnsldurg@xilinx.com>
Acked by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-10-19 10:52:36 +05:30
Anurag Kumar Vulisha
c04b550bca spi: added support for sst flash part in xspips_flash_intr_example.c
For sst flash parts we need to unlock global protection bits and use
bulk erase command instead of chip erase.This patch updates the same.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Acked by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-10-17 00:34:06 +05:30
Anurag Kumar Vulisha
3487d7ac41 spi: changed the xspips_flash_polled_example file for sst flash parts
For sst flash parts we need to unlock global protection bits and use
bulk erase command instead of chip erase.This patch updates the same.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Acked by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-10-17 00:32:49 +05:30
Shadul Shaikh
b505655fe0 dprxss: Instruct RX to generate HPD interrupt
This patch generates a Hot-Plug Detect (HPD) interrupt whenever RX cable
disconnect/unplug interrupt detected.

Signed-off-by: Shadul Shaikh <shaduls@xilinx.com>
Acked-by: Andrei-Liviu Simion <andreis@xilinx.com>
2015-10-17 00:24:28 +05:30
Harini Katakam
7b0809dbe4 emacps: Manage clock setup & rate differences between Emulation and Silicon
Set speed of 1G for silicon only and run at 100Mbps on emulation platforms.
CRL_APB register configuration to 1000Mbps is also only required for silicon.
Minor comment corrections done.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
Acked by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-10-17 00:05:29 +05:30
Harini Katakam
62177f1717 emacps: Select interrupt ID in example based on instance present
Different GEM instances are present on evaluation and emulation platforms
of Zynq Ultrascale+ MPSoC.
To allow for automatic testing, select XPS_GEMx_INTR_ID based on the
PSU_<> present. Left initial definition intact for Zynq.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
Acked by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-10-17 00:04:22 +05:30
P L Sai Krishna
5594d1f3fc sdps: Added support for SD v1.0
This patch add support for SD card v1.0

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Reviewed-by: Harini Katakam <harinik@xilinx.com>
2015-10-16 19:30:43 +05:30
Shadul Shaikh
1e332095b8 dptxss: Added HDCP example
This patch adds HDCP example and modifies examples, readme, index
files.

Signed-off-by: Shadul Shaikh <shaduls@xilinx.com>
Acked-by: Andrei Simion <andreis@xilinx.com>
2015-10-14 23:09:34 +05:30
Shadul Shaikh
47fe2ff165 dptxss: Integrated HDCP, Timer in DisplayPort Transmitter Subsystem
This patch integrates HDCP, Timer in DisplayPort TX Subsystem.

Signed-off-by: Shadul Shaikh <shaduls@xilinx.com>
Acked-by: Andrei Simion <andreis@xilinx.com>
2015-10-14 23:09:34 +05:30
Shadul Shaikh
4ef87ec22c dprxss: Added HDCP example
This patch adds HDCP example and modifies examples, index, readme files.

Signed-off-by: Shadul Shaikh <shaduls@xilinx.com>
Acked-by: Andrei Simion <andreis@xilinx.com>
2015-10-14 23:09:33 +05:30
Shadul Shaikh
879b09fd24 dprxss: Integrated HDCP, Timer in DisplayPort RX Subsystem
This patch integrates HDCP and Timer in DisplayPort Receiver Subsystem.

Signed-off-by: Shadul Shaikh <shaduls@xilinx.com>
Acked-by: Andrei Simion <andreis@xilinx.com>
2015-10-14 23:09:31 +05:30
VNSL Durga
c1cecfadc7 ZDMA: Modified ZDMA simple transfer example
Hardcoded address for pointers are changed to arrays.

Signed-off-by: VNSL Durga <vnsldurg@xilinx.com>
Acked by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-10-14 10:37:57 +05:30
Harini Katakam
ed027bf4b9 qspipsu: Increase setup and hold time
Increase the setup and hold time of qspi to accomodate for a worst case
of ~15ns with ref clk of 300MHz.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
Acked by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-10-12 18:21:47 +05:30
Rohit Consul
33835aa8dc v_hdmitx: Add initial version of hdmi tx core driver
Added hdmi tx core driver v1.0 (on behalf of Gilbert Magnaye)

Signed-off-by: Rohit Consul <rohit.consul@xilinx.com>
Acked-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-10-12 16:29:53 +05:30
Rohit Consul
a42863ac75 v_hdmirx: Add initial version of hdmi rx core driver
Added hdmi rx core driver v1.0 (on behalf of gilbert magnaye)

Signed-off-by: Rohit Consul <rohit.consul@xilinx.com>
Acked-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-10-12 16:29:43 +05:30
Rohit Consul
a6f402d225 v_hdmitxss: Add initial version of hdmi tx subsystem driver
Added hdmi tx subsystem driver v1.0 (on behalf of Gilbert
Magnaye)

Signed-off-by: Rohit Consul <rohit.consul@xilinx.com>
Acked-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-10-12 16:29:33 +05:30
Rohit Consul
3713b27d5a v_hdmirxss: Add initial version of hdmi rx subsystem driver
Add initial revision of hdmi rx subsystem driver

Signed-off-by: Rohit Consul <rohit.consul@xilinx.com>
Acked-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-10-12 16:28:58 +05:30
Shadul Shaikh
1917c9d19e dptxss: Added index.html file
This patch adds index.html file in examples folder

Signed-off-by: Shadul Shaikh <shaduls@xilinx.com>
Acked-by: Andrei-Liviu Simion <andreis@xilinx.com>
2015-10-12 10:56:48 +05:30
Shadul Shaikh
c55f4acbc2 dptxss: Added custom resolution support
This patch adds custom resolution support and wrapper function
for setting a redriver path.

Signed-off-by: Shadul Shaikh <shaduls@xilinx.com>
Acked-by: Andrei-Liviu Simion <andreis@xilinx.com>
2015-10-12 10:56:18 +05:30
Rohit Consul
86f6445653 v_tpg: Bug fix for vidout lock monitor read mechanism
Fixed the read API for video lock monitor to read from
peripheral. Update example design to align with example design
update in hw

Signed-off-by: Rohit Consul <rohit.consul@xilinx.com>
Acked-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-10-12 10:45:15 +05:30
Andrei-Liviu Simion
0c17eca07b dp: Updated version to 3.0.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Shadul Shaikh <shaduls@xilinx.com>
2015-10-11 12:09:56 +05:30
Andrei-Liviu Simion
e3261eabd9 dp: rx: Fixed mask value for TPS3.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Shadul Shaikh <shaduls@xilinx.com>
2015-10-11 12:09:48 +05:30
Andrei-Liviu Simion
a1f01dfd16 dp: Set all instance structure values to 0.
Parts of the driver check whether or not the function pointers are
set and call appropriate callbacks if they are.
Ensure function pointers are set to 0 / NULL during configuration
initialization.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Shadul Shaikh <shaduls@xilinx.com>
2015-10-11 12:09:38 +05:30
Andrei-Liviu Simion
6881673da5 dp: tx: Added callback for MSA updates.
When the MSA is updated, provide a mechanism to run a user-defined
callback instead of using the MSA values from the driver's
structure.

This is useful if another DP core exists in the system (RX). Using
the new callback mechanism, the user can specify to use whatever
MSA values exist in the RX core as the values to transmit.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Shadul Shaikh <shaduls@xilinx.com>
2015-10-11 12:09:27 +05:30
Andrei-Liviu Simion
696be93f8d dp: mst: Removed unneeded assignment.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Shadul Shaikh <shaduls@xilinx.com>
2015-10-11 12:09:18 +05:30
Andrei-Liviu Simion
b926ec9238 tmrctr: Added AXI clock frequency to config.
Expose the AXI bus clock frequency to the higher-level.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Shadul Shaikh <shaduls@xilinx.com>
2015-10-11 12:09:07 +05:30
Andrei-Liviu Simion
eb17e0e830 tmrctr: Protect against driver inclusion without core.
A driver may be included even when there is no associated core
present. (See the DEPENDS option in data/*.mdd).

If another driver includes this TmrCtr driver, despite no
associated timer counter core existing, then xtmrctr.tcl won't be
invoked by SDK and the xtmrctr_g.c will not be generated.
If this file is not generated, the BSP will include the default
xtmrctr_g.c which was previously assuming that there is at least
one instance of the core in the system.

Also, the XPAR_XTMRCTR_NUM_INSTANCES wasn't being defined in this
case.

Protection against such a scenario is required.
Some subsystem drivers will include all subcore drivers,
regardless whether they are a part of the system or not.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Shadul Shaikh <shaduls@xilinx.com>
2015-10-11 12:08:56 +05:30
Andrei-Liviu Simion
8631d7b7a1 hdcp1x: Added example _g.c file.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Shadul Shaikh <shaduls@xilinx.com>
2015-10-11 12:08:47 +05:30
Andrei-Liviu Simion
22a0b99cb9 hdcp1x: Updated version to 2.0.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Shadul Shaikh <shaduls@xilinx.com>
2015-10-11 12:08:38 +05:30
Andrei-Liviu Simion
0e440b93e0 hdcp1x: Define number of instances if not defined.
Some subsystem drivers have dependencies on all subcore drivers.
If no subcore of that type is present, the HDCP subcore driver's
TCL file won't be executing, and the XPAR_XHDCP_NUM_INSTANCES
will remain undefined.
This will cause a compilation error due to XHdcp1x_LookupConfig
using this definition.

This patch protects against such a scenario.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Shadul Shaikh <shaduls@xilinx.com>
2015-10-11 12:08:29 +05:30