diff options
author | Hans de Goede <hdegoede@redhat.com> | 2014-09-30 18:45:32 +0200 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-10-08 11:19:46 -0400 |
commit | f885b849681ce0f15c2df313f38ae06a601be506 (patch) | |
tree | fd25be47f6ed8403844c5e6847ba1bf1fdc37176 /board/armadeus/apf27/apf27.c | |
parent | dd0204e48d05f41480743a798b94d5484b664639 (diff) | |
download | u-boot-imx-f885b849681ce0f15c2df313f38ae06a601be506.zip u-boot-imx-f885b849681ce0f15c2df313f38ae06a601be506.tar.gz u-boot-imx-f885b849681ce0f15c2df313f38ae06a601be506.tar.bz2 |
sunxi: Fix gmac not working reliable on the Bananapi
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@debian.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Karsten Merker <merker@debian.org>
Tested-by: Zoltan HERPAI <wigyori@openwrt.org>
Tested-by: Tony Zhang <tony.zhang@lemaker.org>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
Diffstat (limited to 'board/armadeus/apf27/apf27.c')
0 files changed, 0 insertions, 0 deletions