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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
This change is done to match the change in the hardware registers
used to enable the RSA authentication during boot.
Also a small logical error is corrected.
Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>