ARM: imx: Do L2 errata only if the L2 cache isn't enabled
authorDirk Behme <dirk.behme@de.bosch.com>
Fri, 19 Feb 2016 06:50:12 +0000 (07:50 +0100)
committerShawn Guo <shawnguo@kernel.org>
Sun, 28 Feb 2016 07:55:26 +0000 (15:55 +0800)
commitbc3d8ede3a1d1336507d6a382764319cbbc9cf7a
treecdda4de4756bc495f76a8eac60c6619bb2b1d34b
parentb4042a4c01b815f2fa63d237b9fe03204b7ab232
ARM: imx: Do L2 errata only if the L2 cache isn't enabled

All the generic L2 cache handling code is encapsulated by a
check if the L2 cache is enabled. If it's enabled already, the code
is skipped. The write to the L2-Cache controller from non-secure
world causes an imprecise external abort. This is needed in
scenarios where one of the cores runs an other OS, e.g. an RTOS.

For the i.MX6 specific L2 cache handling we missed this check.
Add it.

Signed-off-by: Marcel Grosshans <MarcelViktor.Grosshans@de.bosch.com>
Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/mach-imx/system.c