Skip to contentSkip to conversation

powerpc/44x: Fix L2-cache support for 460GT

PATCH New Stefan Roese 1 participant 1 message Feb 10, 2010 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/44x: Fix L2-cache support for 460GT

Also set L2C_CFG_RDBW on 460GT platforms and not only on 460EX.

---
 arch/powerpc/sysdev/ppc4xx_soc.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
arch/powerpc/sysdev/ppc4xx_soc.c +2 -1
index 5b32adc..5c01435 100644
@@ -174,7 +174,8 @@ static int __init ppc4xx_l2c_probe(void)
 		| L2C_CFG_CPIM | L2C_CFG_TPIM | L2C_CFG_LIM | L2C_CFG_SMCM;
 
 	/* Check for 460EX/GT special handling */
-	if (of_device_is_compatible(np, "ibm,l2-cache-460ex"))
+	if (of_device_is_compatible(np, "ibm,l2-cache-460ex") ||
+	    of_device_is_compatible(np, "ibm,l2-cache-460gt"))
 		r |= L2C_CFG_RDBW;
 
 	mtdcr(dcrbase_l2c + DCRN_L2C0_CFG, r);
Signature · 1 line
1.6.6.1