From ecd27db7573fd76347ef62c6d3bacba600e1c0cc Mon Sep 17 00:00:00 2001 From: John Crispin Date: Mon, 1 Dec 2014 16:15:08 +0000 Subject: ar8216: factor out reg_port_stats_base parameters to ar8xxx_chip Factor out reg_port_stats_base parameters to ar8xxx_chip. Remove related chip_is_... checks. Signed-off-by: Heiner Kallweit SVN-Revision: 43471 --- target/linux/generic/files/drivers/net/phy/ar8216.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'target/linux/generic/files/drivers/net/phy/ar8216.h') diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.h b/target/linux/generic/files/drivers/net/phy/ar8216.h index ca6b2f2915..f6df7c88e5 100644 --- a/target/linux/generic/files/drivers/net/phy/ar8216.h +++ b/target/linux/generic/files/drivers/net/phy/ar8216.h @@ -164,8 +164,6 @@ #define AR8216_REG_PORT_RATE(_i) (AR8216_PORT_OFFSET(_i) + 0x000c) #define AR8216_REG_PORT_PRIO(_i) (AR8216_PORT_OFFSET(_i) + 0x0010) -#define AR8216_REG_PORT_STATS_BASE(_i) (0x19000 + (_i) * 0xa0) - #define AR8216_STATS_RXBROAD 0x00 #define AR8216_STATS_RXPAUSE 0x04 #define AR8216_STATS_RXMULTI 0x08 @@ -217,8 +215,6 @@ #define AR8236_PORT_VLAN2_VLAN_MODE BITS(30, 2) #define AR8236_PORT_VLAN2_VLAN_MODE_S 30 -#define AR8236_REG_PORT_STATS_BASE(_i) (0x20000 + (_i) * 0x100) - #define AR8236_STATS_RXBROAD 0x00 #define AR8236_STATS_RXPAUSE 0x04 #define AR8236_STATS_RXMULTI 0x08 @@ -455,8 +451,6 @@ #define AR8327_REG_PORT_HOL_CTRL1(_i) (0x974 + (_i) * 0x8) #define AR8327_PORT_HOL_CTRL1_EG_MIRROR_EN BIT(16) -#define AR8327_REG_PORT_STATS_BASE(_i) (0x1000 + (_i) * 0x100) - #define AR8337_PAD_MAC06_EXCHANGE_EN BIT(31) /* port speed */ -- cgit v1.2.3