1 /* 2 * Copyright 2021 NXP 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 * 6 */ 7 8 #ifndef NXP_IMG_DEF_H 9 #define NXP_IMG_DEF_H 10 11 #include <export/common/tbbr/tbbr_img_def_exp.h> 12 13 #ifdef CONFIG_DDR_FIP_IMAGE 14 /* DDR FIP IMAGE ID */ 15 #define DDR_FIP_IMAGE_ID MAX_IMG_IDS_WITH_SPMDS 16 17 #define DDR_IMEM_UDIMM_1D_IMAGE_ID MAX_IMG_IDS_WITH_SPMDS + 1 18 #define DDR_IMEM_UDIMM_2D_IMAGE_ID MAX_IMG_IDS_WITH_SPMDS + 2 19 20 #define DDR_DMEM_UDIMM_1D_IMAGE_ID MAX_IMG_IDS_WITH_SPMDS + 3 21 #define DDR_DMEM_UDIMM_2D_IMAGE_ID MAX_IMG_IDS_WITH_SPMDS + 4 22 23 #define DDR_IMEM_RDIMM_1D_IMAGE_ID MAX_IMG_IDS_WITH_SPMDS + 5 24 #define DDR_IMEM_RDIMM_2D_IMAGE_ID MAX_IMG_IDS_WITH_SPMDS + 6 25 26 #define DDR_DMEM_RDIMM_1D_IMAGE_ID MAX_IMG_IDS_WITH_SPMDS + 7 27 #define DDR_DMEM_RDIMM_2D_IMAGE_ID MAX_IMG_IDS_WITH_SPMDS + 8 28 29 #define DDR_FW_KEY_CERT_ID MAX_IMG_IDS_WITH_SPMDS + 9 30 #define DDR_UDIMM_FW_CONTENT_CERT_ID MAX_IMG_IDS_WITH_SPMDS + 10 31 #define DDR_RDIMM_FW_CONTENT_CERT_ID MAX_IMG_IDS_WITH_SPMDS + 11 32 /* Max Images */ 33 #define MAX_IMG_WITH_DDR_IDS MAX_IMG_IDS_WITH_SPMDS + 12 34 #else 35 #define MAX_IMG_WITH_DDR_IDS MAX_IMG_IDS_WITH_SPMDS 36 #endif 37 38 #ifdef POLICY_FUSE_PROVISION 39 /* FUSE FIP IMAGE ID */ 40 #define FUSE_FIP_IMAGE_ID MAX_IMG_WITH_DDR_IDS 41 42 #define FUSE_PROV_IMAGE_ID MAX_IMG_WITH_DDR_IDS + 1 43 44 #define FUSE_UP_IMAGE_ID MAX_IMG_WITH_DDR_IDS + 2 45 46 #define MAX_IMG_WITH_FIMG_IDS MAX_IMG_WITH_DDR_IDS + 3 47 #else 48 #define MAX_IMG_WITH_FIMG_IDS MAX_IMG_WITH_DDR_IDS 49 #endif 50 51 #define MAX_NUMBER_IDS MAX_IMG_WITH_FIMG_IDS 52 53 #endif /* NXP_IMG_DEF_H */ 54