diff options
author | Stefan Roese <sr@denx.de> | 2010-02-09 18:08:17 -0500 |
---|---|---|
committer | Josh Boyer <jwboyer@linux.vnet.ibm.com> | 2010-02-10 08:21:14 -0500 |
commit | 28ef35eb33d7e291bf0e1fe1137915a7e38805ff (patch) | |
tree | a9d542e87eb8863041ec6d037055edb8f77700c7 /arch/powerpc/sysdev/ppc4xx_soc.c | |
parent | b919ee827e048826786fd7e889a2b04f63382fe6 (diff) |
powerpc/44x: Fix L2-cache support for 460GT
Also set L2C_CFG_RDBW on 460GT platforms and not only on 460EX.
Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Diffstat (limited to 'arch/powerpc/sysdev/ppc4xx_soc.c')
-rw-r--r-- | arch/powerpc/sysdev/ppc4xx_soc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/ppc4xx_soc.c b/arch/powerpc/sysdev/ppc4xx_soc.c index 5b32adc9a9b2..5c014350bf16 100644 --- a/arch/powerpc/sysdev/ppc4xx_soc.c +++ b/arch/powerpc/sysdev/ppc4xx_soc.c | |||
@@ -174,7 +174,8 @@ static int __init ppc4xx_l2c_probe(void) | |||
174 | | L2C_CFG_CPIM | L2C_CFG_TPIM | L2C_CFG_LIM | L2C_CFG_SMCM; | 174 | | L2C_CFG_CPIM | L2C_CFG_TPIM | L2C_CFG_LIM | L2C_CFG_SMCM; |
175 | 175 | ||
176 | /* Check for 460EX/GT special handling */ | 176 | /* Check for 460EX/GT special handling */ |
177 | if (of_device_is_compatible(np, "ibm,l2-cache-460ex")) | 177 | if (of_device_is_compatible(np, "ibm,l2-cache-460ex") || |
178 | of_device_is_compatible(np, "ibm,l2-cache-460gt")) | ||
178 | r |= L2C_CFG_RDBW; | 179 | r |= L2C_CFG_RDBW; |
179 | 180 | ||
180 | mtdcr(dcrbase_l2c + DCRN_L2C0_CFG, r); | 181 | mtdcr(dcrbase_l2c + DCRN_L2C0_CFG, r); |