aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/drivers/net/phy/ar8327.h
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2018-08-15 08:20:33 +0200
committerMathias Kresin <dev@kresin.me>2018-08-23 22:44:47 +0200
commit6118db38b9d39b7f93236954c37c00efdf41cbcf (patch)
treee15f5f2acd9bde94e0f5f810fe159fbe67937faf /target/linux/generic/files/drivers/net/phy/ar8327.h
parent82f9ef60ab7c3bdc562e0979aa78a40ae71c32c0 (diff)
downloadupstream-6118db38b9d39b7f93236954c37c00efdf41cbcf.tar.gz
upstream-6118db38b9d39b7f93236954c37c00efdf41cbcf.tar.bz2
upstream-6118db38b9d39b7f93236954c37c00efdf41cbcf.zip
generic: revert workarounds for AR8337 switch
The intention of 967b6be118e3 ("ar8327: Add workarounds for AR8337 switch") was to remove the register fixups for AR8337. But instead they were removed for AR8327. The RGMII RX delay is forced even if the port is used as phy instead of mac, which results in no package flow at least for one board. Fixes: FS#1664 Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/ar8327.h')
-rw-r--r--target/linux/generic/files/drivers/net/phy/ar8327.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ar8327.h b/target/linux/generic/files/drivers/net/phy/ar8327.h
index 2309e52899..d53ef885b1 100644
--- a/target/linux/generic/files/drivers/net/phy/ar8327.h
+++ b/target/linux/generic/files/drivers/net/phy/ar8327.h
@@ -278,28 +278,7 @@
#define AR8327_REG_PORT_PRIO(_i) (0x664 + (_i) * 0xc)
-#define AR8327_REG_PORT_HOL_CTRL0(_i) (0x970 + (_i) * 0x8)
-#define AR8327_PORT_HOL_CTRL0_EG_PRI0_BUF BITS(0, 4)
-#define AR8327_PORT_HOL_CTRL0_EG_PRI0_BUF_S 0
-#define AR8327_PORT_HOL_CTRL0_EG_PRI1_BUF BITS(4, 4)
-#define AR8327_PORT_HOL_CTRL0_EG_PRI1_BUF_S 4
-#define AR8327_PORT_HOL_CTRL0_EG_PRI2_BUF BITS(8, 4)
-#define AR8327_PORT_HOL_CTRL0_EG_PRI2_BUF_S 8
-#define AR8327_PORT_HOL_CTRL0_EG_PRI3_BUF BITS(12, 4)
-#define AR8327_PORT_HOL_CTRL0_EG_PRI3_BUF_S 12
-#define AR8327_PORT_HOL_CTRL0_EG_PRI4_BUF BITS(16, 4)
-#define AR8327_PORT_HOL_CTRL0_EG_PRI4_BUF_S 16
-#define AR8327_PORT_HOL_CTRL0_EG_PRI5_BUF BITS(20, 4)
-#define AR8327_PORT_HOL_CTRL0_EG_PRI5_BUF_S 20
-#define AR8327_PORT_HOL_CTRL0_EG_PORT_BUF BITS(24, 6)
-#define AR8327_PORT_HOL_CTRL0_EG_PORT_BUF_S 24
-
#define AR8327_REG_PORT_HOL_CTRL1(_i) (0x974 + (_i) * 0x8)
-#define AR8327_PORT_HOL_CTRL1_ING_BUF BITS(0, 4)
-#define AR8327_PORT_HOL_CTRL1_ING_BUF_S 0
-#define AR8327_PORT_HOL_CTRL1_EG_PRI_BUF_EN BIT(6)
-#define AR8327_PORT_HOL_CTRL1_EG_PORT_BUF_EN BIT(7)
-#define AR8327_PORT_HOL_CTRL1_WRED_EN BIT(8)
#define AR8327_PORT_HOL_CTRL1_EG_MIRROR_EN BIT(16)
#define AR8337_PAD_MAC06_EXCHANGE_EN BIT(31)