PMU FW if present, is now handed off immediately after its load and validation.
Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
Acked-by: Krishna Chaitanya Patakamuri <kpataka@xilinx.com>
Support added to handoff to R5 applications after thery are loaded.
This feature can be turned ON by using conditional switch.
Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
Acked-by: Krishna Chaitanya Patakamuri <kpataka@xilinx.com>
Changed the location of temporary ddr address definition.
This address is for storing PL bitstream temporarily.
User can change this address till support is provided in bootgen
(for load address configuration for PL).
Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
Acked-by: Krishna Chaitanya Patakamuri <kpataka@xilinx.com>
Added checks to power up power islands, if required, before first access.
Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
Acked-by: Krishna Chaitanya Patakamuri <kpataka@xilinx.com>
This fix stores FSBL's ATF Handoff parameters at fixed address towards
end of OCM so that ATF can avoid conflict with its sections.
Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
For SD and eMMC, BIN filenames now follow convention BOOTXXXX.BIN.
FSBL now updated as per this change.
Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
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>
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>
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>
When authentication of partitions is not enabled, decryption is failing.
This patch fixes this issue.
Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
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>
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>
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>