arm-trusted-firmware/plat
Soby Mathew 7b56928a12 Juno: Change the Firmware update detect mechanism
Previously, Juno used to depend on the SSC_GPRETN register to inform
about the reset syndrome. This method was removed when SCP migrated
to the SDS framework. But even the SDS framework doesn't report the
reset syndrome correctly and hence Juno failed to enter Firmware
update mode if BL2 authentication failed.

In addition to that, the error code populated in V2M_SYS_NVFLAGS register
does not seem to be retained any more on Juno across resets. This could
be down to the motherboard firmware not doing the necessary to preserve
the value.

Hence this patch modifies the Juno platform to use the same mechanism to
trigger firmware update as FVP which is to corrupt the FIP TOC on
authentication failure. The implementation in `fvp_err.c` is made common
for ARM platforms and is moved to the new `arm_err.c` file in
plat/arm/common folder. The BL1 and BL2 mmap table entries for Juno
are modified to allow write to the Flash memory address.

Change-Id: Ica7d49a3e8a46a90efd4cf340f19fda3b549e945
Signed-off-by: Soby Mathew <soby.mathew@arm.com>
2018-03-08 09:44:05 +00:00
..
arm Juno: Change the Firmware update detect mechanism 2018-03-08 09:44:05 +00:00
common Merge pull request #1292 from danh-arm/dh/spurious-dep-warn 2018-03-03 13:26:18 +00:00
compat Do not enable SVE on pre-v8.2 platforms 2017-11-30 17:45:23 +00:00
hisilicon Update ULL() macro and instances of ull to comply with MISRA 2018-02-27 17:05:51 +00:00
mediatek Merge pull request #1287 from davidcunado-arm/dc/fix_misra 2018-02-28 09:48:35 +00:00
nvidia/tegra Merge pull request #1239 from arve-android/trusty-fixes 2018-03-07 10:43:56 +00:00
qemu Merge pull request #1288 from michpappas/tf-issues#558_qemu_separate_code_and_data 2018-03-05 10:52:41 +00:00
rockchip Update ULL() macro and instances of ull to comply with MISRA 2018-02-27 17:05:51 +00:00
rpi3 Disable workaround for CVE-2017-5715 on unaffected platforms 2018-01-29 09:58:56 +00:00
socionext/uniphier Merge pull request #1224 from masahir0y/gzip 2018-02-06 05:12:28 +00:00
xilinx/zynqmp Update ULL() macro and instances of ull to comply with MISRA 2018-02-27 17:05:51 +00:00