aboutsummaryrefslogtreecommitdiff
path: root/include/tee.h
diff options
context:
space:
mode:
authorEtienne Carriere <etienne.carriere@linaro.org>2021-05-19 16:27:41 +0200
committerTom Rini <trini@konsulko.com>2021-07-23 07:13:25 -0400
commit9e6da34c72274578be6f86ba7b7aa7849a624315 (patch)
treeb620295bc54e40f7a00a60e313caa5fe3073f072 /include/tee.h
parent674afa6b3588dafe02b99406278ed81216fbefcb (diff)
downloadu-boot-9e6da34c72274578be6f86ba7b7aa7849a624315.zip
u-boot-9e6da34c72274578be6f86ba7b7aa7849a624315.tar.gz
u-boot-9e6da34c72274578be6f86ba7b7aa7849a624315.tar.bz2
tee: optee: sync cache on pre-reloc OP-TEE invocation
This change ensures both U-Boot and OP-TEE see the same content from shared memory when OP-TEE is invoked prior U-Boot relocation. This change is required since U-Boot may execute with data cache off while OP-TEE always enables cache on memory shared with U-Boot. Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'include/tee.h')
-rw-r--r--include/tee.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/tee.h b/include/tee.h
index 99367b2..2ef29bf 100644
--- a/include/tee.h
+++ b/include/tee.h
@@ -377,4 +377,10 @@ void tee_optee_ta_uuid_from_octets(struct tee_optee_ta_uuid *d,
void tee_optee_ta_uuid_to_octets(u8 d[TEE_UUID_LEN],
const struct tee_optee_ta_uuid *s);
+/**
+ * tee_flush_all_shm_dcache() - Flush data cache for all shared memories
+ * @dev: The TEE device
+ */
+void tee_flush_all_shm_dcache(struct udevice *dev);
+
#endif /* __TEE_H */