tbbr_img_def.h 1002 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright (c) 2015-2020, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef TBBR_IMG_DEF_H
  7. #define TBBR_IMG_DEF_H
  8. #include <export/common/tbbr/tbbr_img_def_exp.h>
  9. #if defined(SPD_spmd)
  10. #define SIP_SP_CONTENT_CERT_ID MAX_IMAGE_IDS
  11. #define PLAT_SP_CONTENT_CERT_ID (MAX_IMAGE_IDS + 1)
  12. #define SP_PKG1_ID (MAX_IMAGE_IDS + 2)
  13. #define SP_PKG2_ID (MAX_IMAGE_IDS + 3)
  14. #define SP_PKG3_ID (MAX_IMAGE_IDS + 4)
  15. #define SP_PKG4_ID (MAX_IMAGE_IDS + 5)
  16. #define SP_PKG5_ID (MAX_IMAGE_IDS + 6)
  17. #define SP_PKG6_ID (MAX_IMAGE_IDS + 7)
  18. #define SP_PKG7_ID (MAX_IMAGE_IDS + 8)
  19. #define SP_PKG8_ID (MAX_IMAGE_IDS + 9)
  20. #define MAX_SP_IDS U(8)
  21. #define MAX_IMG_IDS_WITH_SPMDS (MAX_IMAGE_IDS + MAX_SP_IDS + U(2))
  22. #else
  23. #define MAX_IMG_IDS_WITH_SPMDS MAX_IMAGE_IDS
  24. #endif
  25. #ifdef PLAT_TBBR_IMG_DEF
  26. #include <plat_tbbr_img_def.h>
  27. #endif
  28. #ifndef MAX_NUMBER_IDS
  29. #define MAX_NUMBER_IDS MAX_IMG_IDS_WITH_SPMDS
  30. #endif
  31. #endif /* TBBR_IMG_DEF_H */