tbbr_img_def.h 1002 Bytes
Newer Older
Juan Castillo's avatar
Juan Castillo committed
1
/*
2
 * Copyright (c) 2015-2020, 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
#ifndef TBBR_IMG_DEF_H
#define TBBR_IMG_DEF_H
Juan Castillo's avatar
Juan Castillo committed
9

10
#include <export/common/tbbr/tbbr_img_def_exp.h>
Roberto Vargas's avatar
Roberto Vargas committed
11

12
#if defined(SPD_spmd)
13
#define SIP_SP_CONTENT_CERT_ID		MAX_IMAGE_IDS
14
15
16
17
18
19
20
21
22
#define PLAT_SP_CONTENT_CERT_ID		(MAX_IMAGE_IDS + 1)
#define SP_PKG1_ID			(MAX_IMAGE_IDS + 2)
#define SP_PKG2_ID			(MAX_IMAGE_IDS + 3)
#define SP_PKG3_ID			(MAX_IMAGE_IDS + 4)
#define SP_PKG4_ID			(MAX_IMAGE_IDS + 5)
#define SP_PKG5_ID			(MAX_IMAGE_IDS + 6)
#define SP_PKG6_ID			(MAX_IMAGE_IDS + 7)
#define SP_PKG7_ID			(MAX_IMAGE_IDS + 8)
#define SP_PKG8_ID			(MAX_IMAGE_IDS + 9)
23
#define MAX_SP_IDS			U(8)
24
#define MAX_IMG_IDS_WITH_SPMDS		(MAX_IMAGE_IDS + MAX_SP_IDS + U(2))
25
#else
26
27
28
29
30
31
32
33
34
#define MAX_IMG_IDS_WITH_SPMDS		MAX_IMAGE_IDS
#endif

#ifdef PLAT_TBBR_IMG_DEF
#include <plat_tbbr_img_def.h>
#endif

#ifndef MAX_NUMBER_IDS
#define MAX_NUMBER_IDS			MAX_IMG_IDS_WITH_SPMDS
35
36
#endif

37
#endif /* TBBR_IMG_DEF_H */