tbbr_img_def.h 1.84 KB
Newer Older
Juan Castillo's avatar
Juan Castillo committed
1
/*
2
 * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
Juan Castillo's avatar
Juan Castillo committed
3
 *
dp-arm's avatar
dp-arm committed
4
 * SPDX-License-Identifier: BSD-3-Clause
Juan Castillo's avatar
Juan Castillo committed
5
6
7
8
9
 */

#ifndef __TBBR_IMG_DEF_H__
#define __TBBR_IMG_DEF_H__

10
11
#include <utils_def.h>

Juan Castillo's avatar
Juan Castillo committed
12
/* Firmware Image Package */
13
#define FIP_IMAGE_ID			U(0)
Juan Castillo's avatar
Juan Castillo committed
14
15

/* Trusted Boot Firmware BL2 */
16
#define BL2_IMAGE_ID			U(1)
Juan Castillo's avatar
Juan Castillo committed
17

18
/* SCP Firmware SCP_BL2 */
19
#define SCP_BL2_IMAGE_ID		U(2)
Juan Castillo's avatar
Juan Castillo committed
20
21

/* EL3 Runtime Firmware BL31 */
22
#define BL31_IMAGE_ID			U(3)
Juan Castillo's avatar
Juan Castillo committed
23
24

/* Secure Payload BL32 (Trusted OS) */
25
#define BL32_IMAGE_ID			U(4)
Juan Castillo's avatar
Juan Castillo committed
26
27

/* Non-Trusted Firmware BL33 */
28
#define BL33_IMAGE_ID			U(5)
Juan Castillo's avatar
Juan Castillo committed
29
30

/* Certificates */
31
32
#define TRUSTED_BOOT_FW_CERT_ID		U(6)
#define TRUSTED_KEY_CERT_ID		U(7)
Juan Castillo's avatar
Juan Castillo committed
33

34
35
36
37
#define SCP_FW_KEY_CERT_ID		U(8)
#define SOC_FW_KEY_CERT_ID		U(9)
#define TRUSTED_OS_FW_KEY_CERT_ID	U(10)
#define NON_TRUSTED_FW_KEY_CERT_ID	U(11)
Juan Castillo's avatar
Juan Castillo committed
38

39
40
41
42
#define SCP_FW_CONTENT_CERT_ID		U(12)
#define SOC_FW_CONTENT_CERT_ID		U(13)
#define TRUSTED_OS_FW_CONTENT_CERT_ID	U(14)
#define NON_TRUSTED_FW_CONTENT_CERT_ID	U(15)
Juan Castillo's avatar
Juan Castillo committed
43

44
/* Non-Trusted ROM Firmware NS_BL1U */
45
#define NS_BL1U_IMAGE_ID		U(16)
46
47

/* Trusted FWU Certificate */
48
#define FWU_CERT_ID			U(17)
49
50

/* Trusted FWU SCP Firmware SCP_BL2U */
51
#define SCP_BL2U_IMAGE_ID		U(18)
52
53

/* Trusted FWU Boot Firmware BL2U */
54
#define BL2U_IMAGE_ID			U(19)
55
56

/* Non-Trusted FWU Firmware NS_BL2U */
57
#define NS_BL2U_IMAGE_ID		U(20)
58

59
/* Secure Payload BL32_EXTRA1 (Trusted OS Extra1) */
60
#define BL32_EXTRA1_IMAGE_ID		U(21)
61
62

/* Secure Payload BL32_EXTRA2 (Trusted OS Extra2) */
63
#define BL32_EXTRA2_IMAGE_ID		U(22)
64

65
/* HW_CONFIG (e.g. Kernel DT) */
66
#define HW_CONFIG_ID			U(23)
67
68

/* TB_FW_CONFIG */
69
#define TB_FW_CONFIG_ID			U(24)
70

Soby Mathew's avatar
Soby Mathew committed
71
/* SOC_FW_CONFIG */
72
#define SOC_FW_CONFIG_ID		U(25)
Soby Mathew's avatar
Soby Mathew committed
73
74

/* TOS_FW_CONFIG */
75
#define TOS_FW_CONFIG_ID		U(26)
Soby Mathew's avatar
Soby Mathew committed
76
77

/* NT_FW_CONFIG */
78
#define NT_FW_CONFIG_ID			U(27)
Soby Mathew's avatar
Soby Mathew committed
79

Roberto Vargas's avatar
Roberto Vargas committed
80
/* Define size of the array */
81
#define MAX_NUMBER_IDS			U(28)
Roberto Vargas's avatar
Roberto Vargas committed
82

Juan Castillo's avatar
Juan Castillo committed
83
#endif /* __TBBR_IMG_DEF_H__ */