From c378d5e95300ff69ec49add9188787a00312958f Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Fri, 29 Nov 2013 20:18:48 +0000 Subject: generic: ar8216: add AR8337N switch support This patch is needed to use the switch inside the Sitecom WLR-8100; it was unusable and detected as Generic-Phy before. since ar8337 is behaving like ar8327 generally do the same thing see: https://forum.openwrt.org/viewtopic.php?pid=214218#p214218 forward-ported to trunk Signed-off-by: Dirk Neukirchen Patchwork: http://patchwork.openwrt.org/patch/4469/ [juhosg: merge chip_is_ar83[23]7 statements in ar8xxx_phy_config_init] Signed-off-by: Gabor Juhos SVN-Revision: 38952 --- target/linux/generic/files/drivers/net/phy/ar8216.h | 2 ++ 1 file changed, 2 insertions(+) (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 ea6d6821c1..2244c4f19a 100644 --- a/target/linux/generic/files/drivers/net/phy/ar8216.h +++ b/target/linux/generic/files/drivers/net/phy/ar8216.h @@ -452,6 +452,8 @@ #define AR8327_REG_PORT_STATS_BASE(_i) (0x1000 + (_i) * 0x100) +#define AR8337_PAD_MAC06_EXCHANGE_EN BIT(31) + /* port speed */ enum { AR8216_PORT_SPEED_10M = 0, -- cgit v1.2.3