summaryrefslogtreecommitdiff
path: root/package/boot/uboot-sunxi/patches
diff options
context:
space:
mode:
authorZoltan Herpai <wigyori@uid0.hu>2015-01-20 22:49:47 +0000
committerZoltan Herpai <wigyori@uid0.hu>2015-01-20 22:49:47 +0000
commit9b103cc1f3bfb7f23cb22f9278472016c8b1e3b2 (patch)
treee322c1b18a1fa74464cae9d73321f0f7509993a7 /package/boot/uboot-sunxi/patches
parent4961c7d0f51674063a58a11032ea62eb9ef111f3 (diff)
downloadmtk-20170518-9b103cc1f3bfb7f23cb22f9278472016c8b1e3b2.zip
mtk-20170518-9b103cc1f3bfb7f23cb22f9278472016c8b1e3b2.tar.gz
mtk-20170518-9b103cc1f3bfb7f23cb22f9278472016c8b1e3b2.tar.bz2
packages: uboot-sunxi: fix GMAC TX delay for Bananapi
Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 44066
Diffstat (limited to 'package/boot/uboot-sunxi/patches')
-rw-r--r--package/boot/uboot-sunxi/patches/005-add-gmac-tx-delay-variant.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/boot/uboot-sunxi/patches/005-add-gmac-tx-delay-variant.patch b/package/boot/uboot-sunxi/patches/005-add-gmac-tx-delay-variant.patch
new file mode 100644
index 0000000..a918367
--- /dev/null
+++ b/package/boot/uboot-sunxi/patches/005-add-gmac-tx-delay-variant.patch
@@ -0,0 +1,24 @@
+Index: u-boot-2015.01/board/sunxi/gmac.c
+===================================================================
+--- u-boot-2015.01.orig/board/sunxi/gmac.c
++++ u-boot-2015.01/board/sunxi/gmac.c
+@@ -34,7 +34,7 @@ int sunxi_gmac_initialize(bd_t *bis)
+ * need to set bits 10-12 GTXDC "GMAC Transmit Clock Delay Chain"
+ * of the GMAC clk register to 3.
+ */
+-#ifdef CONFIG_TARGET_BANANAPI
++#ifdef CONFIG_SUNXI_GMAC_TX_DELAY_3
+ setbits_le32(&ccm->gmac_clk_cfg, 0x3 << 10);
+ #endif
+
+Index: u-boot-2015.01/configs/Bananapi_defconfig
+===================================================================
+--- u-boot-2015.01.orig/configs/Bananapi_defconfig
++++ u-boot-2015.01/configs/Bananapi_defconfig
+@@ -1,5 +1,5 @@
+ CONFIG_SPL=y
+-CONFIG_SYS_EXTRA_OPTIONS="AXP209_POWER,SUNXI_GMAC,RGMII,MACPWR=SUNXI_GPH(23),AHCI,USB_EHCI"
++CONFIG_SYS_EXTRA_OPTIONS="AXP209_POWER,SUNXI_GMAC,SUNXI_GMAC_TX_DELAY_3,RGMII,MACPWR=SUNXI_GPH(23),AHCI,USB_EHCI"
+ CONFIG_FDTFILE="sun7i-a20-bananapi.dtb"
+ +S:CONFIG_ARM=y
+ +S:CONFIG_ARCH_SUNXI=y