]> git.baikalelectronics.ru Git - uboot.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)
commit6b8640fec37f425b27d40e718245d061f118a8fb
treeca643d9f848a87bd261ec7855598a6a0d14d41c5
parenta6e0c491fdef4f20c2fa0aa2cecef2d7f4ae01ab
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