xref: /rk3399_ARM-atf/include/common/tbbr/tbbr_img_def.h (revision 48bfb88eb6087bb3a293a13a0f702a0e40466b14)
1dff93c86SJuan Castillo /*
2dff93c86SJuan Castillo  * Copyright (c) 2015, ARM Limited and Contributors. All rights reserved.
3dff93c86SJuan Castillo  *
4dff93c86SJuan Castillo  * Redistribution and use in source and binary forms, with or without
5dff93c86SJuan Castillo  * modification, are permitted provided that the following conditions are met:
6dff93c86SJuan Castillo  *
7dff93c86SJuan Castillo  * Redistributions of source code must retain the above copyright notice, this
8dff93c86SJuan Castillo  * list of conditions and the following disclaimer.
9dff93c86SJuan Castillo  *
10dff93c86SJuan Castillo  * Redistributions in binary form must reproduce the above copyright notice,
11dff93c86SJuan Castillo  * this list of conditions and the following disclaimer in the documentation
12dff93c86SJuan Castillo  * and/or other materials provided with the distribution.
13dff93c86SJuan Castillo  *
14dff93c86SJuan Castillo  * Neither the name of ARM nor the names of its contributors may be used
15dff93c86SJuan Castillo  * to endorse or promote products derived from this software without specific
16dff93c86SJuan Castillo  * prior written permission.
17dff93c86SJuan Castillo  *
18dff93c86SJuan Castillo  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19dff93c86SJuan Castillo  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20dff93c86SJuan Castillo  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21dff93c86SJuan Castillo  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
22dff93c86SJuan Castillo  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23dff93c86SJuan Castillo  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24dff93c86SJuan Castillo  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25dff93c86SJuan Castillo  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26dff93c86SJuan Castillo  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27dff93c86SJuan Castillo  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28dff93c86SJuan Castillo  * POSSIBILITY OF SUCH DAMAGE.
29dff93c86SJuan Castillo  */
30dff93c86SJuan Castillo 
31dff93c86SJuan Castillo #ifndef __TBBR_IMG_DEF_H__
32dff93c86SJuan Castillo #define __TBBR_IMG_DEF_H__
33dff93c86SJuan Castillo 
34dff93c86SJuan Castillo /* Firmware Image Package */
35dff93c86SJuan Castillo #define FIP_IMAGE_ID			0
36dff93c86SJuan Castillo 
37dff93c86SJuan Castillo /* Trusted Boot Firmware BL2 */
38dff93c86SJuan Castillo #define BL2_IMAGE_ID			1
39dff93c86SJuan Castillo 
40dff93c86SJuan Castillo /* SCP Firmware BL3-0 */
41dff93c86SJuan Castillo #define BL30_IMAGE_ID			2
42dff93c86SJuan Castillo 
43dff93c86SJuan Castillo /* EL3 Runtime Firmware BL31 */
44dff93c86SJuan Castillo #define BL31_IMAGE_ID			3
45dff93c86SJuan Castillo 
46dff93c86SJuan Castillo /* Secure Payload BL32 (Trusted OS) */
47dff93c86SJuan Castillo #define BL32_IMAGE_ID			4
48dff93c86SJuan Castillo 
49dff93c86SJuan Castillo /* Non-Trusted Firmware BL33 */
50dff93c86SJuan Castillo #define BL33_IMAGE_ID			5
51dff93c86SJuan Castillo 
52dff93c86SJuan Castillo /* Certificates */
53dff93c86SJuan Castillo #define BL2_CERT_ID			6
54dff93c86SJuan Castillo #define TRUSTED_KEY_CERT_ID		7
55dff93c86SJuan Castillo 
56dff93c86SJuan Castillo #define BL30_KEY_CERT_ID		8
57dff93c86SJuan Castillo #define BL31_KEY_CERT_ID		9
58dff93c86SJuan Castillo #define BL32_KEY_CERT_ID		10
59dff93c86SJuan Castillo #define BL33_KEY_CERT_ID		11
60dff93c86SJuan Castillo 
61dff93c86SJuan Castillo #define BL30_CERT_ID			12
62dff93c86SJuan Castillo #define BL31_CERT_ID			13
63dff93c86SJuan Castillo #define BL32_CERT_ID			14
64dff93c86SJuan Castillo #define BL33_CERT_ID			15
65dff93c86SJuan Castillo 
66*48bfb88eSYatharth Kochar /* Non-Trusted ROM Firmware NS_BL1U */
67*48bfb88eSYatharth Kochar #define NS_BL1U_IMAGE_ID		16
68*48bfb88eSYatharth Kochar 
69*48bfb88eSYatharth Kochar /* Trusted FWU Certificate */
70*48bfb88eSYatharth Kochar #define FWU_CERT_ID			17
71*48bfb88eSYatharth Kochar 
72*48bfb88eSYatharth Kochar /* Trusted FWU SCP Firmware SCP_BL2U */
73*48bfb88eSYatharth Kochar #define SCP_BL2U_IMAGE_ID		18
74*48bfb88eSYatharth Kochar 
75*48bfb88eSYatharth Kochar /* Trusted FWU Boot Firmware BL2U */
76*48bfb88eSYatharth Kochar #define BL2U_IMAGE_ID			19
77*48bfb88eSYatharth Kochar 
78*48bfb88eSYatharth Kochar /* Non-Trusted FWU Firmware NS_BL2U */
79*48bfb88eSYatharth Kochar #define NS_BL2U_IMAGE_ID		20
80*48bfb88eSYatharth Kochar 
81dff93c86SJuan Castillo #endif /* __TBBR_IMG_DEF_H__ */
82