ag71xx: add F1E specific feature bit definitions to AR934X register file
authorGabor Juhos <juhosg@openwrt.org>
Fri, 29 Nov 2013 20:18:43 +0000 (20:18 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Fri, 29 Nov 2013 20:18:43 +0000 (20:18 +0000)
The F1E Phy (AR8035?) requires additional bits to be
set in order to provide a fast and reliable connection
over gigabit links.

When enabled, the link doesn't suffer anymore from a small
package loss under load and the performance is improved
quite a bit as well. (203 mbit/s vs 112 mbit/s, iperf tcp).

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Patchwork: http://patchwork.openwrt.org/patch/4460/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38948

target/linux/ar71xx/patches-3.10/601-MIPS-ath79-add-more-register-defines.patch

index 014c7696af594d2f4a199a28492a8f7404a9ea45..4812a624f295566954d10912d7c6d66b6bed67a8 100644 (file)
  #define AR934X_GPIO_REG_FUNC          0x6c
  
  #define AR71XX_GPIO_COUNT             16
-@@ -561,4 +664,144 @@
+@@ -561,4 +664,146 @@
  #define AR934X_SRIF_DPLL2_OUTDIV_SHIFT        13
  #define AR934X_SRIF_DPLL2_OUTDIV_MASK 0x7
  
 +#define AR933X_ETH_CFG_MII_CNTL_SPEED BIT(11)
 +#define AR934X_ETH_CFG_RMII_GMAC0_MASTER BIT(12)
 +#define AR933X_ETH_CFG_SW_ACC_MSB_FIRST       BIT(13)
++#define AR934X_ETH_CFG_RXD_DELAY        BIT(14)
++#define AR934X_ETH_CFG_RDV_DELAY        BIT(16)
 +
 +/*
 + * QCA955X GMAC Interface