diff options
author | Etienne Carriere <etienne.carriere@linaro.org> | 2021-05-19 17:27:41 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-07-23 14:13:25 +0300 |
commit | 9e6da34c72274578be6f86ba7b7aa7849a624315 (patch) | |
tree | b620295bc54e40f7a00a60e313caa5fe3073f072 /include | |
parent | 674afa6b3588dafe02b99406278ed81216fbefcb (diff) | |
download | u-boot-9e6da34c72274578be6f86ba7b7aa7849a624315.tar.xz |
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')
-rw-r--r-- | include/tee.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/tee.h b/include/tee.h index 99367b258e..2ef29bfc8f 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 */ |