a9183677c3c72a72098cfc3ca4dec43c2427d640
[openwrt/openwrt.git] / package / boot / uboot-sunxi / patches / 005-add-gmac-tx-delay-variant.patch
1 Index: u-boot-2015.01/board/sunxi/gmac.c
2 ===================================================================
3 --- u-boot-2015.01.orig/board/sunxi/gmac.c
4 +++ u-boot-2015.01/board/sunxi/gmac.c
5 @@ -34,7 +34,7 @@ int sunxi_gmac_initialize(bd_t *bis)
6 * need to set bits 10-12 GTXDC "GMAC Transmit Clock Delay Chain"
7 * of the GMAC clk register to 3.
8 */
9 -#ifdef CONFIG_TARGET_BANANAPI
10 +#ifdef CONFIG_SUNXI_GMAC_TX_DELAY_3
11 setbits_le32(&ccm->gmac_clk_cfg, 0x3 << 10);
12 #endif
13
14 Index: u-boot-2015.01/configs/Bananapi_defconfig
15 ===================================================================
16 --- u-boot-2015.01.orig/configs/Bananapi_defconfig
17 +++ u-boot-2015.01/configs/Bananapi_defconfig
18 @@ -1,5 +1,5 @@
19 CONFIG_SPL=y
20 -CONFIG_SYS_EXTRA_OPTIONS="AXP209_POWER,SUNXI_GMAC,RGMII,MACPWR=SUNXI_GPH(23),AHCI,USB_EHCI"
21 +CONFIG_SYS_EXTRA_OPTIONS="AXP209_POWER,SUNXI_GMAC,SUNXI_GMAC_TX_DELAY_3,RGMII,MACPWR=SUNXI_GPH(23),AHCI,USB_EHCI"
22 CONFIG_FDTFILE="sun7i-a20-bananapi.dtb"
23 +S:CONFIG_ARM=y
24 +S:CONFIG_ARCH_SUNXI=y