Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 198f2935 authored by Mark Jackson's avatar Mark Jackson Committed by Haavard Skinnemoen
Browse files

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: default avatarMark Jackson <mpfj@mimc.co.uk>
Signed-off-by: default avatarHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
parent 45c349b5
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -1091,7 +1091,9 @@ at32_add_device_eth(unsigned int id, struct eth_platform_data *data)
			pin_mask |= (1 << 11);	/* RXD2 */
			pin_mask |= (1 << 11);	/* RXD2 */
			pin_mask |= (1 << 12);	/* RXD3 */
			pin_mask |= (1 << 12);	/* RXD3 */
			pin_mask |= (1 << 14);	/* RXCK */
			pin_mask |= (1 << 14);	/* RXCK */
#ifndef CONFIG_BOARD_MIMC200
			pin_mask |= (1 << 18);	/* SPD  */
			pin_mask |= (1 << 18);	/* SPD  */
#endif
		}
		}


		select_peripheral(PIOC, pin_mask, PERIPH_A, 0);
		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 << 3);	/* MDC  */
		pin_mask |= (1 << 2);	/* MDIO */
		pin_mask |= (1 << 2);	/* MDIO */


#ifndef CONFIG_BOARD_MIMC200
		if (!data->is_rmii)
		if (!data->is_rmii)
			pin_mask |= (1 << 15);	/* SPD  */
			pin_mask |= (1 << 15);	/* SPD  */
#endif


		select_peripheral(PIOD, pin_mask, PERIPH_B, 0);
		select_peripheral(PIOD, pin_mask, PERIPH_B, 0);