Skip to contentSkip to conversation

AT91: fix EMAC gpio init in at91sam9260_devices.c

PATCH New Reinhard Meyer 1 participant 2 messages Dec 1, 2010 – Dec 5, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 AT91: fix EMAC gpio init in at91sam9260_devices.c

The AT91SAM9G20 BOOT ROM apparently initializes PA23 and PA24 to multi drive (open drain). Revert this, if those pins are going to be used for MII.

---
 arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c +5 -0
index f699f4d..c1822b7 100644
@@ -204,6 +204,11 @@ void at91_macb_hw_init(void)
 #else
 	at91_set_b_periph(AT91_PIO_PORTA, 23, 0);	/* ETX2 */
 	at91_set_b_periph(AT91_PIO_PORTA, 24, 0);	/* ETX3 */
+#if defined(CONFIG_AT91SAM9G20)
+	/* 9G20 BOOT ROM initializes those pins to multi-drive, undo that */
+	at91_set_pio_multi_drive(AT91_PIO_PORTA, 23, 0);
+	at91_set_pio_multi_drive(AT91_PIO_PORTA, 24, 0);
+#endif
 #endif
 	at91_set_b_periph(AT91_PIO_PORTA, 22, 0);	/* ETXER */
 #endif
Signature · 1 line
1.5.6.5
#1 lore raw

PATCH 1/1 AT91: fix EMAC gpio init in at91sam9260_devices.c

Quoted 7 lines · Reinhard Meyer

The AT91SAM9G20 BOOT ROM apparently initializes PA23 and PA24 to multi drive (open drain). Revert this, if those pins are going to be used for MII.

---
 arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Applied to u-boot-atmel/next.
Thanks