]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: spl: prepare for jumping to OPTEE
authorRicardo Salveti <ricardo@foundries.io>
Wed, 20 Oct 2021 12:12:06 +0000 (15:12 +0300)
committerTom Rini <trini@konsulko.com>
Mon, 25 Oct 2021 21:17:24 +0000 (17:17 -0400)
commit949eb228f3f807feb338d29e9c94d97c22fa98b6
treeca643d9f848a87bd261ec7855598a6a0d14d41c5
parentd11d1becbd6ab67c4cc0c19bda2886b28c1fdc02
arm: spl: prepare for jumping to OPTEE

Make sure to (if applicable) flush the D-cache, invalidate I-cache,
and disable MMU and caches before jumping to OPTEE.
This fixes the SDP->SPL->OPTEE boot flow on iMX6Q and most likely on
some other ARM SoCs.

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
Co-developed-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
arch/arm/lib/spl.c
common/spl/spl.c
include/spl.h