xref: /rk3399_ARM-atf/plat/imx/common/include/ele_api.h (revision 52e486f6a6192bd18d36cdcbc35c59092eefc810)
1 /*
2  * Copyright 2023-2025 NXP
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 #ifndef ELE_API_H
7 #define ELE_API_H
8 
9 #define ELE_GET_INFO_REQ	U(0x17DA0406)
10 #define ELE_RELEASE_GMID	U(0x17E40106)
11 
12 struct ele_soc_info {
13 	uint32_t hdr;
14 	uint32_t soc;
15 	uint32_t lc;
16 	uint32_t uid[4];
17 	uint32_t sha256_rom_patch[8];
18 	uint32_t sha_fw[8];
19 	uint32_t oem_srkh[16];
20 	uint32_t state;
21 	uint32_t oem_pqc_srkh[16];
22 	uint32_t reserved[8];
23 };
24 
25 void ele_get_soc_info(void);
26 void ele_release_gmid(void);
27 int imx9_soc_info_handler(uint32_t smc_fid, void *handle);
28 
29 #endif /* ELE_API_H */
30