[PATCH 0/2] ARM: at91: add support for L2 cache write_sec() callback

From: Clément Léger
Date: Mon Jun 06 2022 - 10:58:24 EST


When running under OP-TEE the L2 cache is configured by OP-TEE and
can't be modified for the moment. Add necessary function to get
the current execution world of Linux and add early_setup() callback
that will set the .write_sec() callback for the outer cache.


Clément Léger (2):
ARM: at91: add sam_linux_is_in_normal_world() function
ARM: at91: setup outer cache .write_sec() callback if needed

arch/arm/mach-at91/sam_secure.c | 6 ++++++
arch/arm/mach-at91/sam_secure.h | 1 +
arch/arm/mach-at91/sama5.c | 17 +++++++++++++++++
3 files changed, 24 insertions(+)

--
2.36.1