Commit graph

54 commits

Author SHA1 Message Date
Nava kishore Manne
d18411f597 Drivers: Doxygen changes for 2015.4
Signed-off-by: Nava kishore Manne <navam@xilinx.com>
2015-12-01 11:51:28 +05:30
Nava kishore Manne
057fcb7917 Removed version information from all drivers.
Signed-off-by: Nava kishore Manne <navam@xilinx.com>
2015-11-20 16:32:15 +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
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
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
b674bd7b7b emacps: Update copyright year in examples
Update copyright year in example files.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
Acked-by: Nava kishore Manne <nava.manne@xilinx.com>
2015-09-01 11:30:16 +05:30
Harini Katakam
ce83a9b664 emacps: Update upper 32 bits of queue pointer address
For 64 bit address, upper 32 bits should be updated in respective
TX and RX queue pointer registers. For tx, typecast with u32 should not
be there; remove it. For rx, update the correspondign register.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
2015-08-11 15:27:35 +05:30
Nava kishore Manne
dd7b7cb23f emacps: Updated @addtogroup with appropriate version infromation.
Signed-off-by: Nava kishore Manne <navam@xilinx.com>
Acked-by: Srikanth Vemula <svemula@xilinx.com>
2015-08-08 11:09:53 +05:30
Nava kishore Manne
7a47ffd9e8 Removed executable file permission from source code files.
Signed-off-by: Nava kishore Manne <navam@xilinx.com>
Acked-by: Anirudha Sarangi   <anirudh@xilinx.com>
2015-08-03 18:32:57 +05:30
Harini Katakam
4ceb19f1ae emacps: Do not call error handler with an error code zero
BUFFNA is not an error and hence the status bit is cleared by the
driver. But the error handler callback is called with a zero error
code in this case. Correct the same.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
Acked-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-08-02 21:27:20 +05:30
Nava kishore Manne
e35699808d Update Tcl files to support MultiBd and Packaged Bd Designs
Signed-off-by: Nava kishore Manne <navam@xilinx.com>
Acked-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
2015-07-31 16:55:01 +05:30
Nava kishore Manne
607a6324f3 Drivers: Retain @details only in the primary header file.
Removed all other instances.

Signed-off-by: Nava kishore Manne <navam@xilinx.com>
2015-07-13 18:30:19 +05:30
Nava kishore Manne
7a7303eaaf Changed the file format from PC to UNIX 2015-06-23 16:32:15 +05:30
Nava kishore Manne
146cd64c83 Doxygen changes for drivers 2015-06-12 12:50:09 +05:30
Nava kishore Manne
0c9ca599cf Drivers:standalone drivers license changes.
Signed-off-by: Nava kishore Manne <navam@xilinx.com>
2015-05-13 17:05:11 +05:30
Harini Katakam
21b87a69bf emacps: Add missing cache flush
Add cache flush after TX BD terminate entry for generic tx queue so
that it will be reflected.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
2015-03-19 10:41:55 +05:30
Harini Katakam
54c0d04311 emacps: Dont treat used bit set as error
Remove used bit set from TX error interrupt masks as it is not an error.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
2015-03-19 10:41:55 +05:30
Harini Katakam
dc90d1033a emacps: Remove unecessary comment
Remove comment line on top of header for all source files.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
2015-03-16 11:21:48 +05:30
Harini Katakam
93f1486370 emacps: Disable extended mode and correct 64 bit support
The existing changes done under EXTENDED_DESC_MODE should in fact
be done for arch 64. Extended mode needs additional BD words and since
there is no test for it at present, it is disabled.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
2015-03-16 11:21:47 +05:30
Harini Katakam
7aec13f790 emacps: Increase AHB burst size
Increase AHB burst size to 16 bytes to improve performance.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
2015-03-16 11:21:47 +05:30
Harini Katakam
329377a604 emacps: Add support for jumbo frames in example
Enable jumbo option and use updated API's for zynqmp.
Increase array size to support jumbo frames - these can be decreased by user if
not required.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
2015-03-16 11:21:46 +05:30
Harini Katakam
9b8d665400 emacps: Add support for jumbo frames
Add an option to enable jumbo frames for zynqmp.
Add frame size and receive buffer length masks to instance so that they can
be updated dynamically with jumbo enable/disable.
Provide new API XEmacPs_GetRxFrameSize instead of XEmacPs_BdGetLength to
find frame size in case of jumbo frames or otherwise.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
2015-03-16 11:21:46 +05:30
P L Sai Krishna
eda5fe3e10 emacps_v3_0: Removed IAR compilation errors in examples.
This patch removes IAR compilation errors in emacps examples.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2015-02-27 16:12:03 +05:30
Punnaiah Choudary Kalluri
4bacff029a emacps: Use only psu_ prefix for ZynqMP peripheral name
Modifed the .mdd file to use psu_ prefix for zynqMP and removed
pss_ and ps8_ variants.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-02-17 23:58:43 +05:30
Venkata Naga Sai Krishna Kolapalli
ba519a5da3 emacps_v3_0 : Modification history and copyright updated.
This patch updates modification history and
changes copyright year to 2015.

Signed-off-by: Venkata Naga Sai Krishna Kolapalli <venkatan@xilinx.com>
2015-02-17 18:58:30 +05:30
Venkata Naga Sai Krishna Kolapalli
8f10198a9c emacps_v3_0 : Modified example to compile on ARMCC.
This patch removes the compiler error for emacps
example.

Signed-off-by: Venkata Naga Sai Krishna Kolapalli <venkatan@xilinx.com>
2015-02-09 15:59:58 +05:30
Punnaiah Choudary Kalluri
ebc7a9922b emacps:i Add terminating descriptors for unused tx and rx queues
Added terminating descriptors for unused rx and tx queues to avoid
wrong interpretation of the data that resides in the memory location
ponited by the queue base registers.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-02-05 12:01:19 +05:30
Punnaiah Choudary Kalluri
1e0945c742 emacps: Add RxQ1 register address map
Added RxQ1 register address map.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-02-05 12:00:27 +05:30
Kishore Kumar Korathaluri
41643b0b3f emacps : added hsi namespace to xdefine procs.
Signed-off-by: Kishore Kumar Korathaluri <kkorath@xilinx.com>
2015-02-04 15:57:45 +05:30
Punnaiah Choudary Kalluri
a84c7db3c2 emacps: Remove the alignment check for the adjacent BD gap
Removed the alignment check for the adjacent BD gap as the controller
expects all the BDs are organized in linear order.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-02-03 09:38:52 +05:30
Punnaiah Choudary Kalluri
a116cc9f3b emacps: Enable the 64 bit address for A53
Enable the 64 bit address bus for A53

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-02-03 09:38:50 +05:30
Punnaiah Choudary Kalluri
e0f2230210 emacps: Correct the BD alignment for Gem module id 2
Corrected the BD alignment for Gem module id 2

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-02-03 09:38:49 +05:30
Punnaiah Choudary Kalluri
46e0e3d061 emacps: Corrected the extended descriptor macro values
Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-02-03 09:38:47 +05:30
Punnaiah Choudary Kalluri
40b4c18260 emacps: Use single bd to avoid multiple version checks
Modified to use single BD for both rx and tx for avoiding the
multiple version checks and probabaly create another example
for multiple BD processing.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-02-03 09:38:46 +05:30
Punnaiah Choudary Kalluri
96e7deaac4 emacps: Removed unnecessary comments
Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-02-03 09:38:45 +05:30
Punnaiah Choudary Kalluri
46e32da76f 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-02-03 09:38:43 +05:30
Punnaiah Choudary Kalluri
d10f762a49 emacps: Remove PEEP board related code
Remove PEEP board related code.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
2015-02-03 09:38:41 +05:30
Punnaiah Choudary Kalluri
70384a8fc5 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-02-03 09:38:39 +05:30
Om Mishra
305a4ece09 emacps_v3_0: modification has been done for example with respect to version id register
This patch includes modificatin for example of emacps_v3_0 driver
on Zynq and Zynq ultrascale MP

Signed-off-by: Om Mishra <omprakas@xilinx.com>
2015-01-22 18:04:46 +05:30
Om Mishra
46fa02ba07 emacps_v3_0: modification has been done with respect to versioin id register
This patch has modified source code  of emacps_v3_0 driver on
Zynq and Zynq ultrascale MP

Signed-off-by: Om Mishra <omprakas@xilinx.com>
2015-01-22 18:04:46 +05:30
Suneel Garapati
2863b7fd43 emacps : added common namesapce to all common tcl commands.
Signed-off-by: Suneel Garapati <suneel.garapati@xilinx.com>
2015-01-22 11:52:56 +05:30
Kedareswara rao Appana
6973baf6a7 gem: Don't include gem in peripheral test when configured with pcs/pma core
When gem is configured with pcs/pma core for
configuring the clocks it requires additional iic programming
other wise peripheral test won't work.
Don't include gem in peripheral test when configured with pcs/pma core.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
2015-01-21 11:40:14 +05:30
Kishore Kumar Korathaluri
72f3806f11 emacps : added namespace for all HSI TCL commands.
Signed-off-by: Kishore Kumar Korathaluri <kkorath@xilinx.com>
2015-01-08 16:14:47 +05:30
Kishore Kumar Korathaluri
e5f12adfe6 emacps : Modified namespace from HSM to HSI.
Signed-off-by: Kishore Kumar Korathaluri <kkorath@xilinx.com>
2014-12-23 16:09:16 +05:30
Venkata Naga Sai Krishna Kolapalli
1c24c9317d emacps_v3_0 : Removed the error code in xemacps_bd.h
This patch modifies the extra OR operator in xemacps_bd.h code
that caused issue.

Signed-off-by: Venkata Naga Sai Krishna Kolapalli <venkatan@xilinx.com>
2014-12-19 14:46:49 +05:30
Suneel Garapati
0ae197d5e4 all: make source code non-executable
Changes -
find -name "*.h" -exec chmod a-x '{}' ';'
find -name "*.c" -exec chmod a-x '{}' ';'
find -name "*.S" -exec chmod a-x '{}' ';'
find -name "*.ld" -exec chmod a-x '{}' ';'
find -name Makefile -exec chmod a-x '{}' ';'

Signed-off-by: Suneel Garapati <suneel.garapati@xilinx.com>
2014-12-17 15:13:03 +05:30
P L Sai Krishna
a0a72be451 emacps_v3_0: Removed compilation error and warning in emacps.
This patch removes the compilation error and warning in the emacps driver.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2014-12-17 11:40:32 +05:30
Venkata Naga Sai Krishna Kolapalli
de4c37ded0 emacps_v3_0 : Modifies driver logic in xemacps_bd.h
This patch modifies the logic change caused by #ifdef. Corrected to #if.

Signed-off-by: Venkata Naga Sai Krishna Kolapalli <venkatan@xilinx.com>
2014-12-17 10:38:25 +05:30