9
0
Fork 0

[macb] clear RMII bit when using plain MII

When operating in plain MII mode, the driver assumes the RMII bit not
set. Although this is the power on reset value, clearing this bit helps
when playing with different network setups.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
Marc Kleine-Budde 2009-01-19 09:59:45 +01:00
parent f75a8a68f3
commit dfc1d8ef6b
1 changed files with 2 additions and 0 deletions

View File

@ -261,6 +261,8 @@ static int macb_init(struct eth_device *edev)
if (macb->flags & AT91SAM_ETHER_RMII)
val |= MACB_BIT(RMII);
else
val &= ~MACB_BIT(RMII);
#if defined(CONFIG_ARCH_AT91SAM9)
val |= MACB_BIT(CLKEN);