Commit graph

865 commits

Author SHA1 Message Date
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
Andrei-Liviu Simion
13caf612bc hdcp1x: Updated configuration initialization.
The configuration initialization function is now consistent with
other drivers.

Added effective address as an argument to CfgInitialize.
This is necessary when memory addresses are translated differently
from the physical base address and for subsystem drivers whose
subcore base addresses appear as relative offsets to the base
address of the subsystem.

Moved configuration related content from LookupConfig to
CfgInitialize.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Shadul Shaikh <shaduls@xilinx.com>
2015-10-11 12:08:17 +05:30
Andrei-Liviu Simion
5136ca98fe hdcp1x: Updated HDMI driver usage.
Driver has been renamed to XV_Hdmi* rather than XHdmi*.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Shadul Shaikh <shaduls@xilinx.com>
2015-10-11 12:08:09 +05:30
Andrei-Liviu Simion
772862ce87 tmrctr: Updated version to 4.0.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Shadul Shaikh <shaduls@xilinx.com>
2015-10-11 12:08:01 +05:30
Andrei-Liviu Simion
58cb1f1c3c tmrctr: Moved configuration look up function to sinit file.
For consistency with common driver style.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Shadul Shaikh <shaduls@xilinx.com>
2015-10-11 12:07:53 +05:30
Andrei-Liviu Simion
ce787a5831 tmrctr: Added a default stub for callbacks.
To prevent unexpected behavior resulting from jumping to a NULL
address.

Previously, if the user didn't define a callback before the
occurence of an interrupt, the driver's interrupt handler would have
invoked a function pointer to NULL.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Shadul Shaikh <shaduls@xilinx.com>
2015-10-11 12:07:43 +05:30
Andrei-Liviu Simion
573bc5b06b tmrctr: Updated initialization API.
Added configuration initialization and hardware initialization API
functions.
The XTmrCtr driver is now consistent with other drivers.

The previous initialization structure disallowed using a different
base address from what was found in the xparameters and the
configuration table of the core.
The XTmrCtr_Initialize function was overriding the effective base
address internal to the core - it still as to keep the API
functionality intact for backward-compatibility.
Internally, the function is calling the new APIs.

This poses an issue if the memory addresses have been translated
differently from the physical base address.
Also, such as is for subsystem drivers, the base address of one
of the subsystem's subcores will appear as a relative offset to
the base address of the subsystem.

This issue is addressed by providing the higher level with control
of which base address will be used by the driver.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Shadul Shaikh <shaduls@xilinx.com>
2015-10-11 12:07:31 +05:30
Andrei-Liviu Simion
a6beedde4c dp: tx: Qualify interrupt status with interrupt mask.
The status and mask registers are independent - the interrupt status
is not affected by the software controlled interrupt mask register.

For the contents of the interrupt mask to take effect, qualification
of the interrupt status needs to happen in software.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Shadul Shaikh <shaduls@xilinx.com>
2015-10-11 12:07:21 +05:30
Andrei-Liviu Simion
9a7cc7936e dp: tx: Fixed PHY_STATUS macros for lane counts.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Shadul Shaikh <shaduls@xilinx.com>
2015-10-11 12:05:54 +05:30
Venkata Naga Sai Krishna Kolapalli
eb187277b1 Coresight : Add support for IAR Compiler.
This patch adds support for ICC ARM Compiler by
removing __inline keyword in case of IAR compiler.

Signed-off-by: Venkata Naga Sai Krishna Kolapalli <venkatan@xilinx.com>
Acked-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
2015-10-11 11:28:27 +05:30
Venkata Naga Sai Krishna Kolapalli
19210c0ac6 Coresight : Create new version for coresight driver.
Signed-off-by: Venkata Naga Sai Krishna Kolapalli <venkatan@xilinx.com>
Acked-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
2015-10-11 11:28:20 +05:30
Harini Katakam
bf85a4429e emacps: Fix examaples to avoid compilation errors in Zynq
Modify clock config function to move all ZynqMP GEM related code inside
XPAR_<psu ethernet ip> checks. This fixes the compilation errors for Zynq
that are caused by references to GEM2/3.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
Acked by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-10-11 11:28:14 +05:30
VNSL Durga
694c38328c vtc: Corrected VsyncStart Calculations
Corrected VsyncStart and also corrected register
read to XVTC_DVSYNC_F1_OFFSET in XVtc_GetDetector API

Signed-off-by: VNSL Durga <vnsldurg@xilinx.com>
Acked-by: Srikanth Vemula <svemula@xilinx.com>
2015-10-08 20:13:58 +05:30
VNSL Durga
7482d0d624 vtc: Added new version
Signed-off-by: VNSL Durga <vnsldurg@xilinx.com>
Acked-by: Srikanth Vemula <svemula@xilinx.com>
2015-10-08 20:13:33 +05:30
Harini Katakam
2a85a408e8 emacps: Enable 1000Mbps in example for ZynqMP
Write to CRL_APB registers for clock control and enable 1G speed.
Move clock configuration to a separate function.

Update payload to jumbo size.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
Reviewed-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-10-07 15:09:12 +05:30
Harini Katakam
7f958b6415 emacps: Add support for TI PHY
Read the phy idetifier register to identify whether PHY is Marvell or TI.
Add support for TI PHY sequence by writing to PHY CNTRL register and
tuning using RGMIICTL/RGMIIDCTL registers.
Access to extended registers in TI pHY is through REGCR and ADDAR registers.
ADDAR should be used to write the offset of register to be written
and then the value to be written. REGCR should indicate when ADDAR contains
register offset and when it contains register data.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
Reviewed-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-10-07 15:09:11 +05:30
Harini Katakam
b9a528a0ec sdps: Dont switch to 1.8V
Silicon 1.0 does not support switching to 1.8V and UHS mode.
Comment this code with a "broken" quirk.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Signed-off-by: Harini Katakam <harinik@xilinx.com>
Reviewed-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-10-01 10:48:18 +05:30
Andrei-Liviu Simion
86d2cde9d0 dp: tx: Updated PHY status done checks with single lane.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Srikanth Vemula <svemula@xilinx.com>
2015-09-16 17:43:15 +05:30
Andrei-Liviu Simion
2099c0ae3e dp: tx: Fixed fractional TU bytes calculation.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Srikanth Vemula <svemula@xilinx.com>
2015-09-16 17:42:53 +05:30
Rohit Consul
cf3ea2ed03 vprocss: Add 2 sec wait to example design source files
VTC in example design has switched to a slower 9MHz clock.This
essentially provides < 2fps frame rate. Vidout needs 3-4 frames
to acquire lock. After vpss configuration wait for 2 sec (mb_sleep)
before checking for vidout lock

Signed-off-by: Rohit Consul <rohit.consul@xilinx.com>
Acked-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-09-15 18:47:40 +05:30
Rohit Consul
889c80eb83 v_tpg: Add example design software
v_tpg IP has a new example design available in vivado catalogue.
Associated example software is added to the driver along with
the xsct script to create sdk project

Signed-off-by: Rohit Consul <rohit.consul@xilinx.com>
Acked-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-09-15 18:35:54 +05:30
Rohit Consul
7a4a8047ab v_tpg: Add dependency clause for Video Common
v_tpg example design uses enum definitions from video common
driver. Added dependency clause to include the video common
driver when tpg driver is sourced

Signed-off-by: Rohit Consul <rohit.consul@xilinx.com>
Acked-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-09-15 18:35:21 +05:30
Rohit Consul
d0f4ed35bb vprocss: Update example tcl to accept command line parameter
Vivado Example design tool flow change resulted in hdf file name
change of video processing subsystem example design. Update the
script to accept hdf file name from command line to avoid any
dependency on further name changes

Signed-off-by: Rohit Consul <rohit.consul@xilinx.com>
Acked-by: Anirudha Sarangi <anirudh@xilinx.com>
2015-09-04 23:23:29 +05:30
Kinjal Pravinbhai Patel
ee6224443b drivers: scugic: tcl has been modified for proper error message
This patch modifies driver tcl to show proper error message when
unsupported combination of IP and processor instance tries to
generate BSP e.g. if psu_rcpu_gic is not supported with cortex a53
and psu_acpu_gic is not supported with cortex r5

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
Acked-by: Anirudha Sarangi <anirudh@xilinx.com>
2015-09-04 22:00:09 +05:30
Rohit Consul
f60694c29d vprocss example: MIG instance name changed in example design
Updated the system.c to use canonical name for MIG to avoid
dependency on instance name

Signed-off-by: Rohit Consul <rohit.consul@xilinx.com>
Acked-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-09-04 11:04:31 +05:30
Rohit Consul
ed96473f13 vprocss: Change readme.txt file permissions
Changed readme.txt file permission to 644

Signed-off-by: Rohit Consul <rohit.consul@xilinx.com>
Acked-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-09-04 11:04:18 +05:30
Rohit Consul
c32323a043 vprocss: Add xsct tck script to automate sdk project creation
xsct scipt file added to automate the process of generating the
elf file(s) from the provided hdf file

Signed-off-by: Rohit Consul <rohit.consul@xilinx.com>
Acked-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-09-04 11:03:32 +05:30
Naga Sureshkumar Relli
ff00dfdd03 iomodule: Updated iomodule if external interrupts are not enabled
This patch updates the iomodule to handle, if external interrupts
are not enabled.

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Reviewed-by: Kedareswara rao Appana <appanad@xilinx.com>
2015-09-03 18:40:02 +05:30
Andrei-Liviu Simion
b85e4c0b2e dp: tx: 4K2K reduced blanking requires line reset disable.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: K Krishna Deepak <kde@xilinx.com>
2015-09-03 18:20:41 +05:30
Andrei-Liviu Simion
e1ce03e43a dp: Added new register definitions.
New registers in the DP v6.1 IP.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: K Krishna Deepak <kde@xilinx.com>
2015-09-03 18:20:28 +05:30
Andrei-Liviu Simion
7247a49431 video_common: Added 4K2K@60Hz (RB) to timings table.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: K Krishna Deepak <kde@xilinx.com>
2015-09-03 18:18:47 +05:30
Naga Sureshkumar Relli
d52e73f99f uartns550: update copyright year in source files and examples
Update copyright year in source files and examples.

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Acked-by: Nava kishore Manne <nava.manne@xilinx.com>
2015-09-02 10:24:12 +05:30