Commit graph

587 commits

Author SHA1 Message Date
Harini Katakam
daedbcdf08 qspipsu: Change comment about bus width of dummy entry
The recommendation from design is to have bus width of dummy entry =
bus width of address phase (whether this is 1, 2 or 4).
This code will remain same irrespective of QEMU. Hence change the comment.

Signed-off-by: Harini Katakam <harinik@xilinx.com>
2015-05-04 10:57:42 +05:30
P L Sai Krishna
b2ef81cba0 qspipsu_v1_1: Added returns for failure cases in examples.
This patch add returns for failure cases in examples.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2015-05-04 10:57:41 +05:30
P L Sai Krishna
6fcd63974f qspipsu_v1_1: Modified the code according to MISRAC.
This patch modifies QSPIPSU source code according to
MISRAC-2012.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2015-05-04 10:57:39 +05:30
Sarat Chand Savitala
380e426371 sw_apps:zynqmp_fsbl: Changes in FSBL as per the current xilsecure library
This patch does the changes in FSBL to match the signature changes of
few functions in xilsecure library.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-04-27 17:37:44 +05:30
naga sureshkumar relli
e21adc57a5 canfd_v1_0: Fix for compilation errors in canfd driver
This patch fixes the compilation errors in canfd
driver.

Signed-off-by: naga sureshkumar relli <nagasure@xilinx.com>
2015-04-27 17:26:51 +05:30
Soren Brinkmann
4b7afd3d4e xilpm: Remove stdint.h
Migrate to the standard standalone types.

Scripted change:
  find -type f -name "*.[ch]" -exec sed -i -e 's/uint32_t/u32/g' -e 's/uint8_t/u8/g' -e 's/uint16_t/u16/g' '{}' ';'
  find -type f -name "*.[ch]" -exec sed -i -e 's/int32_t/s32/g' -e 's/int8_t/s8/g' -e 's/int16_t/s16/g' '{}' ';'

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
2015-04-24 11:57:12 +05:30
Soren Brinkmann
1a875cb79f xilpm: Remove pm_this_cpuid
Remove this unused macro.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
2015-04-24 11:57:11 +05:30
Soren Brinkmann
a8b9765edc xilpm: Move common parts to common header
The pm_client.h headers hold processor specific information. Move common
information to the common header.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
2015-04-24 11:57:11 +05:30
Soren Brinkmann
92747ad56a xilpm example: Remove GicEnableInterrupt()
The function is just a trivial wrapper => inline.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
2015-04-24 11:57:11 +05:30
Soren Brinkmann
fcd1ad8d4e xilpm example: Remove gic_setup_handler()
The function is just a trivial wrapper and used once only. Just inline
it.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
2015-04-24 11:57:10 +05:30
Soren Brinkmann
bb2e0bdb77 xilpm: Clean up
Fix some white space and comment issues.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
2015-04-24 11:57:10 +05:30
Jyotheeswar Reddy
4350a1fa00 sw_apps:zynqmp_pmufw: Clear IPI0 status register during core init
swbeta2 commit 1b173007d1cc009bffeb2969a5a5bacc533647db

IPI0 is used by PMUFW for PM requests and the mask is used for determining
 the Master. There are chances of IPIs being triggered before FW Init but
un-handled or even bits that are not cleared by ROM, causing a corruption
of the ISR mask. So PMUFW should cleanup these bits during startup

Signed-off-by: Jyotheeswar Reddy <jyothee@xilinx.com>
2015-04-24 11:57:10 +05:30
Soren Brinkmann
12c2e29937 PMUFW: Release RPU island reset on power up
swbeta2 commit 572db0eb0f48b4f7f5684abea721c6fac92ccdee

When powering up the RPU island the individual RPU core resets as well
as the reset for the whole island are asserted. To ensure proper resume,
the island reset needs to be released when the island is powered up.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
2015-04-24 11:57:09 +05:30
Jyotheeswar Reddy
6fcdc41593 sw_apps:zynqmp_pmufw: Syncup PMUFW App with PMUFW Git Repo
swbeta2 commit ae6d9a98edb99ce4c51c85bce4872a9f11c7eb74

PMU Firmware is being updated to the latest code base available
in the pmufw git repo. Major changes are:
	-Error Management is enabled by default
	-PM Module bug fixes
	-Code formatting changes
	-PMU ROM handlers use ROM Table instead of
	 individual handler addresses
	-Bug fixes in scheduler
	-FW_IS_PRESENT bit is set if PM is enabled

Signed-off-by: Jyotheeswar Reddy <jyothee@xilinx.com>
2015-04-24 11:57:09 +05:30
Jyotheeswar Reddy
22b06a8e40 lib:xilpm:example: Use TCM-A for saving context
swbeta2 commit 90e16f97eb510ea91702729bf38bc7c7d5d62dba

FSBL inits the TCMs that are used by R5 Apps. We have vectors in TCM-A
and that  data is passed on to FSBL and it is initialized. So using the
same TCM block as vectors ensures that we use an intialized memory and
avoids ECC errors due to RMW or Reads of uninitialized memory locations.
In JTAG mode, TCM still needs to be initialized using XSDB.

Signed-off-by: Jyotheeswar Reddy <jyothee@xilinx.com>
2015-04-24 11:57:08 +05:30
Soren Brinkmann
1eca099af7 xilpm: self-suspend: Set VINITH on R5
swbeta2 commit 8e5bf013a42c56c713efcfa1ab00c78e648b2333

To ensure we resume at the correct vector address, set the VINITH bit
accordingly.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
2015-04-24 11:57:08 +05:30
Soren Brinkmann
879cc61c83 xilpm: self-suspend: Set RVBAR on A53
swbeta2 commit 7ebba935262ebff0df604fd560f4a023d32a7c72

To ensure the application is resumed at the vector table, set the RVBAR
accordingly.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
2015-04-24 11:57:08 +05:30
Jyotheeswar Reddy
ef6ec50aa5 libs:xilpm_v1_0: Adding Power Management Library for ZynqMP
swbeta2 commit 8e824dfe3b169461916c0190194a3eb5a7810b1a

xilpm provides a set of APIs which can be used by standalone applications
to call in PMUFW power management APIs via IPI. Self-suspend example is
provided to demonstrate the usage of this library.

Signed-off-by: Jyotheeswar Reddy <jyothee@xilinx.com>
2015-04-24 11:57:08 +05:30
Sarat Chand Savitala
91f8d3bf88 sw_apps:zynqmp_fsbl: Added support for image decryption
Support for decryption of images added.
Authentication and decryption now use secure library APIs.
csu dma driver APIs are used now.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
Acked-by: Krishna Chaitanya Patakamuri <kpataka@xilinx.com>
2015-04-22 11:50:09 +05:30
Venkata Naga Sai Krishna Kolapalli
2ffa12ed7c gpiops_v3_1 : Convert 3-line comments to 1-liners.
Driverwide, scripted change to convert 3-line
comments to single line comments.

Signed-off-by: Venkata Naga Sai Krishna Kolapalli <venkatan@xilinx.com>
2015-04-22 11:48:33 +05:30
Venkata Naga Sai Krishna Kolapalli
3357570898 uartps_v3_1 : Convert 3-line comments to 1-liners
Driverwide, scripted change to convert 3-line comments
to single line comments.

Signed-off-by: Venkata Naga Sai Krishna Kolapalli <venkatan@xilinx.com>
2015-04-22 11:30:15 +05:30
Venkata Naga Sai Krishna Kolapalli
80408dd5fd uartps_v3_1 : Modified interrupt example to support ZynqMP.
This patch adds support to Zynq Ultrascale+ MP for interrupt
example.

Signed-off-by: Venkata Naga Sai Krishna Kolapalli <venkatan@xilinx.com>
2015-04-22 11:30:14 +05:30
P L Sai Krishna
5d9aa73bd2 qspipsu_v1_0: Enabled cache in examples.
This patch enables the cache in examples and modified the buffer
alignment to 64-byte.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2015-04-22 11:18:24 +05:30
P L Sai Krishna
1b91e1c61d qspipsu_v1_1: Added Cache Enable support for qspipsu.
This patch does following things.
1. Added Cache support.
2. Modified TXD_DEPTH to 64.
3. Enabled RXEMPTY interrupt.
4. Modified the param passed to XQspiPsu_ReadRxFifo API to
RxThreshold*4, since it is expecting number of bytes to read.
5. Used Qspipsu Instance buffers in Interrupt handler rather
than Msg buffers.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2015-04-22 11:18:23 +05:30
P L Sai Krishna
42cc06acb2 qspipsu_v1_1: Added new version for qspipsu.
This patch add new version 1.1 for qspipsu and deprecates
older version.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2015-04-22 11:18:23 +05:30
naga sureshkumar relli
42234e4dd3 canfd_v1_0 : Added initial version for CanFd Driver.
This patch adds support for CanFd soft ip

Signed-off-by: naga sureshkumar relli <nagasure@xilinx.com>
2015-04-20 18:19:29 +05:30
Venkata Naga Sai Krishna Kolapalli
0706340b26 gpiops_v3_1 : Corrected reset values of GPIO banks.
This patch corrects the GPIO's banks interrupt type
registers reset values.

Signed-off-by: Venkata Naga Sai Krishna Kolapalli <venkatan@xilinx.com>
2015-04-20 14:36:16 +05:30
Venkata Naga Sai Krishna Kolapalli
19360973a6 gpiops_v3_1 : Add support for Zynq Ultrascale+ MP.
This patch adds support for Zynq Ultrascale+ MP
for driver source files.

Signed-off-by: Venkata Naga Sai Krishna Kolapalli <venkatan@xilinx.com>
2015-04-20 14:36:16 +05:30
Venkata Naga Sai Krishna Kolapalli
5e8e941ca9 gpiops_v3_1 : Deprecated old v3 and created new v3.1
This patch deprecates gpiops_v3 and created new
gpiops_v3_1.

Signed-off-by: Venkata Naga Sai Krishna Kolapalli <venkatan@xilinx.com>
2015-04-20 14:36:15 +05:30
Venkata Naga Sai Krishna Kolapalli
b016d1f766 uartps_v3_1 : Removed status register bit defines.
This patch removes the status register bit definations
that are not available on the RTL.

Signed-off-by: Venkata Naga Sai Krishna Kolapalli <venkatan@xilinx.com>
2015-04-20 13:10:46 +05:30
Venkata Naga Sai Krishna Kolapalli
520e483d61 uartps_v3_1 : Modified code to support latest RTL changes.
This patch adds support code for Zynq Ultrascale+ MP

Signed-off-by: Venkata Naga Sai Krishna Kolapalli <venkatan@xilinx.com>
2015-04-20 13:10:45 +05:30
Venkata Naga Sai Krishna Kolapalli
f43b10aa77 uartps_v3_1 : Created new v3.1 of uartps.
This patch creates new uartps_v3_1 driver.

Signed-off-by: Venkata Naga Sai Krishna Kolapalli <venkatan@xilinx.com>
2015-04-20 13:10:45 +05:30
Shakti Bhatnagar
8fc5ca745a nandpsu_v1_0: MISRA C fixes for driver files.
This patch has changes in driver code to fix MISRA C voilations.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-04-20 12:48:07 +05:30
Shakti Bhatnagar
67b871021e nandpsu_v1_0: Remove unnecessary DMA Buffer Boundary Register configuration.
Removed the configuration of DMA Buffer Boundary register in WriteSpareBytes API
as the driver uses oob size as pkt size and thus configuring DMA Buffer
Boundary Register has no effect.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-04-20 12:45:24 +05:30
Shakti Bhatnagar
3580a10ae2 nandpsu_v1_0: Fixed triggering of assert call when block reaches max block.
Since the check for the block to have reached the end block was at the end of the loop,
thus assert call triggering could happen if the block crosses the max block limit,
making the driver to hang. Thus to fix the triggering of assert call,
the check for the block to have reached the max block is being done at the start of
the loop in XNandPsu_CalculateLength function.
The u32 typecasting for the variable OffsetVar has been removed and the data type for
the variable TempLen has been changed to u64 as for higher block numbers the value for
these variables will require u64 datatype otherwise corrupted value will get stored
which will lead to wrong calculation of block.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-04-20 12:45:24 +05:30
Nava kishore Manne
c61ab67a49 nandpsu_v1_0: Removed unnecessary Changes.
This reverts commit 8922aa1818dea2b01f2eb6b6fbb388619a9d9c5a.
2015-04-20 12:24:14 +05:30
P L Sai Krishna
2d3200d50f devcfg_v3_3: Corrected XDcfg_ReadMultiBootConfig macro.
This patch modifies XDcfg_ReadMultiBootConfig macro, passed
2 arguments for XDcfg_ReadReg.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2015-04-18 22:22:38 +05:30
P L Sai Krishna
fc2e15e185 devcfg_v3_3: Added new version for devcfg.
This patch adds new version 3.3 and deprecates older version
3.2 for devcfg.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2015-04-18 22:22:38 +05:30
Sarat Chand Savitala
b2a9c67a13 sw_apps:zynq_fsbl: Corrected logic to clear DMA done count for PCAP
Corresponding fields in the devcfg.STATUS register are written to,
for clearing DMA done count.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-04-16 15:35:42 +05:30
Sarat Chand Savitala
1e8599957a sw_apps:zynqmp_fsbl: Changes in FSBL to sync HEAD with beta2 branch
These changes were present in master-sdk-beta2 and also need to be
applied to master as well.
Changes done are:
- Macro name change in QSPI for PSU naming change
- Workaround for QEMU in QSPI32 dummy mode

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-04-16 15:31:05 +05:30
P L Sai Krishna
411bfef505 xilskey_v2_1: Initialised RSAKeyReadback value with zero
This patch initialises RSAKeyReadback value with zero's since
if RSA key is read with XSK_EFUSEPS_ENABLE_RSA_KEY_HASH as FALSE
then it will return zero.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
2015-04-07 00:11:25 +05:30
Sarat Chand Savitala
de365de89b sw_apps:zynqmp_fsbl: Check for supported OS platform
This patch adds call to check the supported OS platform when
application is Zynq MP FSBL.
This enables correct error message to be displayed when trying
to create FSBL project with OS platform other than Standalone.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-04-06 21:23:06 +05:30
Venkata Naga Sai Krishna Kolapalli
ca82675069 xilskey_v2_1 : Modified xilskey files to fix warnings.
This patch modifies files to fix warnings that got
generated when -Wextra flag was used.

Signed-off-by: Venkata Naga Sai Krishna Kolapalli <venkatan@xilinx.com>
2015-04-03 18:22:40 +05:30
Venkata Naga Sai Krishna Kolapalli
22b5585a09 xilskey_v2_1 : created new v2.1 version for xilskey.
This patch deprecates the old v2.0 version and created
new v2.1 version for xilskey library.

Signed-off-by: Venkata Naga Sai Krishna Kolapalli <venkatan@xilinx.com>
2015-04-03 18:22:21 +05:30
Sarat Chand Savitala
f43d267e1b sw_apps:zynqmp_fsbl: Made compiler optimization configurable with HSI
Removing compiler optimization level and debug level flags from FSBL tcl file.
These flags can be passed on as arguments while compiling using make.
O2 optimization will be required while building FSBL to reduce the
size of FSBL and hence to accomodate ATF in OCM.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-04-02 10:53:55 +05:30
Shakti Bhatnagar
4c2aa9292c nandpsu_v1_0: Removed workaround for qemu in driver.
Removed the workaround for qemu in driver code as qemu now supports
ecc and bad block table handling.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-04-01 08:34:46 +05:30
Kinjal Pravinbhai Patel
9a7de0975b driver: ttc: change in low level example
This patch modifies ttc low level example so that example passes in a short
time.

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
2015-03-31 15:25:45 +05:30
VNSL Durga
da0acf43dc ZDMA: Modified example of ZDMA
Size of data transfer is modified from 1GB to 1MB

Signed-off-by: VNSL Durga <vnsldurg@xilinx.com>
2015-03-31 12:23:01 +05:30
VNSL Durga
1e13788ab4 ZDMA: Modified mdd file according to hardware design
Signed-off-by: VNSL Durga <vnsldurg@xilinx.com>
2015-03-31 12:23:01 +05:30
Kinjal Pravinbhai Patel
381054af18 sw_services: openamp: change in makefile
This patch modifies openamp Makefile to fix the compilation error
produced in windows

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
2015-03-31 12:03:29 +05:30