aboutsummaryrefslogtreecommitdiff
path: root/include/tee
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-05-10 11:40:01 -0600
committerTom Rini <trini@konsulko.com>2020-05-18 17:33:33 -0400
commit4d72caa5b96b71e49b63f98bd8548b194380b544 (patch)
tree8e636424599794d122342437e21fb601a7c62180 /include/tee
parent52f24238046ca28085f6de946d0358e5c7c7cbe8 (diff)
downloadu-boot-4d72caa5b96b71e49b63f98bd8548b194380b544.zip
u-boot-4d72caa5b96b71e49b63f98bd8548b194380b544.tar.gz
u-boot-4d72caa5b96b71e49b63f98bd8548b194380b544.tar.bz2
common: Drop image.h from common header
Move this uncommon header out of the common header. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/tee')
-rw-r--r--include/tee/optee.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/tee/optee.h b/include/tee/optee.h
index 121b30a..affa937 100644
--- a/include/tee/optee.h
+++ b/include/tee/optee.h
@@ -10,6 +10,7 @@
#define _OPTEE_H
#include <linux/errno.h>
+#include <image.h>
#define OPTEE_MAGIC 0x4554504f
#define OPTEE_VERSION 1
@@ -28,14 +29,16 @@ struct optee_header {
uint32_t paged_size;
};
-static inline uint32_t optee_image_get_entry_point(const image_header_t *hdr)
+static inline uint32_t
+optee_image_get_entry_point(const struct image_header *hdr)
{
struct optee_header *optee_hdr = (struct optee_header *)(hdr + 1);
return optee_hdr->init_load_addr_lo;
}
-static inline uint32_t optee_image_get_load_addr(const image_header_t *hdr)
+static inline uint32_t
+optee_image_get_load_addr(const struct image_header *hdr)
{
return optee_image_get_entry_point(hdr) - sizeof(struct optee_header);
}