blob: e1c8c298be1c1c123f0e4615e4688cefb82a8cdc [file] [log] [blame]
Juan Castillo9b265a82015-05-07 14:52:44 +01001/*
Pankaj Gupta7951ce82020-12-09 14:02:38 +05302 * Copyright (c) 2015-2020, ARM Limited and Contributors. All rights reserved.
Juan Castillo9b265a82015-05-07 14:52:44 +01003 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Juan Castillo9b265a82015-05-07 14:52:44 +01005 */
6
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +00007#ifndef TBBR_IMG_DEF_H
8#define TBBR_IMG_DEF_H
Juan Castillo9b265a82015-05-07 14:52:44 +01009
Julius Werner2a231e32019-05-28 21:03:58 -070010#include <export/common/tbbr/tbbr_img_def_exp.h>
Roberto Vargasbe126ed2018-02-12 12:36:17 +000011
Manish Pandey5f8e1a02020-05-27 22:40:10 +010012#if defined(SPD_spmd)
Manish Pandeyd07d0172020-07-23 16:54:30 +010013#define SIP_SP_CONTENT_CERT_ID MAX_IMAGE_IDS
Manish Pandey6aef2cc2020-07-31 16:25:17 +010014#define PLAT_SP_CONTENT_CERT_ID (MAX_IMAGE_IDS + 1)
15#define SP_PKG1_ID (MAX_IMAGE_IDS + 2)
16#define SP_PKG2_ID (MAX_IMAGE_IDS + 3)
17#define SP_PKG3_ID (MAX_IMAGE_IDS + 4)
18#define SP_PKG4_ID (MAX_IMAGE_IDS + 5)
19#define SP_PKG5_ID (MAX_IMAGE_IDS + 6)
20#define SP_PKG6_ID (MAX_IMAGE_IDS + 7)
21#define SP_PKG7_ID (MAX_IMAGE_IDS + 8)
22#define SP_PKG8_ID (MAX_IMAGE_IDS + 9)
Manish Pandey5f8e1a02020-05-27 22:40:10 +010023#define MAX_SP_IDS U(8)
Pankaj Gupta7951ce82020-12-09 14:02:38 +053024#define MAX_IMG_IDS_WITH_SPMDS (MAX_IMAGE_IDS + MAX_SP_IDS + U(2))
Manish Pandey5f8e1a02020-05-27 22:40:10 +010025#else
Pankaj Gupta7951ce82020-12-09 14:02:38 +053026#define MAX_IMG_IDS_WITH_SPMDS MAX_IMAGE_IDS
27#endif
28
29#ifdef PLAT_TBBR_IMG_DEF
30#include <plat_tbbr_img_def.h>
31#endif
32
33#ifndef MAX_NUMBER_IDS
34#define MAX_NUMBER_IDS MAX_IMG_IDS_WITH_SPMDS
Manish Pandey5f8e1a02020-05-27 22:40:10 +010035#endif
36
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000037#endif /* TBBR_IMG_DEF_H */