Commit graph

73 commits

Author SHA1 Message Date
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
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
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
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
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
Sarat Chand Savitala
8b1c93702d sw_apps:zynqmp_fsbl: Changes in FSBL to match register changes
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>
2015-02-17 21:26:03 +05:30
Sarat Chand Savitala
b6aa8be915 sw_apps:zynqmp_fsbl: Change to copy ps init files in FSBL
This change is to handle the PS init files copying.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-02-17 21:26:03 +05:30
Kishore Kumar Korathaluri
6024205aba zynqmp_fsbl : added common namespace to all common tcl commands.
Signed-off-by: Kishore Kumar Korathaluri <kkorath@xilinx.com>
2015-01-22 11:52:54 +05:30
Sarat Chand Savitala
e5bc1ff112 sw_apps:zynqmp_fsbl: Publishing zynqmp FSBL to HEAD of embeddedsw
Initial publishing of zynqmp_fsbl in the embeddedsw repo.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
2015-01-08 09:01:51 +05:30