mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
net, davinci_emac: let the EMAC detect the PHYs
Once the MDIO state machine has been initialized and enabled, it starts polling all 32 PHY addresses on the MDIO bus, looking for an active PHY. Add a 5 ms delay, so all PHYs are for sure detected. This problem was detected on the cmc board with a KSZ8864 switch. Signed-off-by: Heiko Schocher <hs@denx.de> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
This commit is contained in:
parent
c3b4a475d7
commit
19fdf9a1c3
1 changed files with 3 additions and 0 deletions
|
@ -680,6 +680,9 @@ int davinci_emac_initialize(void)
|
|||
|
||||
davinci_eth_mdio_enable();
|
||||
|
||||
/* let the EMAC detect the PHYs */
|
||||
udelay(5000);
|
||||
|
||||
for (i = 0; i < 256; i++) {
|
||||
if (readl(&adap_mdio->ALIVE))
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue