24 Mar, 2016

1 commit

  • 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
    Acked-by: Ian Campbell
    Tested-by: Karsten Merker
    Tested-by: Michael Haas

    Hans de Goede
     

04 May, 2015

1 commit

  • sun6i and newer (derived) SoCs such as the sun8i-a23, sun8i-a33 and sun9i
    have a various things in common, like having separate ahb reset control
    registers, the SID living inside the pmic, custom pmic busses, new style
    watchdog, etc.

    This commit introduces a new hidden SUNXI_GEN_SUN6I Kconfig bool which can be
    used to check for these features avoiding the need for an ever growing list
    of "#if defined CONFIG_MACH_SUN?I" conditionals as we add support for more
    "new style" sunxi SoCs.

    Note that this commit changes the behavior of the gmac and hdmi code for
    sun8i and the upcoming sun9i devices. This does not matter as sun8i does
    not have gmac nor hdmi, and sun9i has new hardware-blocks for these so
    the old code will not work there.

    Also this is intentional as if a sun8i / sun9i variant which does use the
    old hwblocks shows up then the GEN_SUN6I code paths will be the right ones
    to use.

    For completeness this also adds a SUNXI_GEN_SUN4I bool for A10/A13/A20.

    Signed-off-by: Hans de Goede
    Acked-by: Ian Campbell

    Hans de Goede
     

19 Apr, 2015

1 commit


15 Apr, 2015

1 commit


02 Feb, 2015

1 commit


14 Jan, 2015

1 commit

  • Add support for the new Bananapro A20 development board from lemaker.org.
    This board features 1G RAM, 2 USB A receptacles, 1 micro USB receptacle for
    OTG, 1 micro USB receptacle for power, HDMI, sata, Gbit ethernet, ir receiver,
    3.5 mm jack for a/v out, on board microphone, 40 gpio pins and sdio wifi.

    Signed-off-by: Hans de Goede
    Acked-by: Ian Campbell

    Hans de Goede
     

25 Nov, 2014

1 commit


13 Nov, 2014

1 commit


08 Oct, 2014

1 commit

  • In order for the gmac nic to work reliable on the Bananapi, we need to set
    bits 10-12 GTXDC "GMAC Transmit Clock Delay Chain" of the GMAC clk register
    (0x01c20164) to 3.

    Without this about 9 out of 10 ethernet packets get lost, with this setting
    there is no packet loss.

    So far setting these bits is only necessary on the Bananapi, so this commit
    solves this with a bit of #ifdef CONFIG_BANANAPI code. If in the future we
    need to do something similar for other boards, we can create a specific
    CONFIG_FOO option for this then.

    Reported-by: Karsten Merker
    Signed-off-by: Hans de Goede
    Tested-by: Karsten Merker
    Tested-by: Zoltan HERPAI
    Tested-by: Tony Zhang
    Acked-by: Ian Campbell

    Hans de Goede
     

07 Jul, 2014

1 commit


25 May, 2014

1 commit

  • Add support for the GMAC Ethernet controller on Allwinner A20 (sun7i)
    processors. Enable for the Cubietruck.

    Signed-off-by: Chen-Yu Tsai
    Signed-off-by: Jens Kuske
    Signed-off-by: Ian Campbell
    Reviewed-by: Marek Vasut
    Reviewed-by: Tom Rini

    Ian Campbell