mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
packages: uboot-sunxi: fix GMAC TX delay for Bananapi
Signed-off-by: Daniel Golle <daniel@makrotopia.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44066 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
a8facdd1fb
commit
e4abcab601
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user