]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: stm32mp: Implement support for TZC 400 controller
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>
Thu, 15 Jul 2021 19:19:25 +0000 (14:19 -0500)
committerPatrick Delaunay <patrick.delaunay@foss.st.com>
Tue, 27 Jul 2021 07:48:09 +0000 (09:48 +0200)
commit8d7f5edd869e1763babbd1005c4e06023ff10e3b
tree4a768e5949446ba98d4352d38dbbb8aac3ce7312
parenta25d6b65c21b1298712c75604ff606025cb40267
arm: stm32mp: Implement support for TZC 400 controller

The purpose of this change is to allow configuring TrustZone (TZC)
memory permissions. For example, OP-TEE expects TZC regions to be
configured in a very particular way. The API presented here is
intended to allow exactly that.

UCLASS support is not implemented, because it would not be too useful.
Changing TZC permissions needs to be done with care, so as not to cut
off access to memory we are currently using. One place where we can
use this is at the end of SPL, right before jumping to OP-TEE.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
arch/arm/mach-stm32mp/Makefile
arch/arm/mach-stm32mp/include/mach/tzc.h [new file with mode: 0644]
arch/arm/mach-stm32mp/tzc400.c [new file with mode: 0644]