xref: /openbmc/u-boot/include/tee/optee.h (revision c7c47ca2)
1 /*
2  * OP-TEE related definitions
3  *
4  * (C) Copyright 2016 Linaro Limited
5  * Andrew F. Davis <andrew.davis@linaro.org>
6  *
7  * SPDX-License-Identifier: BSD-2-Clause
8  */
9 
10 #ifndef	_OPTEE_H
11 #define _OPTEE_H
12 
13 #define OPTEE_MAGIC             0x4554504f
14 #define OPTEE_VERSION           1
15 #define OPTEE_ARCH_ARM32        0
16 #define OPTEE_ARCH_ARM64        1
17 
18 struct optee_header {
19 	uint32_t magic;
20 	uint8_t version;
21 	uint8_t arch;
22 	uint16_t flags;
23 	uint32_t init_size;
24 	uint32_t init_load_addr_hi;
25 	uint32_t init_load_addr_lo;
26 	uint32_t init_mem_usage;
27 	uint32_t paged_size;
28 };
29 
30 #endif /* _OPTEE_H */
31