ARM: tegra: only run PL310 init on systems with one
authorStephen Warren <[email protected]>
Tue, 18 Feb 2014 23:51:58 +0000 (16:51 -0700)
committerOlof Johansson <[email protected]>
Wed, 19 Feb 2014 04:30:59 +0000 (20:30 -0800)
commit8859685785bfafadf9bc922dd3a2278e59886947
treecf73871e0e0ccb40547685edf64d0e7a43c81274
parent688b56b485578465f6619b9529d08c2b95641915
ARM: tegra: only run PL310 init on systems with one

Fix tegra_init_cache() to check whether the system has a PL310 cache
before touching the PL310 registers. This prevents access to non-existent
registers on Tegra114 and later.

Note for stable kernels:
In <= v3.12, the file to patch is arch/arm/mach-tegra/common.c.

Cc: <[email protected]> # v3.9+
Signed-off-by: Stephen Warren <[email protected]>
Signed-off-by: Olof Johansson <[email protected]>
arch/arm/mach-tegra/tegra.c