mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-21 20:14:29 +00:00
feat(fwu): initialize FWU driver in BL2
Initialized FWU driver module in BL2 component under build flag PSA_FWU_SUPPORT. Change-Id: I08b191599835925c355981d695667828561b9a21 Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
This commit is contained in:
parent
0ec3ac60d8
commit
396b339dc2
3 changed files with 15 additions and 1 deletions
6
Makefile
6
Makefile
|
@ -746,6 +746,10 @@ ifeq ($(MEASURED_BOOT),1)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(PSA_FWU_SUPPORT),1)
|
||||||
|
$(info PSA_FWU_SUPPORT is an experimental feature)
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq (${ARM_XLAT_TABLES_LIB_V1}, 1)
|
ifeq (${ARM_XLAT_TABLES_LIB_V1}, 1)
|
||||||
ifeq (${ALLOW_RO_XLAT_TABLES}, 1)
|
ifeq (${ALLOW_RO_XLAT_TABLES}, 1)
|
||||||
$(error "ALLOW_RO_XLAT_TABLES requires translation tables library v2")
|
$(error "ALLOW_RO_XLAT_TABLES requires translation tables library v2")
|
||||||
|
@ -959,6 +963,7 @@ $(eval $(call assert_booleans,\
|
||||||
USE_SP804_TIMER \
|
USE_SP804_TIMER \
|
||||||
ENABLE_FEAT_RNG \
|
ENABLE_FEAT_RNG \
|
||||||
ENABLE_FEAT_SB \
|
ENABLE_FEAT_SB \
|
||||||
|
PSA_FWU_SUPPORT \
|
||||||
)))
|
)))
|
||||||
|
|
||||||
$(eval $(call assert_numerics,\
|
$(eval $(call assert_numerics,\
|
||||||
|
@ -1058,6 +1063,7 @@ $(eval $(call add_defines,\
|
||||||
ENABLE_FEAT_SB \
|
ENABLE_FEAT_SB \
|
||||||
NR_OF_FW_BANKS \
|
NR_OF_FW_BANKS \
|
||||||
NR_OF_IMAGES_IN_FW_BANK \
|
NR_OF_IMAGES_IN_FW_BANK \
|
||||||
|
PSA_FWU_SUPPORT \
|
||||||
)))
|
)))
|
||||||
|
|
||||||
ifeq (${SANITIZE_UB},trap)
|
ifeq (${SANITIZE_UB},trap)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2013-2020, ARM Limited and Contributors. All rights reserved.
|
* Copyright (c) 2013-2021, ARM Limited and Contributors. All rights reserved.
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-3-Clause
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
|
@ -14,6 +14,7 @@
|
||||||
#include <common/debug.h>
|
#include <common/debug.h>
|
||||||
#include <drivers/auth/auth_mod.h>
|
#include <drivers/auth/auth_mod.h>
|
||||||
#include <drivers/console.h>
|
#include <drivers/console.h>
|
||||||
|
#include <drivers/fwu/fwu.h>
|
||||||
#if MEASURED_BOOT
|
#if MEASURED_BOOT
|
||||||
#include <drivers/measured_boot/measured_boot.h>
|
#include <drivers/measured_boot/measured_boot.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -88,6 +89,10 @@ void bl2_main(void)
|
||||||
/* Perform remaining generic architectural setup in S-EL1 */
|
/* Perform remaining generic architectural setup in S-EL1 */
|
||||||
bl2_arch_setup();
|
bl2_arch_setup();
|
||||||
|
|
||||||
|
#if PSA_FWU_SUPPORT
|
||||||
|
fwu_init();
|
||||||
|
#endif /* PSA_FWU_SUPPORT */
|
||||||
|
|
||||||
#if TRUSTED_BOARD_BOOT
|
#if TRUSTED_BOARD_BOOT
|
||||||
/* Initialize authentication module */
|
/* Initialize authentication module */
|
||||||
auth_mod_init();
|
auth_mod_init();
|
||||||
|
|
|
@ -352,3 +352,6 @@ NR_OF_FW_BANKS := 2
|
||||||
# Build option to define number of images in firmware bank, used in firmware
|
# Build option to define number of images in firmware bank, used in firmware
|
||||||
# update metadata structure.
|
# update metadata structure.
|
||||||
NR_OF_IMAGES_IN_FW_BANK := 1
|
NR_OF_IMAGES_IN_FW_BANK := 1
|
||||||
|
|
||||||
|
# Disable Firmware update support by default
|
||||||
|
PSA_FWU_SUPPORT := 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue