aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/drivers/net/phy/ar8216.h
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-11-29 20:18:48 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-11-29 20:18:48 +0000
commitb7ca4137f58393f9895897d75bab0a8fefa63b19 (patch)
tree1079761730ae08da5fde50b2662454dde99b3714 /target/linux/generic/files/drivers/net/phy/ar8216.h
parentc2bf799a23252f93908ad6ea881c71dc3bcf28da (diff)
downloadmaster-187ad058-b7ca4137f58393f9895897d75bab0a8fefa63b19.tar.gz
master-187ad058-b7ca4137f58393f9895897d75bab0a8fefa63b19.tar.bz2
master-187ad058-b7ca4137f58393f9895897d75bab0a8fefa63b19.zip
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 <dirkneukirchen@web.de> 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 <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38952 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/ar8216.h')
-rw-r--r--target/linux/generic/files/drivers/net/phy/ar8216.h2
1 files changed, 2 insertions, 0 deletions
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,