summaryrefslogtreecommitdiffstats
path: root/arch/avr32
diff options
context:
space:
mode:
authorMark Jackson <mpfj@mimc.co.uk>2008-10-13 10:46:27 +0000
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>2008-10-13 16:36:11 +0200
commit198f29358a31cdca1a496d19da90bd5d6c8527ce (patch)
tree7966da29439dba833f240a60ce7b900d0d7b1813 /arch/avr32
parent45c349b58c58f3922bfdec917aa30ff8425caa3f (diff)
downloadlinux-198f29358a31cdca1a496d19da90bd5d6c8527ce.tar.gz
linux-198f29358a31cdca1a496d19da90bd5d6c8527ce.tar.bz2
linux-198f29358a31cdca1a496d19da90bd5d6c8527ce.zip
avr32: Fix MIMC200 board use of SPD network pins
The MIMC200 board uses the SPD output pin from the Ethernet MACs for other purposes. One of these is as a board-reset, so I've had to #define off the SPD output pin declaration. This is probably not the best way of achieving this, but works in the current framework. Signed-off-by: Mark Jackson <mpfj@mimc.co.uk> Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Diffstat (limited to 'arch/avr32')
-rw-r--r--arch/avr32/mach-at32ap/at32ap700x.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/avr32/mach-at32ap/at32ap700x.c b/arch/avr32/mach-at32ap/at32ap700x.c
index 813b6844cdf6..caec25a2eec6 100644
--- a/arch/avr32/mach-at32ap/at32ap700x.c
+++ b/arch/avr32/mach-at32ap/at32ap700x.c
@@ -1091,7 +1091,9 @@ at32_add_device_eth(unsigned int id, struct eth_platform_data *data)
pin_mask |= (1 << 11); /* RXD2 */
pin_mask |= (1 << 12); /* RXD3 */
pin_mask |= (1 << 14); /* RXCK */
+#ifndef CONFIG_BOARD_MIMC200
pin_mask |= (1 << 18); /* SPD */
+#endif
}
select_peripheral(PIOC, pin_mask, PERIPH_A, 0);
@@ -1112,8 +1114,10 @@ at32_add_device_eth(unsigned int id, struct eth_platform_data *data)
pin_mask |= (1 << 3); /* MDC */
pin_mask |= (1 << 2); /* MDIO */
+#ifndef CONFIG_BOARD_MIMC200
if (!data->is_rmii)
pin_mask |= (1 << 15); /* SPD */
+#endif
select_peripheral(PIOD, pin_mask, PERIPH_B, 0);