diff options
Diffstat (limited to 'arch/m68knommu')
-rw-r--r-- | arch/m68knommu/platform/527x/config.c | 5 |
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) | |||
189 | m527x_fec_irq_init(0); | 189 | m527x_fec_irq_init(0); |
190 | 190 | ||
191 | /* Set multi-function pins to ethernet mode for fec0 */ | 191 | /* Set multi-function pins to ethernet mode for fec0 */ |
192 | #if defined(CONFIG_M5271) | ||
193 | v = readb(MCF_IPSBAR + 0x100047); | ||
194 | writeb(v | 0xf0, MCF_IPSBAR + 0x100047); | ||
195 | #else | ||
192 | par = readw(MCF_IPSBAR + 0x100082); | 196 | par = readw(MCF_IPSBAR + 0x100082); |
193 | writew(par | 0xf00, MCF_IPSBAR + 0x100082); | 197 | writew(par | 0xf00, MCF_IPSBAR + 0x100082); |
194 | v = readb(MCF_IPSBAR + 0x100078); | 198 | v = readb(MCF_IPSBAR + 0x100078); |
195 | writeb(v | 0xc0, MCF_IPSBAR + 0x100078); | 199 | writeb(v | 0xc0, MCF_IPSBAR + 0x100078); |
200 | #endif | ||
196 | 201 | ||
197 | #ifdef CONFIG_FEC2 | 202 | #ifdef CONFIG_FEC2 |
198 | m527x_fec_irq_init(1); | 203 | m527x_fec_irq_init(1); |