Skip to content

Commit

Permalink
[AVR32] Don't wire up macb0 unless SW6 is in default position
Browse files Browse the repository at this point in the history
If the user wants to sacrifice macb0 for more GPIOs, let him.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
  • Loading branch information
Kristoffer Nyborg Gregertsen authored and Haavard Skinnemoen committed Jul 18, 2007
1 parent 95a4226 commit d4003ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/avr32/boards/atstk1000/atstk1002.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,9 @@ static int __init atstk1002_init(void)
#endif
at32_add_device_usart(2);

#ifndef CONFIG_BOARD_ATSTK1002_SW6_CUSTOM
set_hw_addr(at32_add_device_eth(0, &eth_data[0]));

#endif
#ifndef CONFIG_BOARD_ATSTK1002_SW1_CUSTOM
at32_add_device_spi(0, spi0_board_info, ARRAY_SIZE(spi0_board_info));
#endif
Expand Down

0 comments on commit d4003ba

Please sign in to comment.