arm-trusted-firmware/plat/arm/board/fvp
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
..
aarch32 FVP: Add support for multi-threaded CPUs 2017-08-01 14:33:47 +01:00
aarch64 FVP: Add support for multi-threaded CPUs 2017-08-01 14:33:47 +01:00
drivers/pwrc Merge pull request #1282 from robertovargas-arm/misra-changes 2018-02-28 18:53:30 +00:00
fdts FVP: Add TB_FW_CONFIG and HW_CONFIG 2018-02-26 16:31:11 +00:00
include Fix FVP DRAM2 size 2018-03-02 13:41:32 +00:00
sp_min Remove sp_min functions from plat_common.c 2018-03-02 16:41:18 +00:00
tsp TSP: Support multi-threading CPUs on FVP 2017-10-04 10:34:56 +01:00
fvp_bl1_setup.c Juno: Change the Firmware update detect mechanism 2018-03-08 09:44:05 +00:00
fvp_bl2_el3_setup.c bl2-el3: Add BL2 at EL3 support in FVP 2018-01-18 09:55:11 +00:00
fvp_bl2_setup.c Dynamic cfg: MISRA fixes 2018-02-26 16:31:11 +00:00
fvp_bl2u_setup.c Fix MISRA rule 8.4 Part 1 2018-02-28 17:19:55 +00:00
fvp_bl31_setup.c Dynamic cfg: MISRA fixes 2018-02-26 16:31:11 +00:00
fvp_common.c Fix MISRA rule 8.4 Part 1 2018-02-28 17:19:55 +00:00
fvp_def.h FVP: Allow building for DynamIQ systems 2018-02-28 15:05:35 +00:00
fvp_io_storage.c ARM Platforms: Load HW_CONFIG in BL2 2018-02-26 16:31:11 +00:00
fvp_pm.c Fix MISRA rule 8.4 Part 1 2018-02-28 17:19:55 +00:00
fvp_private.h Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
fvp_security.c Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
fvp_stack_protector.c Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
fvp_topology.c Fix MISRA rule 8.4 Part 1 2018-02-28 17:19:55 +00:00
fvp_trusted_boot.c Fix MISRA rule 8.4 Part 1 2018-02-28 17:19:55 +00:00
platform.mk Juno: Change the Firmware update detect mechanism 2018-03-08 09:44:05 +00:00