summaryrefslogtreecommitdiffstats
path: root/arch/m68knommu/platform/527x/config.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-04-24 08:45:53 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2009-04-24 08:45:53 -0700
commit9fe9293d14e8418f29136216f0180f47270a916a (patch)
tree62e4efbb4833940a6eafd98d950275c5b3f08c66 /arch/m68knommu/platform/527x/config.c
parenta4277bf122e907e4fec509fc0bd9bf5fde30b14e (diff)
parent64f68416e794d59a42ddffdf1c5b7f026a4f23d5 (diff)
downloadtalos-obmc-linux-9fe9293d14e8418f29136216f0180f47270a916a.tar.gz
talos-obmc-linux-9fe9293d14e8418f29136216f0180f47270a916a.zip
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu: m68knommu: update the default config for the ColdFire 5407C3 board m68knommu: update the default config for the ColdFire 5307C3 board m68knommu: update the default config for the ColdFire 5257EVB board m68knommu: update the default config for the ColdFire 5249EVB. m68knommu: add a defconfig for the ColdFire M5272C3 board m68knommu: update the defconfig for the ColdFire 5208evb board m68knommu: fix DMA support for ColdFire m68knommu: remove unused kernel stats offsets m68knommu: fix missing .data.cacheline_aligned section m68knommu: Fixed GPIO pin initialization for CONFIG_M5271 FEC.
Diffstat (limited to 'arch/m68knommu/platform/527x/config.c')
-rw-r--r--arch/m68knommu/platform/527x/config.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/m68knommu/platform/527x/config.c b/arch/m68knommu/platform/527x/config.c
index 49343fb157b0..428b15922ef5 100644
--- a/arch/m68knommu/platform/527x/config.c
+++ b/arch/m68knommu/platform/527x/config.c
@@ -189,10 +189,15 @@ static void __init m527x_fec_init(void)
m527x_fec_irq_init(0);
/* Set multi-function pins to ethernet mode for fec0 */
+#if defined(CONFIG_M5271)
+ v = readb(MCF_IPSBAR + 0x100047);
+ writeb(v | 0xf0, MCF_IPSBAR + 0x100047);
+#else
par = readw(MCF_IPSBAR + 0x100082);
writew(par | 0xf00, MCF_IPSBAR + 0x100082);
v = readb(MCF_IPSBAR + 0x100078);
writeb(v | 0xc0, MCF_IPSBAR + 0x100078);
+#endif
#ifdef CONFIG_FEC2
m527x_fec_irq_init(1);
OpenPOWER on IntegriCloud