Commit 4bdb1577 authored by Santosh Shilimkar's avatar Santosh Shilimkar Committed by Russell King

ARM: 6755/1: omap4: l2x0: Populate set_debug() function and enable Errata 727915

Populate the l2x0 set_debug function pointer with OMAP secure call
and enable the PL310 Errata 727915

This patch has dependency on the earlier patch
ARM: l2x0: Errata fix for flush by Way operation can cause data
corruption
Signed-off-by: default avatarSantosh Shilimkar <santosh.shilimkar@ti.com>
Reviewed-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 2839e06c
...@@ -45,6 +45,7 @@ config ARCH_OMAP4 ...@@ -45,6 +45,7 @@ config ARCH_OMAP4
select CPU_V7 select CPU_V7
select ARM_GIC select ARM_GIC
select PL310_ERRATA_588369 select PL310_ERRATA_588369
select PL310_ERRATA_727915
select ARM_ERRATA_720789 select ARM_ERRATA_720789
select ARCH_HAS_OPP select ARCH_HAS_OPP
select PM_OPP if PM select PM_OPP if PM
......
...@@ -52,6 +52,12 @@ static void omap4_l2x0_disable(void) ...@@ -52,6 +52,12 @@ static void omap4_l2x0_disable(void)
omap_smc1(0x102, 0x0); omap_smc1(0x102, 0x0);
} }
static void omap4_l2x0_set_debug(unsigned long val)
{
/* Program PL310 L2 Cache controller debug register */
omap_smc1(0x100, val);
}
static int __init omap_l2_cache_init(void) static int __init omap_l2_cache_init(void)
{ {
u32 aux_ctrl = 0; u32 aux_ctrl = 0;
...@@ -99,6 +105,7 @@ static int __init omap_l2_cache_init(void) ...@@ -99,6 +105,7 @@ static int __init omap_l2_cache_init(void)
* specific one * specific one
*/ */
outer_cache.disable = omap4_l2x0_disable; outer_cache.disable = omap4_l2x0_disable;
outer_cache.set_debug = omap4_l2x0_set_debug;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment