summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRouven Czerwinski <r.czerwinski@pengutronix.de>2020-01-28 06:38:18 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2020-01-28 10:22:27 +0100
commitc3474d0f77324a15c503551dc79fdf2ef891876f (patch)
treeadb1cf5276c21735fc9b80d9c8bd36663a8a779b /include
parentee8960aec018df2ded4ac28776243bda0b633d67 (diff)
downloadbarebox-c3474d0f77324a15c503551dc79fdf2ef891876f.tar.gz
barebox-c3474d0f77324a15c503551dc79fdf2ef891876f.tar.xz
optee: move optee_verify_header() to common
Subsequent patches will use this to verify the header in the PBL, move it to common to make it potentially available for both. Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/tee/optee.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/tee/optee.h b/include/tee/optee.h
index 8cfe06d889..9fb27fcec0 100644
--- a/include/tee/optee.h
+++ b/include/tee/optee.h
@@ -10,6 +10,9 @@
#ifndef _OPTEE_H
#define _OPTEE_H
+#include <types.h>
+#include <asm-generic/errno.h>
+
#define OPTEE_MAGIC 0x4554504f
#define OPTEE_VERSION 1
#define OPTEE_ARCH_ARM32 0
@@ -27,4 +30,6 @@ struct optee_header {
uint32_t paged_size;
};
+int optee_verify_header (struct optee_header *hdr);
+
#endif /* _OPTEE_H */