diff options
author | Mark Jackson <mpfj@mimc.co.uk> | 2008-10-13 06:46:27 -0400 |
---|---|---|
committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-10-13 10:36:11 -0400 |
commit | 198f29358a31cdca1a496d19da90bd5d6c8527ce (patch) | |
tree | 7966da29439dba833f240a60ce7b900d0d7b1813 /arch/avr32/mach-at32ap | |
parent | 45c349b58c58f3922bfdec917aa30ff8425caa3f (diff) |
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/mach-at32ap')
-rw-r--r-- | arch/avr32/mach-at32ap/at32ap700x.c | 4 |
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) | |||
1091 | pin_mask |= (1 << 11); /* RXD2 */ | 1091 | pin_mask |= (1 << 11); /* RXD2 */ |
1092 | pin_mask |= (1 << 12); /* RXD3 */ | 1092 | pin_mask |= (1 << 12); /* RXD3 */ |
1093 | pin_mask |= (1 << 14); /* RXCK */ | 1093 | pin_mask |= (1 << 14); /* RXCK */ |
1094 | #ifndef CONFIG_BOARD_MIMC200 | ||
1094 | pin_mask |= (1 << 18); /* SPD */ | 1095 | pin_mask |= (1 << 18); /* SPD */ |
1096 | #endif | ||
1095 | } | 1097 | } |
1096 | 1098 | ||
1097 | select_peripheral(PIOC, pin_mask, PERIPH_A, 0); | 1099 | select_peripheral(PIOC, pin_mask, PERIPH_A, 0); |
@@ -1112,8 +1114,10 @@ at32_add_device_eth(unsigned int id, struct eth_platform_data *data) | |||
1112 | pin_mask |= (1 << 3); /* MDC */ | 1114 | pin_mask |= (1 << 3); /* MDC */ |
1113 | pin_mask |= (1 << 2); /* MDIO */ | 1115 | pin_mask |= (1 << 2); /* MDIO */ |
1114 | 1116 | ||
1117 | #ifndef CONFIG_BOARD_MIMC200 | ||
1115 | if (!data->is_rmii) | 1118 | if (!data->is_rmii) |
1116 | pin_mask |= (1 << 15); /* SPD */ | 1119 | pin_mask |= (1 << 15); /* SPD */ |
1120 | #endif | ||
1117 | 1121 | ||
1118 | select_peripheral(PIOD, pin_mask, PERIPH_B, 0); | 1122 | select_peripheral(PIOD, pin_mask, PERIPH_B, 0); |
1119 | 1123 | ||