Commit graph

243 commits

Author SHA1 Message Date
Soren Brinkmann
368c173e5d PMUFW: lscript: Remove redundant blank lines
Sync with PMUFW sources.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
2015-06-17 14:24:08 +05:30
Sarat Chand Savitala
fd800dfb46 sw_apps:zynqmp_fsbl: Removed redundant calls to Xil_DCacheFlush()
Xil_DCacheDisable() function internally has call to Xil_DCacheFlush().
Hence removing redundant calls to Xil_DCacheFlush from FSBL.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-06-10 20:36:58 +05:30
Sarat Chand Savitala
4766bcb9f6 sw_apps:zynqmp_fsbl: Registering exception handlers
Exception handlers are now registered unconditionally for both A53 and R5
Removed enabling of IRQ from FSBL(to be enabled in user application)

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-06-10 20:36:57 +05:30
Sarat Chand Savitala
83eaa550d6 sw_apps:zynqmp_fsbl: Updated release version to 2015.3
Updated release version from 2015.1 SW Beta2 to 2015.3

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-06-10 20:36:56 +05:30
Sarat Chand Savitala
97bbdf3d03 sw_apps:zynq_fsbl: Updated release version to 2015.2
Updated release version from 2015.1 to 2015.2

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-05-22 12:20:02 +05:30
Nava kishore Manne
1726f14574 lib:sw_apps:standalone drivers license changes
Signed-off-by: Nava kishore Manne <navam@xilinx.com>
2015-05-16 14:37:24 +05:30
Sarat Chand Savitala
2374e5de1c sw_apps:zynqmp_fsbl: xilsecure library selection by default
While creating new FSBL+BSP project, made xilsecure library
to be selected by default. This avoids compilation errors
when FSBL project is created.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-05-14 07:55:03 +05:30
Sarat Chand Savitala
d7d271eb97 sw_apps:zynqmp_fsbl: Fix to make decryption work when authentication disabled
When authentication of partitions is not enabled, decryption is failing.
This patch fixes this issue.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-05-05 23:29:41 +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
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
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
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
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
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
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
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
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
Peter Crosthwaite
f325b4c8d8 fsbl qspi: Fix dummy mode in examples
QSPI HW doesn't actually care what the SPI mode is for the dummy phase
of flash commands. We have confirmed this with randomized testing.
However due to a core limitation of QEMU it is expected to match the
mode of the address phase for QEMU.

So since QEMU is the only platform that cares, set the dummy mode to
QEMUs expectation.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
2015-03-25 12:56:43 +05:30
Sarat Chand Savitala
dde36d829d sw_apps:zynqmp_fsbl: Added ATF handoff params and PMU FW download support
Provided support to pass handoff parameters to ATF
which it will use to load further partitions.
Provided support to load PMU firmware from FSBL.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-03-24 23:03:50 +05:30
Sarat Chand Savitala
e3aad72bc2 sw_apps:zynqmp_fsbl: disable cache during ECC initialization
Disabling cache ensures proper initialization of ECC

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-03-21 20:50:12 +05:30
Kinjal Pravinbhai Patel
659a5ebfc2 openamp_rpc_demo: modified baremetal and platform code
This patch modifies the baremetal code to include ipi related code.
It moves the baremetal specific platform API from platform.c to
baremetal.c. It also moves the platform specific information from
baremetal.h to platform.h. The patch also updates license information
in linker script

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
2015-03-21 17:51:28 +05:30
Kinjal Pravinbhai Patel
07648bb90b openamp_echo_test: modified baremetal and platform code
This patch modifies the baremetal code to include ipi related code.
It moves the baremetal specific platform API from platform.c to
baremetal.c. It also moves the platform specific information from
baremetal.h to platform.h. The patch also updates license information
in linker script

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
2015-03-21 17:51:28 +05:30
Kinjal Pravinbhai Patel
f8ebe0ef56 openamp_matrix_multiplication: modified baremetal and platform code
This patch modifies the baremetal code to include ipi related code.
It moves the baremetal specific platform API from platform.c to
baremetal.c. It also moves the platform specific information from
baremetal.h to platform.h. The patch also updates license information
in linker script

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
2015-03-21 17:51:28 +05:30
Kinjal Pravinbhai Patel
83649a56f5 sw_apps: modified openamp rpc demo application
This patch includes platform specific functions to platform.c and
platform.h which are being called by openamp library. The patch also
removes Disable DCache API from the application which was being used as a
workaround for a cache issue.

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
2015-03-19 10:34:19 +05:30
Kinjal Pravinbhai Patel
ef031f7e2a sw_apps: modified openamp echo test application
This patch includes platform specific functions to platform.c and
platform.h which are being called by openamp library. The patch also
removes Disable DCache API from the application which was being used as a
workaround for a cache issue.

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
2015-03-19 10:34:18 +05:30
Kinjal Pravinbhai Patel
b020c90a28 sw_apps: modified openamp matrix_multiply application
This patch includes platform specific functions to platform.c and
platform.h which are being called by openamp library. The patch also
removes Disable DCache API from the application which was being used as a
workaround for a cache issue.

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
2015-03-19 10:34:18 +05:30
Kinjal Pravinbhai Patel
e395d1bf1b sw_apps: FreeRTOS hello world application is added
This patch adds FreeRTOS helloworld application to be built with FreeRTOS BSP for cortex-R5

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
2015-03-16 22:44:13 +05:30
Kinjal Pravinbhai Patel
f71d9971ae lib: sw_apps: added rpc_demo test for openamp R5
This patch includes rpc_demo test application which should be built
with R5 openamp library for creating baremetal slave application
for openamp

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
2015-03-16 15:37:15 +05:30
Kinjal Pravinbhai Patel
a541441456 lib: sw_apps: added matrix_multiply test for openamp R5
This patch includes matrix_multiply test application which should be built
with R5 openamp library for creating baremetal slave application
for openamp

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
2015-03-16 15:37:14 +05:30
Kinjal Pravinbhai Patel
979a40a904 lib: sw_apps: added echo-test for openamp R5
This patch includes echo test application which should be built
with R5 openamp library for creating baremetal slave application
for openamp

Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com>
2015-03-16 15:37:14 +05:30
Srinivas Goud
f0f16cc511 sw_apps:zynqmp_fsbl: Added GQSPI driver changes
Added GQSPI driver changes for
QSPI 24Bit and 32Bit boot modes
Added 32Bit boot mode

Signed-off-by: Srinivas Goud <srinivas.goud@xilinx.com>
2015-03-13 18:01:44 +05:30
Jyotheeswar Reddy
66409812e8 sw_apps:zynqmp_pmufw: Adding initial set of files with PM
This is the first functional set of files with
-Power Management
-Error Handlers
-Basic Timer based Scheduler

Signed-off-by: Jyotheeswar Reddy <jyothee@xilinx.com>
2015-03-13 10:45:54 +05:30
Sarat Chand Savitala
370b4827f2 sw_apps:zynqmp_fsbl: Removed unnecessary files and set compiler options
Made changes in FSBL tcl file so that unnecessary files are deleted
from build. Since HSI and SDK create their own Makefile,
static Makefile is also removed from build. Also based on CPU,
compiler optins are set to match to those set in SDK.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-03-12 23:30:19 +05:30
Sarat Chand Savitala
990cca15db sw_apps:zynqmp_fsbl: Added eMMC bootmode support in FSBL
eMMC uses same driver as SD.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-03-12 18:15:25 +05:30
Peter Crosthwaite
9efeaa8f17 zynq_fsbl: Auto-populate -mcpu argument
FSBL has R5 specific behaviours so -mcpu must be passed to the build.
Automatically do this on app generation.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
2015-03-12 18:06:09 +05:30
Sarat Chand Savitala
4f2925975f sw_apps:zynqmp_fsbl: Added fallback and multiboot functionality
Adding this feature in FSBL enables BootROM to search for
next available image in the boot devices. Also user can
jump to a different image with the help of multiboot.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-03-12 10:25:11 +05:30
Sarat Chand Savitala
918e66a41a sw_apps:zynqmp_fsbl: Added power on reset bit fields
While releasing resets, power on reset bit fields of
the corresponding CPU core also considered now.
These bit fields are added in RST_FPD_APU register from RTL 5.0.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-03-11 14:33:53 +05:30
Sarat Chand Savitala
208a4977d0 sw_apps:zynqmp_fsbl: Fix to address change in arguments to f_mount
Signature for function f_mount() is changed.
Now three arguments are expected (earlier had two arguments).
In FSBL code, now f_mount() is called with new set of arguments.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-02-27 18:05:23 +05:30
Sarat Chand Savitala
c402428673 sw_apps:zynqmp_fsbl: Removed the RTL version reference
All the references to the RTL version are removed in the FSBL code.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-02-26 15:03:05 +05:30
Sarat Chand Savitala
58335dabbd sw_apps:zynqmp_fsbl: Removed PMU Firmware file from FSBL
HSI API is now also generating PMU configuration source file
which is not needed in FSBL. Hence deleting it.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-02-26 14:33:37 +05:30
Sarat Chand Savitala
c719cebbac sw_apps:zynqmp_fsbl: Change in FSBL banner
FSBL banner is changed and is displayed independent of debug level

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-02-23 14:48:35 +05:30
Sarat Chand Savitala
52e9d348e4 sw_apps:zynqmp_fsbl: Changes in naming for psu
Changes done to replace all ps8 and pss references to psu.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-02-18 19:57:13 +05:30
Sarat Chand Savitala
9b05c2842a sw_apps:zynq_fsbl: optimised the file deletion code
Replaced the multiple file deletions with a loop to delete files

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-02-18 17:53:48 +05:30
Jyotheeswar Reddy
39f60018d1 sw_apps:pmufw: Adding initial set of files for PMU Firmware App
This initial version has the basic set of files required to
build a basic firmware for PMU Microblaze in ZynqMP

Signed-off-by: Jyotheeswar Reddy <jyothee@xilinx.com>
2015-02-18 17:32:33 +05:30
Sarat Chand Savitala
4a0709ace1 sw_apps:zynqmp_fsbl: Update SD boot mode
Changed the SD (SD0) boot mode as per bootmode pin encoding from 5 to 3.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-02-17 21:26:03 +05:30