Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • U-Boot U-Boot
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 8
    • Issues 8
    • List
    • Boards
    • Service Desk
    • Milestones
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • U-BootU-Boot
  • U-BootU-Boot
  • Repository
  • u-boot
  • board
  • sunxi
  • gmac.c
Find file BlameHistoryPermalink
  • Hans de Goede's avatar
    sunxi: Fix gmac not working due to cpu_eth_init no longer being called · fc8991c6
    Hans de Goede authored Mar 17, 2016
    
    
    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>
    fc8991c6

Imprint & Privacy Policy