Skip to content
Snippets Groups Projects
Commit ba83a307 authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

Patch by Steven Scholz, 04 Apr 2005:

Make sure that MDIO clock does not exceed 2.5 MHz on AT91
parent 101e8dfa
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
Changes for U-Boot 1.1.3: Changes for U-Boot 1.1.3:
====================================================================== ======================================================================
* Patch by Steven Scholz, 04 Apr 2005:
Make sure that MDIO clock does not exceed 2.5 MHz on AT91
* Fix timer code for ARM systems: make sure that udelay() does not * Fix timer code for ARM systems: make sure that udelay() does not
reset timers so it's save to use udelay() in timeout code. reset timers so it's save to use udelay() in timeout code.
......
...@@ -210,6 +210,11 @@ int eth_init (bd_t * bd) ...@@ -210,6 +210,11 @@ int eth_init (bd_t * bd)
p_mac->EMAC_CFG |= AT91C_EMAC_RMII; p_mac->EMAC_CFG |= AT91C_EMAC_RMII;
#endif #endif
#if (AT91C_MASTER_CLOCK > 40000000)
/* MDIO clock must not exceed 2.5 MHz, so enable MCK divider */
p_mac->EMAC_CFG |= AT91C_EMAC_CLK_HCLK_64;
#endif
p_mac->EMAC_CTL |= AT91C_EMAC_TE | AT91C_EMAC_RE; p_mac->EMAC_CTL |= AT91C_EMAC_TE | AT91C_EMAC_RE;
at91rm92000_GetPhyInterface (& PhyOps); at91rm92000_GetPhyInterface (& PhyOps);
......
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