Skip to content
Snippets Groups Projects
Commit 08f0533a authored by Jesse Gilles's avatar Jesse Gilles Committed by Andreas Bießmann
Browse files

ARM: sam9x5: fix ethernet pins in MII mode


Fix pin setting in MII mode

Signed-off-by: default avatarJesse Gilles <jgilles@multitech.com>
Signed-off-by: default avatarAndreas Bießmann <andreas.devel@googlemail.com>
parent fc14fbac
No related branches found
No related tags found
No related merge requests found
...@@ -246,14 +246,14 @@ void at91_macb_hw_init(void) ...@@ -246,14 +246,14 @@ void at91_macb_hw_init(void)
#ifndef CONFIG_RMII #ifndef CONFIG_RMII
/* Only emac0 support MII */ /* Only emac0 support MII */
if (has_emac0()) { if (has_emac0()) {
at91_set_b_periph(AT91_PIO_PORTB, 16, 0); /* ECRS */ at91_set_a_periph(AT91_PIO_PORTB, 16, 0); /* ECRS */
at91_set_b_periph(AT91_PIO_PORTB, 17, 0); /* ECOL */ at91_set_a_periph(AT91_PIO_PORTB, 17, 0); /* ECOL */
at91_set_b_periph(AT91_PIO_PORTB, 13, 0); /* ERX2 */ at91_set_a_periph(AT91_PIO_PORTB, 13, 0); /* ERX2 */
at91_set_b_periph(AT91_PIO_PORTB, 14, 0); /* ERX3 */ at91_set_a_periph(AT91_PIO_PORTB, 14, 0); /* ERX3 */
at91_set_b_periph(AT91_PIO_PORTB, 15, 0); /* ERXCK */ at91_set_a_periph(AT91_PIO_PORTB, 15, 0); /* ERXCK */
at91_set_b_periph(AT91_PIO_PORTB, 11, 0); /* ETX2 */ at91_set_a_periph(AT91_PIO_PORTB, 11, 0); /* ETX2 */
at91_set_b_periph(AT91_PIO_PORTB, 12, 0); /* ETX3 */ at91_set_a_periph(AT91_PIO_PORTB, 12, 0); /* ETX3 */
at91_set_b_periph(AT91_PIO_PORTB, 8, 0); /* ETXER */ at91_set_a_periph(AT91_PIO_PORTB, 8, 0); /* ETXER */
} }
#endif #endif
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment