u-boot/board/sunxi
Hans de Goede f885b84968 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>
2014-10-08 11:19:46 -04:00
..
ahci.c ahci: provide sunxi SATA driver using AHCI platform framework 2014-07-31 15:37:22 +02:00
board.c sunxi: use random parts of SID to set ethaddr 2014-07-18 19:42:22 +01:00
dram_a10_olinuxino_l.c sun4i: Add support for a number of new sun4i boards 2014-07-31 15:37:23 +02:00
dram_a10s_olinuxino_m.c sun5i: Add support for a number of new sun5i boards 2014-07-31 15:37:23 +02:00
dram_a13_oli_micro.c sunxi: Add sun5i support 2014-07-06 20:12:44 +01:00
dram_a13_olinuxino.c sun5i: Add support for a number of new sun5i boards 2014-07-31 15:37:23 +02:00
dram_a20_olinuxino_l.c sun7i: Add support for Olimex A20-OLinuXino-LIME 2014-09-05 08:30:38 +01:00
dram_bananapi.c sun7i: Add bananapi board 2014-07-31 15:37:24 +02:00
dram_cubieboard.c sunxi: Add sun4i support 2014-07-06 20:12:44 +01:00
dram_cubieboard2.c sunxi: add Cubieboard2 support 2014-07-18 19:42:23 +01:00
dram_cubietruck.c sunxi: add support for Cubietruck booting in FEL mode 2014-05-25 16:15:17 +02:00
dram_linksprite_pcduino3.c sun7i: Add support for a number of new sun7i boards 2014-07-31 15:37:23 +02:00
dram_r7dongle.c sunxi: Add sun5i support 2014-07-06 20:12:44 +01:00
dram_sun4i_360_512.c sun4i: Add support for a number of new sun4i boards 2014-07-31 15:37:23 +02:00
dram_sun4i_360_1024_iow8.c sun4i: Add support for a number of new sun4i boards 2014-07-31 15:37:23 +02:00
dram_sun4i_360_1024_iow16.c sun4i: Add support for a number of new sun4i boards 2014-07-31 15:37:23 +02:00
dram_sun4i_384_1024_iow8.c sun4i: Add support for a number of new sun4i boards 2014-07-31 15:37:23 +02:00
dram_sun7i_384_512_busw16_iow16.c sun7i: Add support for a number of new sun7i boards 2014-07-31 15:37:23 +02:00
dram_sun7i_384_1024_iow16.c sun7i: Add support for a number of new sun7i boards 2014-07-31 15:37:23 +02:00
gmac.c sunxi: Fix gmac not working reliable on the Bananapi 2014-10-08 11:19:46 -04:00
Kconfig kconfig: remove redundant "string" type in arch and board Kconfigs 2014-09-13 16:43:55 -04:00
MAINTAINERS sun7i: Add support for Olimex A20-OLinuXino-LIME 2014-09-05 08:30:38 +01:00
Makefile sun7i: Add support for Olimex A20-OLinuXino-LIME 2014-09-05 08:30:38 +01:00