
18 Oct
2003
18 Oct
'03
6:19 p.m.
Hi there,
I think there's terrible bug in the U-Boot ethernet driver for AT91RM9200 cpus.
The function at91rm9200_EmacWritePhy() does not write the correct data. Attached patch fixes that.
Thanks,
--
Steven Scholz
imc Measurement & Control imc Meßsysteme GmbH
Voltastr. 5 Voltastr. 5
13355 Berlin 13355 Berlin
Germany Deutschland
fon: +49 30 467090-0 Tel: 030 / 467090-0
fax: +49 30 4631576 fax: 030 / 4631576
+ diff -u ./cpu/at91rm9200/at91rm9200_ether.c.orig ./cpu/at91rm9200/at91rm9200_ether.c
--- ./cpu/at91rm9200/at91rm9200_ether.c.orig Sat Oct 18 18:14:46 2003
+++ ./cpu/at91rm9200/at91rm9200_ether.c Sat Oct 18 18:15:33 2003
@@ -341,7 +341,8 @@
{
p_mac->EMAC_MAN = (AT91C_EMAC_HIGH & ~AT91C_EMAC_LOW) |
AT91C_EMAC_CODE_802_3 | AT91C_EMAC_RW_W |
- (RegisterAddress << 18);
+ (RegisterAddress << 18) |
+ (*pOutput);
udelay (10000);