diff options
Diffstat (limited to 'arch/arm/mach-omap2/omap4-common.c')
| -rw-r--r-- | arch/arm/mach-omap2/omap4-common.c | 10 | 
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/omap4-common.c b/arch/arm/mach-omap2/omap4-common.c index b557cc2c4b1..2f895553e6a 100644 --- a/arch/arm/mach-omap2/omap4-common.c +++ b/arch/arm/mach-omap2/omap4-common.c @@ -68,10 +68,14 @@ static int __init omap_l2_cache_init(void)  	omap_smc1(0x102, 0x1);  	/* -	 * 32KB way size, 16-way associativity, -	 * parity disabled +	 * 16-way associativity, parity disabled +	 * Way size - 32KB (es1.0) +	 * Way size - 64KB (es2.0 +)  	 */ -	l2x0_init(l2cache_base, 0x0e050000, 0xc0000fff); +	if (omap_rev() == OMAP4430_REV_ES1_0) +		l2x0_init(l2cache_base, 0x0e050000, 0xc0000fff); +	else +		l2x0_init(l2cache_base, 0x0e070000, 0xc0000fff);  	/*  	 * Override default outer_cache.disable with a OMAP4  |