ARM: tegra: Set up L2 cache using Trusted Foundations firmware
authorDmitry Osipenko <digetx@gmail.com>
Sun, 17 Mar 2019 22:52:07 +0000 (01:52 +0300)
committerThierry Reding <treding@nvidia.com>
Tue, 9 Apr 2019 14:36:23 +0000 (16:36 +0200)
commit6ad27b8350401a3c79899b431097afc361b46374
treef7d73f21148ffd0c70d130172469c46af7e521ce
parentebc7c1a26578683a4d12ab3434a92c225a97e240
ARM: tegra: Set up L2 cache using Trusted Foundations firmware

On Tegra30 L2 cache should be initialized using firmware call if CPU
is running in insecure mode. Set up the required outer-cache write_sec()
callback early during boot using the firmware API, it is always a NO-OP
on T114+ and is NO-OP on T20/30 if Trusted Foundations firmware node
isn't present in device-tree.

Tested-by: Robert Yang <decatf@gmail.com>
Tested-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/mach-tegra/tegra.c