Skip to content

Commit

Permalink
powerpc/44x: Fix L2-cache support for 460GT
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stefan Roese authored and Josh Boyer committed Feb 10, 2010
1 parent b919ee8 commit 28ef35e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/powerpc/sysdev/ppc4xx_soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 28ef35e

Please sign in to comment.