From 396b339dc20b97ddd75146e03467a255e28f31b9 Mon Sep 17 00:00:00 2001 From: Manish V Badarkhe Date: Fri, 25 Jun 2021 23:28:59 +0100 Subject: 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 --- bl2/bl2_main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bl2') diff --git a/bl2/bl2_main.c b/bl2/bl2_main.c index 203e1d4b1..d2de1350d 100644 --- a/bl2/bl2_main.c +++ b/bl2/bl2_main.c @@ -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 */ @@ -14,6 +14,7 @@ #include #include #include +#include #if MEASURED_BOOT #include #endif @@ -88,6 +89,10 @@ void bl2_main(void) /* Perform remaining generic architectural setup in S-EL1 */ bl2_arch_setup(); +#if PSA_FWU_SUPPORT + fwu_init(); +#endif /* PSA_FWU_SUPPORT */ + #if TRUSTED_BOARD_BOOT /* Initialize authentication module */ auth_mod_init(); -- cgit v1.2.1