[U-Boot] [U-Boot, fix, for, v2014.10] sunxi: Fix gmac not working reliable on the Bananapi
Tom Rini
trini at ti.com
Fri Oct 10 16:39:35 CEST 2014
On Tue, Sep 30, 2014 at 06:45:32PM +0200, Hans de Goede wrote:
> 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 <merker at debian.org>
> Signed-off-by: Hans de Goede <hdegoede at redhat.com>
> Tested-by: Karsten Merker <merker at debian.org>
> Tested-by: Zoltan HERPAI <wigyori at openwrt.org>
> Tested-by: Tony Zhang <tony.zhang at lemaker.org>
> Acked-by: Ian Campbell <ijc at hellion.org.uk>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141010/06416b64/attachment.pgp>
More information about the U-Boot
mailing list