Commit graph

573 commits

Author SHA1 Message Date
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
Shakti Bhatnagar
092cc995df nandpsu_v1_0: Correct the length to be read for signature and version when No OOB enabled.
Modified the number of bytes of data to be read for signature and version when
NO OOB option is enabled.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-03-30 10:54:12 +05:30
Shakti Bhatnagar
33888ecc4d nandpsu_v1_0: Modified number of bytes to be read for bbt.
Modified number of bytes to be read for bbt in oob and bbt with signature
and version for no oob option. This change is done kept in mind that it
should support flashes with small page size as well.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-03-27 17:45:17 +05:30
Sarat Chand Savitala
4f84389e6c sw_apps:zynqmp_fsbl: Flash load address for SD
For file system based devices, flash offset address
(location of image) should be independednt of multiboot
and should always be 0.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-03-26 21:40:07 +05:30
Shakti Bhatnagar
23469c67ec nandpsu_v1_0: Modified InitBbtDesc function for OOB and No OOB feature.
Setting BBT option at the beginning and checking afterwards to set
the offset for signature and version.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-03-26 21:04:45 +05:30
Shakti Bhatnagar
f22adb128b nandpsu_v1_0: Ensure ecc error interrupts are not masked in fifo read mode for all the packets.
Performing Read modify write operation for the interrupt status enable
and interrupt status register in readpage function instead of directly
writing to fix the masking error interrupts in case ecc enabled.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-03-26 21:04:45 +05:30
Shakti Bhatnagar
72d11a1a8a nandpsu_v1_0: Modified Ecc Address Calculation based upon the oob size.
If oob size is less than 64 bytes, ecc position should start from 0 position
of oob area, else should be at the end of the oob area.
Keeping ecc start position in alligned with the Linux nand base ecc layout.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
2015-03-26 21:04:44 +05:30
Bhavik Ameta
8764622019 sw_services:xilsecure_v1_0: changed RSA api
Changed RSA api after code review
2015-03-26 11:19:34 +05:30
Bhavik Ameta
ad78049acf sw_services:xilsecure_v1_0: indentation changes after code review
Changed indentation after code review.
2015-03-26 11:19:33 +05:30
Bhavik Ameta
888308d4a2 sw_services:xilsecure_v1_0: updated tcl file
changed include directories in tcl file
2015-03-26 11:19:33 +05:30
Kinjal Pravinbhai Patel
b48c668c9a sw_apps: openamp_rpc_demo: modified the code and license information
This patch modifies the code as per the opensource git changes and
updates the license information

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
2015-03-25 19:02:55 +05:30
Kinjal Pravinbhai Patel
c8583fd9f7 sw_apps: openamp_echo_test: modified the code and license information
This patch modifies the code as per the opensource git changes and
updates the license information

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
2015-03-25 19:02:54 +05:30
Kinjal Pravinbhai Patel
2eff0eedbb sw_apps: openamp_matrix_multiply: modified the code and license information
This patch modifies the code as per the opensource git changes and
updates the license information

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
2015-03-25 19:02:54 +05:30
Kinjal Pravinbhai Patel
0a34042255 sw_services: Openamp: modified the code and license
This patch modifies the code according to wendy's openamp changes
and also updates the license information

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
2015-03-25 19:02:54 +05:30
Kinjal Pravinbhai Patel
1da3451cff sw_apps: FreeRTOS hello world app: modified tcl file
This patch deletes the *.mss file and modified the tcl file
to prevent the  error in SDK log when any other processor or OS
is selected in create application project GUI of SDK

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
2015-03-25 14:21:18 +05:30