Skip to content

Commit d4003ba

Browse files
Kristoffer Nyborg GregertsenHaavard Skinnemoen
authored andcommitted
[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 <[email protected]>
1 parent 95a4226 commit d4003ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/avr32/boards/atstk1000/atstk1002.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,9 @@ static int __init atstk1002_init(void)
154154
#endif
155155
at32_add_device_usart(2);
156156

157+
#ifndef CONFIG_BOARD_ATSTK1002_SW6_CUSTOM
157158
set_hw_addr(at32_add_device_eth(0, &eth_data[0]));
158-
159+
#endif
159160
#ifndef CONFIG_BOARD_ATSTK1002_SW1_CUSTOM
160161
at32_add_device_spi(0, spi0_board_info, ARRAY_SIZE(spi0_board_info));
161162
#endif

0 commit comments

Comments
 (0)