diff options
Diffstat (limited to 'arch/arm/mach-omap2/omap4-common.c')
-rw-r--r-- | arch/arm/mach-omap2/omap4-common.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/omap4-common.c b/arch/arm/mach-omap2/omap4-common.c index 2f895553e6a8..c81460445c4d 100644 --- a/arch/arm/mach-omap2/omap4-common.c +++ b/arch/arm/mach-omap2/omap4-common.c | |||
@@ -53,6 +53,8 @@ static void omap4_l2x0_disable(void) | |||
53 | 53 | ||
54 | static int __init omap_l2_cache_init(void) | 54 | static int __init omap_l2_cache_init(void) |
55 | { | 55 | { |
56 | u32 aux_ctrl = 0; | ||
57 | |||
56 | /* | 58 | /* |
57 | * To avoid code running on other OMAPs in | 59 | * To avoid code running on other OMAPs in |
58 | * multi-omap builds | 60 | * multi-omap builds |
@@ -72,10 +74,17 @@ static int __init omap_l2_cache_init(void) | |||
72 | * Way size - 32KB (es1.0) | 74 | * Way size - 32KB (es1.0) |
73 | * Way size - 64KB (es2.0 +) | 75 | * Way size - 64KB (es2.0 +) |
74 | */ | 76 | */ |
77 | aux_ctrl = ((1 << L2X0_AUX_CTRL_ASSOCIATIVITY_SHIFT) | | ||
78 | (0x1 << 25) | | ||
79 | (0x1 << L2X0_AUX_CTRL_NS_LOCKDOWN_SHIFT) | | ||
80 | (0x1 << L2X0_AUX_CTRL_NS_INT_CTRL_SHIFT)); | ||
81 | |||
75 | if (omap_rev() == OMAP4430_REV_ES1_0) | 82 | if (omap_rev() == OMAP4430_REV_ES1_0) |
76 | l2x0_init(l2cache_base, 0x0e050000, 0xc0000fff); | 83 | aux_ctrl |= 0x2 << L2X0_AUX_CTRL_WAY_SIZE_SHIFT; |
77 | else | 84 | else |
78 | l2x0_init(l2cache_base, 0x0e070000, 0xc0000fff); | 85 | aux_ctrl |= 0x3 << L2X0_AUX_CTRL_WAY_SIZE_SHIFT; |
86 | |||
87 | l2x0_init(l2cache_base, aux_ctrl, L2X0_AUX_CTRL_MASK); | ||
79 | 88 | ||
80 | /* | 89 | /* |
81 | * Override default outer_cache.disable with a OMAP4 | 90 | * Override default outer_cache.disable with a OMAP4 |