ARM: trusted_foundations: Support L2 cache maintenance
authorDmitry Osipenko <digetx@gmail.com>
Sun, 17 Mar 2019 22:52:04 +0000 (01:52 +0300)
committerThierry Reding <treding@nvidia.com>
Tue, 9 Apr 2019 14:36:16 +0000 (16:36 +0200)
commitebca2a6ee161502828de017b28a8f1d7422073f0
treec3f9e1206650ce44e203f71c6c3d3de529a49a69
parent9e98c678c2d6ae3a17cb2de55d17f69dddaa231b
ARM: trusted_foundations: Support L2 cache maintenance

Implement L2 cache initialization firmware callback that should be
invoked early during boot in order to set up the required outer cache
driver's callbacks and add the callback required for L2X0 maintenance.

Partially based on work done by Michał Mirosław [1].

[1] https://www.spinics.net/lists/arm-kernel/msg594765.html

Tested-by: Robert Yang <decatf@gmail.com>
Tested-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm/firmware/trusted_foundations.c
arch/arm/include/asm/trusted_foundations.h