Commit graph

248 commits

Author SHA1 Message Date
Andrei-Liviu Simion
186fc02763 dptx: Added definitions for the Tiled Display Topology section data block.
The Tiled Display Topology (TDT) section data block is part of the DisplayID.
The driver currently supports DisplayID as an extension block to the base EDID
structure.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2014-11-25 21:38:44 +05:30
Andrei-Liviu Simion
9437435007 dptx: Added a function to retrieve a specified data block from the DisplayId.
Search for a section data block that matched a specified section tag.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2014-11-25 21:38:44 +05:30
Andrei-Liviu Simion
04f47a0ead dptx: Added some DisplayID register defines.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2014-11-25 21:38:43 +05:30
Andrei-Liviu Simion
394de11837 dptx: Added a function that fetches a DisplayID EDID extension block.
Given a sink, the function will attempt to retrieve an EDID extension block of
type DisplayID.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2014-11-25 21:38:43 +05:30
Andrei-Liviu Simion
d509ffc520 dptx: Reuse retrieval of EDID blocks for retrieval of the base EDID.
Base EDID = EDID block #0.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2014-11-25 21:38:42 +05:30
Andrei-Liviu Simion
d49f9f84fc dptx: Moved functions related to retrieval of EDID information into xdptx_edid.c
Consolidated the functions that obtain the base EDID block into the EDID utility
file.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2014-11-25 21:38:41 +05:30
Andrei-Liviu Simion
f2ad8b171d dptx: Added EDID utility file and functions for fetching an EDID block.
Created a file containing utility functions related to the Extended Display
Identification Information (EDID).
The initial functions included are used to fetch EDID blocks.

Block numbering starts with 0 being the base EDID block, and extension block
starting at 1.

EDID blocks are 128 bytes in size.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2014-11-25 21:38:41 +05:30
Andrei-Liviu Simion
63001153f7 dptx: Optimized immediate I2C read transaction.
The 16-byte chunking is already done by XDptx_AuxCommon, so there is no need to
do it in XDptx_IicRead.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2014-11-25 21:38:40 +05:30
Andrei-Liviu Simion
ba2c1ce602 dptx: Reorganized and commented I2C and DPCD reads/writes.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2014-11-25 21:38:39 +05:30
Andrei-Liviu Simion
64efde0148 dptx: Add and update the function header comments for I2C and DPCD reads/writes.
- Added function header comments for the remote I2C and remote DPCD read and
write functions.
- Updated the function header comments for immediate I2C and AUX read and write
functions.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2014-11-25 21:38:38 +05:30
Andrei-Liviu Simion
9fe0c8ca59 dptx: Define the I2C segment pointer address (0x30).
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2014-11-25 21:38:37 +05:30
Andrei-Liviu Simion
52ebe1260c dptx: Improved remote IIC reads/writes to automatically work on 16-byte chunks.
Some monitors don't support sideband messages with IIC reads greater than 16
bytes. This improvement breaks up the higher-level read/write request into
multiple reads/writes that work with up to 16 bytes in size.

These higher-level remote IIC read/write functions also serve as a wrapper for
an IIC read/write in case that the link count total is equal to 1 (a read/write
request to the RX device directly connected to the TX (not "remote")).

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2014-11-25 21:38:37 +05:30
Andrei-Liviu Simion
3a23a15f09 dptx: Optimize read/write GUID functions to use new remote reads/writes.
The remote read/write functions serve as a wrapper in case the target RX device
is directly connected to the TX (link count total is equal to 1).
These functions may be called instead of the read/write GUID functions doing the
same thing.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2014-11-25 21:38:36 +05:30
Andrei-Liviu Simion
518eb68d03 dptx: Improved remote DPCD reads/writes to automatically work on 16-byte chunks.
Some monitors don't support sideband messages with AUX reads greater than 16
bytes. This improvement breaks up the higher-level read/write request into
multiple reads/writes that work with up to 16 bytes in size.

These higher-level remote DPCD read/write functions also serve as a wrapper for
an AUX read/write in case that the link count total is equal to 1 (a read/write
request to the RX device directly connected to the TX (not "remote")).

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2014-11-25 21:38:35 +05:30
Andrei-Liviu Simion
d796348e29 dptx: Made the I2C read function more robust.
- Changed the offset from type u8 to u16.
- In order to accomodate offsets greater than 255, a segment pointer is used.
	- The I2C read funciton is now able to access blocks other than the
	block 0 and 1 at a given address. E.g., EDID extension blocks may now be
	accessed by reading from I2C address 0x50 (raw=0xA0/0xA1) and writing
	the appropriate segment pointer and offset.
		- Input offset=0.
			- EDID block 0: I2C read on offset=0 and segptr=0.
		- Input offset=128.
			- EDID block 1: I2C read on offset=128 and segptr=0.
		- Input offset=256.
			- EDID block 2: I2C read on offset=0 and segptr=1.
		- Input offset=384.
			- EDID block 3: I2C read on offset=128 and segptr=1.
		- etc.
	- Writing to the I2C address 0x30 (raw=0x60/0x61) sets the segment
	pointer.
	- Writing to an I2C address sets the offset that will be read from that
	address. E.g., a read of the EDID, starting at offset 128 would be done
	by writing 128 to 0x50, then reading from 0x50.
	- Offsets that cross a 256-byte boundary requiring increment of the
	segment pointer is also handled. E.g. A 16 byte read on input offset 500
	results in the the returned 16 byte array having the first 11 bytes from
	segptr=1 (bytes 244-255) and the last 5 bytes from segptr=2 (bytes 0-4).

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2014-11-25 21:38:35 +05:30
Andrei-Liviu Simion
8e3f3c9863 dptx: I2C writes do not use an offset.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2014-11-25 21:38:34 +05:30
Andrei-Liviu Simion
d8f1ad28d3 dptx: Renamed some arguments to be more consistent among functions.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2014-11-25 21:38:34 +05:30
Andrei-Liviu Simion
7cc072277c dptx: Reset video streams and AUX logic upon core initialization.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2014-11-25 21:38:33 +05:30
Andrei-Liviu Simion
e7216fd45f dptx: Update configuration structure when MST is enabled/disabled in hardware.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2014-11-25 21:38:32 +05:30
Andrei-Liviu Simion
6b9640569f dptx: Clear the ACT event received bit upon successfully receiving it.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2014-11-25 21:38:32 +05:30
Andrei-Liviu Simion
db13a8bdf4 dptx: Reuse common allocation function for clearing streams.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2014-11-25 21:38:31 +05:30
Andrei-Liviu Simion
c98c7e2ee5 dptx: Made the allocation of streams function more flexible.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2014-11-25 21:38:31 +05:30
Andrei-Liviu Simion
c24a77a245 dptx: Added an offset argument for remote I2C reads.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2014-11-25 21:38:30 +05:30
Andrei-Liviu Simion
73a66c85ff dptx: Added remote IIC write sideband message.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2014-11-25 21:38:30 +05:30
Kedareswara rao Appana
8a2a79d0f3 bsp: Fix bug in the xilernel bsp tcl
This patch fixes the xilkernel_thread_demo app compilation error
when microblaze is configured with mmu(C_USE_MMU) greater than one.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
2014-11-25 21:38:29 +05:30
Kedareswara rao Appana
cf808f2851 lwip: echo server not working for emaclite on zynq
This patch fixes the bug in the emaclite on zynq.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
2014-11-25 21:38:28 +05:30
Kedareswara rao Appana
43a7c2e0c2 intc: update doxygen for the driver
This patch updates the doxygen for the intc driver.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
2014-11-25 21:38:28 +05:30
Kedareswara rao Appana
fc812ca9f8 intc: Added generation of C_HAS_ILR parameter to xparameters.h file
This patch adds the support for the C_HAS_ILR parameter
to the xparameters.h file.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
2014-11-25 21:38:27 +05:30
P L Sai Krishna
38d86a8508 iicps: TimeOut Register value is modified.
This Patch modifies the TimeOut Register value,although timeout interrupt is not used, this register is changed to set to the maximum allowed HW timeout value.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2014-11-25 21:38:26 +05:30
Harini Katakam
2e6c402ee2 xilskey: Add check for JS_ONES flag in jtag lib
Add check for JS_ONES flag and handle it.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
2014-11-25 21:38:25 +05:30
Kedareswara rao Appana
5f9ae570bf lwip: lwip adapter for axi ethernet doesn't work for sgmii mode
This patch fixes the lwip adapter for axi ethernet doesn't work
for sgmii mode issue.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
2014-11-25 21:38:25 +05:30
Kedareswara rao Appana
9e790c6a41 emacps: Update doxygen for the emacps driver
This patch updates the doxygen for the emacps driver.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
2014-11-25 21:38:23 +05:30
Kedareswara rao Appana
88303c6d53 ethernet: Update doxygen for axiethernet driver
This patch updates the doxygen for the driver.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
2014-11-25 21:38:23 +05:30
Kedareswara rao Appana
abcddc595a lwip: Fix echo server app compilation errors for axi-ethernet on zynq
This patch fixes the compilation errors when
axi-ethernet is present in the PL and when user try to generate
echo server application.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
2014-11-25 21:38:22 +05:30
Kedareswara rao Appana
ab6f0cad19 lwip: Fix typo error
This patch fixes the typo error
in the xemacliteif.c file.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
2014-11-25 21:38:21 +05:30
Kedareswara rao Appana
62e8d52031 lwip: Fix for SGMII/1000BASEX interface not working on zynq
This patch fixes the issues related to SGMII/1000BASEX phy
that is connected to GEM or axi ethernet on zynq.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
2014-11-25 21:38:21 +05:30
Kedareswara rao Appana
c338c3c054 emacps: Export proper values to xparameters.h file when PCS/PMA core is configured with 1000BASE-X
This patch fixes the issue exporting proper
values to the xparameters.h file when the PCS/PMA core is configured
in 1000BASE-X mode.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
2014-11-25 21:38:20 +05:30
Kedareswara rao Appana
e562b6a397 ethernet: Export SGMII/1000BASE-X properties to xparameters.h file
This patch adds support for exporting SGMII/1000BASE-X
properties to xparameters.h file when the pcs/pma core is present in
the h/w design.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
2014-11-25 21:38:20 +05:30
Andrei-Liviu Simion
2d318f6d74 dptx: Broadcast messages need to have an LCR of 6.
An LCR (link count remaining) value of 6 is used to protect against loops.
If the LCR isn't processed at each node and attempted to be broadcasted on all
ports, waiting for a reply, a loop in the topology will result in the broadcast
message being forwarded infinitely.
Because of this, an LCR of 0 will prevent the message from being forwarded to
subsequent DP nodes.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2014-11-25 21:38:19 +05:30
P L Sai Krishna
5832250593 iicps: modified the eeprom interrupt and polled examples.
This patch removes the multiple initialisations for readbuffer in eeprom interrupt and polled examples.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2014-11-25 21:38:19 +05:30
P L Sai Krishna
cc9ef9bdc2 iicps: Deleted repeated start example.
This patch deletes repeated start example.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2014-11-25 21:38:18 +05:30
P L Sai Krishna
45db2926b5 iicps: Removed repeated start feature.
This patch removes the repeated start feature.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2014-11-25 21:38:17 +05:30
P L Sai Krishna
1745f21b76 iicps: changed transmit fifo call and replaced macro.
Fill Transmit Fifo before address register when sending and replaced DATA_INTR_DEPTH macro with FIFO_DEPTH macro.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2014-11-25 21:38:17 +05:30
Kedareswara rao Appana
1ae85a7367 uart: Incorrect freq value being exported to the xparameters.h file
This patch fixes the issue incorrect freq value being exported to
the xparameters.h file when uart is configured with external clock.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
2014-11-25 21:38:16 +05:30
Kedareswara rao Appana
fd4c714198 uart: Clear global counters in the interrupt example
If mulitple uart instances present in the h/w design and when
try to run periphreal test for those design results failure for
the second instance of ip. This patch fixes this issue.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
2014-11-25 21:38:16 +05:30
P L Sai Krishna
da1be543e2 gpiops: Used Pin number in bank instead of pin number passed to APIs and changed the mask value.
This patch uses pin number in bank rather than pin number passed to APIs and changed the mask value.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2014-11-25 21:38:15 +05:30
Keerthana Voruganti
9cf8155cf6 sw_apps:zynq_fsbl: LinearBootDeviceFlag is initialized
LinearBootDeviceFlag is initialized since the variable undefined when operated in IO mode.

Signed-off-by: Keerthana Voruganti <keertha@xilinx.com>
2014-11-25 21:38:14 +05:30
Andrei-Liviu Simion
48ac21fccd dptx: Updated documentation for v2_0.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2014-11-25 21:38:14 +05:30
Andrei-Liviu Simion
24a0758d5d dptx: Updated header comments to reflect status of testing.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2014-11-25 21:38:13 +05:30
Andrei-Liviu Simion
af7d539249 dptx: MST: Improved example code.
- Reduced lines of code that weren't part of the minimal set required for MST
streams to appear on the monitors.
- By default, don't use delays for AUX or sideband messaging.
- Added a final check to make sure that the link hasn't been lost. If it was
lost, re-train and try the programming sequence again.
- Added some additional comments to example code.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2014-11-25 21:38:12 +05:30