mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-07 21:33:54 +00:00
feat(tbbr): add image id for backup GPT
Add image identifier to access backup-GPT header and entry, when we fail to get primary GPT header. Currently we use only the primary gpt header, But we plan to use backup GPT header in case our primary GPT header fails verification or is corrupted. Change-Id: I12eedd5d2a5cda21c64254d461d09d400d4edb30 Signed-off-by: Govindraj Raja <govindraj.raja@arm.com>
This commit is contained in:
parent
113273aac4
commit
1051606c3d
1 changed files with 15 additions and 12 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2019-2022, ARM Limited and Contributors. All rights reserved.
|
||||
* Copyright (c) 2019-2023, ARM Limited and Contributors. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
@ -79,41 +79,44 @@
|
|||
/* NT_FW_CONFIG */
|
||||
#define NT_FW_CONFIG_ID U(27)
|
||||
|
||||
/* GPT Partition */
|
||||
/* GPT primary header and entries */
|
||||
#define GPT_IMAGE_ID U(28)
|
||||
|
||||
/* GPT backup header and entries */
|
||||
#define BKUP_GPT_IMAGE_ID U(29)
|
||||
|
||||
/* Binary with STM32 header */
|
||||
#define STM32_IMAGE_ID U(29)
|
||||
#define STM32_IMAGE_ID U(30)
|
||||
|
||||
/* Encrypted image identifier */
|
||||
#define ENC_IMAGE_ID U(30)
|
||||
#define ENC_IMAGE_ID U(31)
|
||||
|
||||
/* FW_CONFIG */
|
||||
#define FW_CONFIG_ID U(31)
|
||||
#define FW_CONFIG_ID U(32)
|
||||
|
||||
/*
|
||||
* Primary FWU metadata image ID
|
||||
*/
|
||||
#define FWU_METADATA_IMAGE_ID U(32)
|
||||
#define FWU_METADATA_IMAGE_ID U(33)
|
||||
|
||||
/*
|
||||
* Backup FWU metadata image ID
|
||||
*/
|
||||
#define BKUP_FWU_METADATA_IMAGE_ID U(33)
|
||||
#define BKUP_FWU_METADATA_IMAGE_ID U(34)
|
||||
|
||||
/* Realm Monitor Manager (RMM) */
|
||||
#define RMM_IMAGE_ID U(34)
|
||||
#define RMM_IMAGE_ID U(35)
|
||||
|
||||
/* CCA Content Certificate ID */
|
||||
#define CCA_CONTENT_CERT_ID U(35)
|
||||
#define CCA_CONTENT_CERT_ID U(36)
|
||||
|
||||
/* Core SWD Key Certificate ID */
|
||||
#define CORE_SWD_KEY_CERT_ID U(36)
|
||||
#define CORE_SWD_KEY_CERT_ID U(37)
|
||||
|
||||
/* Platform Key Certificate ID */
|
||||
#define PLAT_KEY_CERT_ID U(37)
|
||||
#define PLAT_KEY_CERT_ID U(38)
|
||||
|
||||
/* Max Images */
|
||||
#define MAX_IMAGE_IDS U(38)
|
||||
#define MAX_IMAGE_IDS U(39)
|
||||
|
||||
#endif /* ARM_TRUSTED_FIRMWARE_EXPORT_COMMON_TBBR_TBBR_IMG_DEF_EXP_H */
|
||||
|
|
Loading…
Add table
Reference in a new issue