]> git.sur5r.net Git - u-boot/commit
mx6sxsabresd: Fix Ethernet PHY reset sequence
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 23 Nov 2015 18:18:02 +0000 (16:18 -0200)
committerStefano Babic <sbabic@denx.de>
Mon, 7 Dec 2015 13:55:24 +0000 (14:55 +0100)
commit29bc24ec4f9f159b3fdaf9c85cce89504a54782a
tree8c9544b62d4fa31f34961c7b8e41825406b1866f
parent6768146aeff0bd67a68ec6e0438667d505971449
mx6sxsabresd: Fix Ethernet PHY reset sequence

Since commit 59370f3fcd1350 ("net: phy: delay only if reset handler is
registered") Ethernet is no longer functional.

This commit does not have an issue in itself, but it revelead a problem
with the Ethernet initialization.

Fix this by calling enable_fec_anatop_clock() earlier and also
by adding a 10ms reset delay as recommended in the AR8031 datasheet.

Suggested-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Reviewed-by: Stefano Babic <sbabic@denx.de>
board/freescale/mx6sxsabresd/mx6sxsabresd.c