* [U-Boot] [PATCH] AT91: fix EMAC gpio init in at91sam9260_devices.c
@ 2010-12-01 4:59 Reinhard Meyer
2010-12-05 9:02 ` Reinhard Meyer
0 siblings, 1 reply; 2+ messages in thread
From: Reinhard Meyer @ 2010-12-01 4:59 UTC (permalink / raw)
To: u-boot
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.
Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
---
arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c b/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
index f699f4d..c1822b7 100644
--- a/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
+++ b/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
@@ -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
--
1.5.6.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] AT91: fix EMAC gpio init in at91sam9260_devices.c
2010-12-01 4:59 [U-Boot] [PATCH] AT91: fix EMAC gpio init in at91sam9260_devices.c Reinhard Meyer
@ 2010-12-05 9:02 ` Reinhard Meyer
0 siblings, 0 replies; 2+ messages in thread
From: Reinhard Meyer @ 2010-12-05 9:02 UTC (permalink / raw)
To: u-boot
Reinhard Meyer schrieb:
> 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.
>
> Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
> ---
> arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
Applied to u-boot-atmel/next.
Thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-12-05 9:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-01 4:59 [U-Boot] [PATCH] AT91: fix EMAC gpio init in at91sam9260_devices.c Reinhard Meyer
2010-12-05 9:02 ` Reinhard Meyer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox