summaryrefslogtreecommitdiffstats
path: root/board/sunxi/ahci.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2016-03-17 13:53:03 +0100
committerHans de Goede <hdegoede@redhat.com>2016-03-23 22:04:13 +0100
commitfc8991c61c393ce6a9d3dfc97cb56dbbd9e8cbba (patch)
tree89e35fbbac61b66d4623f91f17d9707b8b8f37bb /board/sunxi/ahci.c
parent948603d4d637a0e04a3214253b911cfc4ed11220 (diff)
downloadblackbird-obmc-uboot-fc8991c61c393ce6a9d3dfc97cb56dbbd9e8cbba.tar.gz
blackbird-obmc-uboot-fc8991c61c393ce6a9d3dfc97cb56dbbd9e8cbba.zip
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: Hans de Goede <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk> Tested-by: Karsten Merker <merker@debian.org> Tested-by: Michael Haas <haas@computerlinguist.org>
Diffstat (limited to 'board/sunxi/ahci.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud