Skip to content
Commit fc8991c6 authored by Hans de Goede's avatar Hans de Goede
Browse files

sunxi: Fix gmac not working due to cpu_eth_init no longer being called



cpu_eth_init is no longer called for dm enabled eth drivers, this
was causing the sunxi gmac eth controller to no longer work in u-boot.

This commit fixes this by calling the clock, reset and pinmux setup
function from s_init() and enabling the phy power pin (if any) from
board_init().

The enabling of phy power cannot be done from s_init because it uses dm
and dm is not ready yet at this point.

Note that the mdelay is dropped as the phy gets enabled much earlier
now, so it is no longer needed.

Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Acked-by: default avatarIan Campbell <ijc@hellion.org.uk>
Tested-by: default avatarKarsten Merker <merker@debian.org>
Tested-by: default avatarMichael Haas <haas@computerlinguist.org>
parent 948603d4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment