1 /*
2  * Copyright 2021 NXP
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #include <pdef_tbb_cert.h>
8 #include <pdef_tbb_ext.h>
9 #include <pdef_tbb_key.h>
10 
11 static cert_t pdef_tbb_certs[] = {
12 	[DDR_FW_KEY_CERT - DDR_FW_KEY_CERT] = {
13 		.id = DDR_FW_KEY_CERT,
14 		.opt = "ddr-fw-key-cert",
15 		.help_msg = "DDR Firmware Key Certificate (output file)",
16 		.fn = NULL,
17 		.cn = "DDR Firmware Key Certificate",
18 		.key = TRUSTED_WORLD_KEY,
19 		.issuer = DDR_FW_KEY_CERT,
20 		.ext = {
21 			TRUSTED_FW_NVCOUNTER_EXT,
22 			DDR_FW_CONTENT_CERT_PK_EXT,
23 		},
24 		.num_ext = 2
25 	},
26 	[DDR_UDIMM_FW_CONTENT_CERT - DDR_FW_KEY_CERT] = {
27 		.id = DDR_UDIMM_FW_CONTENT_CERT,
28 		.opt = "ddr-udimm-fw-cert",
29 		.help_msg = "DDR UDIMM Firmware Content Certificate (output file)",
30 		.fn = NULL,
31 		.cn = "DDR UDIMM Firmware Content Certificate",
32 		.key = DDR_FW_CONTENT_KEY,
33 		.issuer = DDR_UDIMM_FW_CONTENT_CERT,
34 		.ext = {
35 			TRUSTED_FW_NVCOUNTER_EXT,
36 			DDR_IMEM_UDIMM_1D_HASH_EXT,
37 			DDR_IMEM_UDIMM_2D_HASH_EXT,
38 			DDR_DMEM_UDIMM_1D_HASH_EXT,
39 			DDR_DMEM_UDIMM_2D_HASH_EXT,
40 		},
41 		.num_ext = 5
42 	},
43 	[DDR_RDIMM_FW_CONTENT_CERT - DDR_FW_KEY_CERT] = {
44 		.id = DDR_RDIMM_FW_CONTENT_CERT,
45 		.opt = "ddr-rdimm-fw-cert",
46 		.help_msg = "DDR RDIMM Firmware Content Certificate (output file)",
47 		.fn = NULL,
48 		.cn = "DDR RDIMM Firmware Content Certificate",
49 		.key = DDR_FW_CONTENT_KEY,
50 		.issuer = DDR_RDIMM_FW_CONTENT_CERT,
51 		.ext = {
52 			TRUSTED_FW_NVCOUNTER_EXT,
53 			DDR_IMEM_RDIMM_1D_HASH_EXT,
54 			DDR_IMEM_RDIMM_2D_HASH_EXT,
55 			DDR_DMEM_RDIMM_1D_HASH_EXT,
56 			DDR_DMEM_RDIMM_2D_HASH_EXT,
57 		},
58 		.num_ext = 5
59 	}
60 };
61 
62 PLAT_REGISTER_COT(pdef_tbb_certs);
63