005-add-gmac-tx-delay-variant.patch 1014 B

123456789101112131415161718192021222324
  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. Index: u-boot-2015.01/configs/Bananapi_defconfig
  14. ===================================================================
  15. --- u-boot-2015.01.orig/configs/Bananapi_defconfig
  16. +++ u-boot-2015.01/configs/Bananapi_defconfig
  17. @@ -1,5 +1,5 @@
  18. CONFIG_SPL=y
  19. -CONFIG_SYS_EXTRA_OPTIONS="AXP209_POWER,SUNXI_GMAC,RGMII,MACPWR=SUNXI_GPH(23),AHCI,USB_EHCI"
  20. +CONFIG_SYS_EXTRA_OPTIONS="AXP209_POWER,SUNXI_GMAC,SUNXI_GMAC_TX_DELAY_3,RGMII,MACPWR=SUNXI_GPH(23),AHCI,USB_EHCI"
  21. CONFIG_FDTFILE="sun7i-a20-bananapi.dtb"
  22. +S:CONFIG_ARM=y
  23. +S:CONFIG_ARCH_SUNXI=y