diff options
author | Kristoffer Nyborg Gregertsen <kngregertsen@norway.atmel.com> | 2007-07-06 08:37:30 -0400 |
---|---|---|
committer | Haavard Skinnemoen <hskinnemoen@atmel.com> | 2007-07-18 14:45:52 -0400 |
commit | d4003ba0a11f9fb484bd45fd83b75f7108871ef2 (patch) | |
tree | 3daea9e3f7182ae1749b6acb546905663da384da /arch/avr32/boards/atstk1000/atstk1002.c | |
parent | 95a42267cd933a95275c1d6835010d662259f74e (diff) |
[AVR32] Don't wire up macb0 unless SW6 is in default position
If the user wants to sacrifice macb0 for more GPIOs, let him.
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'arch/avr32/boards/atstk1000/atstk1002.c')
-rw-r--r-- | arch/avr32/boards/atstk1000/atstk1002.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/avr32/boards/atstk1000/atstk1002.c b/arch/avr32/boards/atstk1000/atstk1002.c index ed283045f3bf..d88ac1110101 100644 --- a/arch/avr32/boards/atstk1000/atstk1002.c +++ b/arch/avr32/boards/atstk1000/atstk1002.c | |||
@@ -154,8 +154,9 @@ static int __init atstk1002_init(void) | |||
154 | #endif | 154 | #endif |
155 | at32_add_device_usart(2); | 155 | at32_add_device_usart(2); |
156 | 156 | ||
157 | #ifndef CONFIG_BOARD_ATSTK1002_SW6_CUSTOM | ||
157 | set_hw_addr(at32_add_device_eth(0, ð_data[0])); | 158 | set_hw_addr(at32_add_device_eth(0, ð_data[0])); |
158 | 159 | #endif | |
159 | #ifndef CONFIG_BOARD_ATSTK1002_SW1_CUSTOM | 160 | #ifndef CONFIG_BOARD_ATSTK1002_SW1_CUSTOM |
160 | at32_add_device_spi(0, spi0_board_info, ARRAY_SIZE(spi0_board_info)); | 161 | at32_add_device_spi(0, spi0_board_info, ARRAY_SIZE(spi0_board_info)); |
161 | #endif | 162 | #endif |