Commit graph

1365 commits

Author SHA1 Message Date
Andrei-Liviu Simion
7e11d30a1a dp: rx: mst: Format down reply for ENUMERATE_PATH_RESOURCES down requests.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:23 +05:30
Andrei-Liviu Simion
89d29bdaac dp: rx: mst: Set PBN values for each connected downstream port.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:23 +05:30
Andrei-Liviu Simion
80effc4ccf dp: rx: mst: Allocate virtual channel payload table in software and hardware.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:22 +05:30
Andrei-Liviu Simion
d06049f75b dp: rx: mst: Format down reply message for LINK_ADDRESS down requests.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:22 +05:30
Andrei-Liviu Simion
fdd7c23ebb dp: rx: mst: Format down reply message for REMOTE_I2C_READ down requests.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:21 +05:30
Andrei-Liviu Simion
72069d67a0 dp: rx: mst: Format down reply message for REMOTE_DPCD_READ down requests.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:21 +05:30
Andrei-Liviu Simion
5d1f504961 dp: rx: mst: Format down reply for ALLOCATE_ and CLEAR_PAYLOAD down requests.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:20 +05:30
Andrei-Liviu Simion
a6aa8c2f3b dp: rx: mst: Added MST initialization.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:20 +05:30
Andrei-Liviu Simion
022e3c5d6b dp: rx: mst: Added definitions for MST.
- RX MST capabilities.
- RX MST payload allocation.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:19 +05:30
Andrei-Liviu Simion
9ba2fb9a30 dp: rx: mst: Set number of ports in link address struct when exposing a port.
Previously, the number of ports was only being set when setting an input port.
If there are multiple input ports, the number of ports wasn't being accurately
reflected.

The user application was required to update the number of ports when setting a
downstream port.
This is now done within the driver.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:19 +05:30
Andrei-Liviu Simion
9508faa033 dp: rx: Removed statement from unrelated function.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:18 +05:30
Andrei-Liviu Simion
f8a61f7c7b dp: rx: mst: Keep the internal port number the same as the index.
When setting the configuration of a port, always keep the port number of the
port structure to the same value as the index of the structure's index in the
port structure array.

This simplifies functions that operate on the port structure since they don't
need to search each port structure in the array for the port number, the port
number is known from the index.

Note: The existence of the port number member in the port structure is required
since the TX populates this structure when receiving LINK_ADDRESS sideband
messages.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:18 +05:30
Andrei-Liviu Simion
7cdb022588 dp: rx: mst: Added a payload table into the RX structure.
When the upstream device issues an ALLOCATE_PAYLOAD sideband message request,
this table is updated to represent the allocated bandwidth for each stream.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:18 +05:30
Andrei-Liviu Simion
0fd3fc6d54 dp: rx: mst: Added ability to set an I2C map for each port.
The "I2C map" terminology is used to refer to a set of I2C entries for a given
port. Each I2C entry contains an I2C address associated with that entry,
alongside a user-defined data structure which is to be pointed to.

This is the mechanism for which the driver allows the RX application to control
what data to be sent for a given I2C address when a REMOTE_I2C_READ is issued
by an upstream device.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:17 +05:30
Andrei-Liviu Simion
745530d3e2 dp: rx: mst: Add ability to set port information in the RX downstream topology.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:16 +05:30
Andrei-Liviu Simion
b12d4c0570 dp: rx: mst: Added ability to expose or hide a specific port from the TX.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:16 +05:30
Andrei-Liviu Simion
23dad61218 dp: rx: mst: Added downstream topology for responding to sideband messages.
Topology contains information for responding to LINK_ADDRESS sideband messages
and I2C maps for each port for responding to REMOTE_I2C_READ.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:15 +05:30
Andrei-Liviu Simion
201d9e148a dp: mst: Renamed link address related structures to reflect RX/TX commonality.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:15 +05:30
Andrei-Liviu Simion
2147c179cf dp: mst: Removed unneeded data from the link address reply structure.
- ReplyType: The driver already checks for NACK elsewhere.
- RequestId: The link address reply will always carry the LINK_ADDRESS tag.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:14 +05:30
Andrei-Liviu Simion
2a2726b7a9 dp: mst: Fixed XDp_SendSbMsgFragment comment to reflect new TX/RX commonality.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:13 +05:30
Andrei-Liviu Simion
3f2598ff25 dp: rx: mst: Functionality to break a sideband message into multiple fragments.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:13 +05:30
Andrei-Liviu Simion
8f1e0f1d99 dp: mst: Renamed CRC functions to indicate commonality between RX and TX cases.
Both RX and TX cases use the CRC functions so having *Tx* in the function name
is incorrect.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:12 +05:30
Andrei-Liviu Simion
4f870ba9da dp: mst: Modified body CRC calculation to handle fragmented sideband messages.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:12 +05:30
Andrei-Liviu Simion
d18040e44d dp: mst: Modified XDp_SendSbMsgFragment to handle both RX and TX cases.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:11 +05:30
Andrei-Liviu Simion
6f95aee007 dp: mst: Renamed sending a sideband message to reflect RX and TX commonalities.
Both RX and TX use XDp_SendSbMsgFragment as a base layer for sending messages.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:11 +05:30
Andrei-Liviu Simion
05ab36ac68 dp: mst: Updated the sideband message body structure for larger messages.
Larger messages will need to be split into multiple fragments.
- The MsgData member carries all information.
- The FragmentNum member indicates the last fragment processed.
- The header reflects the latest fragment.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:10 +05:30
Andrei-Liviu Simion
c2b18c9244 dp: rx: mst: Add support to write down reply in response to a sideband message.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:10 +05:30
Andrei-Liviu Simion
cf7f6f2126 dp: mst: Both RX and TX use the transaction to message format helper function.
Changed naming to reflect commonality.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:09 +05:30
Andrei-Liviu Simion
40a6c28bcf dp: rx: mst: Added interrupt handlers.
1) Down request for MST sideband messages TX to RX.
2) Down reply for MST sideband messages from RX to TX.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:08 +05:30
Andrei-Liviu Simion
8bbd926b0b dp: rx: Initialization now enables PHY reset during training and rate changes.
The IP documentation "recommends" enabling the following:
- Issuing reset at every training iteration.
- Issuing reset at every link rate change.
- Issuing reset at start of training pattern 1.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:08 +05:30
Andrei-Liviu Simion
1c42a7097b dp: tx: Added sink count register field definitions.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:07 +05:30
Andrei-Liviu Simion
6b2f2b94b5 dp: tx: Removed interrupt masking from the interrupt handler.
No need for this since the handler will never be called if the interrupts are
masked in the first place.

Also, by default, nested interrupts are disabled and it is up to the user to
explicitly request nested interrupts - allow this.

The interrupt mask should already apply in hardware.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:06 +05:30
Andrei-Liviu Simion
e19f8a680f dp: tx: Minor clean-up for readability.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:06 +05:30
Andrei-Liviu Simion
f016a6d3cd dp: tx: Re-enable link after the training pattern disabled.
Even if link training succeeds, sometimes, the link will fall if the link is
enabled prior to the training pattern being turned off.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:05 +05:30
Andrei-Liviu Simion
332ba9d225 dp: tx: Training should fail if clock recovery fails on max voltage.
As required by DisplayPort compliance, the clock recovery sequence should
fail if all lanes haven't completed clock recovery on the first attempt
using the maximum voltage swing supported.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:05 +05:30
Andrei-Liviu Simion
78cccda094 dp: tx: Always ensure that any pending AUX transactions have completed.
Prior to initiating a new AUX transaction, always ensure that any pending
transactions have completed.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:04 +05:30
Andrei-Liviu Simion
2cb307c7d5 dp: tx: Ensure that for AUX transactions, the received bytes matches.
Verify that the AUX transaction replied with the expected number of bytes.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:03 +05:30
Andrei-Liviu Simion
11f81b0d62 dp: tx: Modified waiting on AUX reply to operate on REPLY_STATUS.
AUX reply now makes use of the REPLY_STATUS register rather than
INTERRUPT_STATUS. It seems that INTERRUPT_STATUS may be updated before
REPLY_STATUS gets updated, resulting in a race condition.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:01 +05:30
Andrei-Liviu Simion
9b8536c1aa dp: Updated to version to 2.0.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:01 +05:30
Andrei-Liviu Simion
903d859429 dp: New version v2.0.
Copied v1.0 directory to v2.0.

Deprecated version 1.0.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-07-07 00:12:00 +05:30
Nava kishore Manne
ce10360848 Revert "sw_apps:zynqmp_fsbl: Changed alignment of MMU tables for A53"
This reverts commit 6713239caf3a66e29826de88ef0638ca39c0628c.
2015-07-06 23:45:58 +05:30
Naga Sureshkumar Relli
0a7fcbc746 xilflash_v4_1: Added Pass/Fail string to readwrite_example.
This patch adds Pass/Fail string to xilflash_readwrite_example.

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
2015-07-06 11:49:25 +05:30
Bhavik Ameta
a2f0af55aa sw_services:xilsecure: Windows build issue fixed
Makefile has been corrected to fix the build issue on Windows

Signed-off-by: Bhavik Ameta <bameta@xilinx.com>
2015-07-06 10:48:30 +05:30
Sarat Chand Savitala
64e5e95917 sw_apps:zynqmp_fsbl: Fix in ATF handoff parameters for destination CPU
This fix populates the correct A53 CPU to which FSBL has to
hand off when partition is ATF.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-07-06 10:30:08 +05:30
Sarat Chand Savitala
0133313ae5 sw_apps:zynqmp_fsbl: Changed alignment of MMU tables for A53
This enables saving of some OCM space for FSBL.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-07-06 10:30:06 +05:30
Sarat Chand Savitala
9083a0a512 sw_apps:zynqmp_fsbl: Fix to avoid conflict with ATF Handoff parameters location
This fix stores FSBL's ATF Handoff parameters at fixed address towards
end of OCM so that ATF can avoid conflict with its sections.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-07-06 10:30:05 +05:30
Nava kishore Manne
04f120953b Revert "bsp: xil_printf: Specify attribute(format)"
This reverts commit 91606d4ae07a49dd5422b5e3bf2ed7a477296263.
2015-07-06 10:20:05 +05:30
P L Sai Krishna
42f46f2ddb xilffs: Added notes in the example.
This patch add notes in the example.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2015-07-02 17:22:51 +05:30
P L Sai Krishna
cfc2e87b18 zynqmp_fsbl: Added read only option and enabled it.
This patch add read only option and enabled it in mss
file for the Zynqmp fsbl.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2015-07-02 17:22:51 +05:30
P L Sai Krishna
d2fc5aa4ab xilffs: Added Read_Only option.
This patch modifies .mld and .tcl files to provide the
Read_Only option to the user. By default this option
is false.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2015-07-02 17:22:50 +05:30