/* Enable the MDIO bit in MAC control register When not called from an interrupt-handler, access to the PHY must be protected by a spinlock.  */
static void enable_mdi(void)
/* Enable the MDIO bit in MAC control register When not called from an interrupt-handler, access to the PHY must be protected by a spinlock.  */
static void enable_mdi(void)
{
	unsigned long ctl;
	ctl = at91_emac_read(AT91_EMAC_CTL);
	at91_emac_write(AT91_EMAC_CTL, ctl | AT91_EMAC_MPE);
}