Advertisement
Guest User

GMAC_RX_DELAY

a guest
Jun 1st, 2015
338
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig
  2. index 2fcab60..4623de6 100644
  3. --- a/board/sunxi/Kconfig
  4. +++ b/board/sunxi/Kconfig
  5. @@ -451,4 +451,10 @@ config GMAC_TX_DELAY
  6.         ---help---
  7.         Set the GMAC Transmit Clock Delay Chain value.
  8.  
  9. +config GMAC_RX_DELAY
  10. +        int "GMAC Receive Clock Delay Chain"
  11. +        default 0
  12. +        ---help---
  13. +        Set the GMAC Reveice Clock Delay Chain value.
  14. +
  15.  endif
  16. diff --git a/board/sunxi/gmac.c b/board/sunxi/gmac.c
  17. index 8849132..1bce3ce 100644
  18. --- a/board/sunxi/gmac.c
  19. +++ b/board/sunxi/gmac.c
  20. @@ -26,6 +26,8 @@ int sunxi_gmac_initialize(bd_t *bis)
  21.                 CCM_GMAC_CTRL_GPIT_RGMII);
  22.         setbits_le32(&ccm->gmac_clk_cfg,
  23.                      CCM_GMAC_CTRL_TX_CLK_DELAY(CONFIG_GMAC_TX_DELAY));
  24. +        setbits_le32(&ccm->gmac_clk_cfg,
  25. +                     CCM_GMAC_CTRL_RX_CLK_DELAY(CONFIG_GMAC_RX_DELAY));
  26.  #else
  27.         setbits_le32(&ccm->gmac_clk_cfg, CCM_GMAC_CTRL_TX_CLK_SRC_MII |
  28.                 CCM_GMAC_CTRL_GPIT_MII);
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement