summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2008-10-21 13:14:33 +1100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2008-10-21 13:14:33 +1100
commitc1075fb7ec62b7ac0ac6baee2ceeb77270206aef (patch)
treecad7eac9f6755e7d73f07ae034db3bdb97d4b3cf /arch/powerpc/platforms
parentdfe218b7ef0c1d561a0d5ce294c173f1551985ff (diff)
parent51d9861e9e09c5c0066e5e5d9bb0009be1957899 (diff)
downloadop-kernel-dev-c1075fb7ec62b7ac0ac6baee2ceeb77270206aef.zip
op-kernel-dev-c1075fb7ec62b7ac0ac6baee2ceeb77270206aef.tar.gz
Merge commit 'gcl/gcl-next'
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r--arch/powerpc/platforms/52xx/mpc52xx_common.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/52xx/mpc52xx_common.c b/arch/powerpc/platforms/52xx/mpc52xx_common.c
index 044b4e6..ae7c34f 100644
--- a/arch/powerpc/platforms/52xx/mpc52xx_common.c
+++ b/arch/powerpc/platforms/52xx/mpc52xx_common.c
@@ -99,11 +99,14 @@ mpc5200_setup_xlb_arbiter(void)
out_be32(&xlb->master_pri_enable, 0xff);
out_be32(&xlb->master_priority, 0x11111111);
- /* Disable XLB pipelining
+ /*
+ * Disable XLB pipelining
* (cfr errate 292. We could do this only just before ATA PIO
* transaction and re-enable it afterwards ...)
+ * Not needed on MPC5200B.
*/
- out_be32(&xlb->config, in_be32(&xlb->config) | MPC52xx_XLB_CFG_PLDIS);
+ if ((mfspr(SPRN_SVR) & MPC5200_SVR_MASK) == MPC5200_SVR)
+ out_be32(&xlb->config, in_be32(&xlb->config) | MPC52xx_XLB_CFG_PLDIS);
iounmap(xlb);
}
OpenPOWER on IntegriCloud