aboutsummaryrefslogtreecommitdiffstats
path: root/cpu/at91rm9200/at91rm9200_ether.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/at91rm9200/at91rm9200_ether.c')
-rw-r--r--cpu/at91rm9200/at91rm9200_ether.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpu/at91rm9200/at91rm9200_ether.c b/cpu/at91rm9200/at91rm9200_ether.c
index 2ec888f213..0bc1d89ed0 100644
--- a/cpu/at91rm9200/at91rm9200_ether.c
+++ b/cpu/at91rm9200/at91rm9200_ether.c
@@ -210,6 +210,11 @@ int eth_init (bd_t * bd)
p_mac->EMAC_CFG |= AT91C_EMAC_RMII;
#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;
at91rm92000_GetPhyInterface (& PhyOps);