ARM: tegra: Enable SMMU when going non-secure
authorThierry Reding <treding@nvidia.com>
Tue, 21 Apr 2015 05:18:38 +0000 (07:18 +0200)
committerTom Warren <twarren@nvidia.com>
Wed, 13 May 2015 16:24:16 +0000 (09:24 -0700)
commit79cf644e2d330cf6fdd3ef489e44f9fb1c6f196a
tree6acd64feb97811ee50ab957aa5688ae42b35411e
parenta0d0a594ccf54f4f430d271cab9ddb95958a9495
ARM: tegra: Enable SMMU when going non-secure

Make sure to enable the SMMU when booting the kernel in non-secure mode.
This is necessary because some of the SMMU registers are restricted to
TrustZone-secured requestors, hence the kernel wouldn't be able to turn
the SMMU on. At the same time, enable translation for all memory clients
for the same reasons. The kernel will still be able to control SMMU IOVA
translation using the per-SWGROUP enable bits.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
arch/arm/include/asm/arch-tegra124/mc.h
arch/arm/mach-tegra/ap.c