[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:
parent
f75a8a68f3
commit
dfc1d8ef6b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue