mbox series

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

Message ID 20220606145701.185552-1-clement.leger@bootlin.com (mailing list archive)
Headers show
Series ARM: at91: add support for L2 cache write_sec() callback | expand

Message

Clément Léger June 6, 2022, 2:56 p.m. UTC
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(+)