AT91RM9200 Ethernet initial [...]
PATCH 1/1 AT91RM9200 Ethernet initial [...]
Hello list,
inside the automatic U-Boot patch tracking system a new ticket [DNX#2006040142000464] was created:
<snip>
Quoted 60 lines
Hi,
the AT91RM9200 on-chip Ethernet interface is explicitly initialized to use promiscuous mode.
This is probably due to a bug in line 183 of
cpu/arm920t/at91rm9200/ether.cwhich was supposed to clear the statistics counters but instead erroneously disabled reception of broadcast packets - so the driver later enables promiscuous mode in order to receive such broadcasts, like e.g. DHCP responses.The patch below fixes the original bug and lets the interface run in normal (non-promiscuous) mode, which should improve performance on networks with heavy traffic.
Cheers
AndersSigned-off-by Anders Larsen <[email protected]>CHANGELOG:
Fix the initialization of the AT91RM9200 ethernet interface to use non-promiscuous mode
Patch by Lars Munch, 24 Oct 2005---
cpu/arm920t/at91rm9200/ether.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-)cpu/arm920t/at91rm9200/ether.c +0
-0@@ -180,7 +180,7 @@ int eth_init (bd_t * bd) *AT91C_PMC_PCER =1 <<AT91C_ID_EMAC ;/* Peripheral Clock Enable Register */
cpu/arm920t/at91rm9200/ether.c +2
-3- p_mac->EMAC_CFG |=AT91C_EMAC_CSR ;/* Clear statistics */ + p_mac->EMAC_CTL |=AT91C_EMAC_CSR ;/* Clear statistics */ /* Init Ehternet buffers */ for (i =0 ; i <RBF_FRAMEMAX ; i++) {@@ -197,8 +197,7 @@ int eth_init (bd_t * bd) p_mac->EMAC_RBQP = (long ) (&rbfdt[0 ]); p_mac->EMAC_RSR &= ~(AT91C_EMAC_RSR_OVR |AT91C_EMAC_REC |AT91C_EMAC_BNA ); - p_mac->EMAC_CFG = (p_mac->EMAC_CFG |AT91C_EMAC_CAF |AT91C_EMAC_NBC ) - & ~AT91C_EMAC_CLK ; + p_mac->EMAC_CFG &= ~AT91C_EMAC_CLK ;#ifdef CONFIG_AT91C_USE_RMII
p_mac->EMAC_CFG|=AT91C_EMAC_RMII;
Quoted 9 lines
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users
</snip>
Your U-Boot support team