diff options
author | Chuanhong Guo <gch981213@gmail.com> | 2019-01-10 23:53:23 +0800 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2019-03-24 01:44:26 +0100 |
commit | 0598ec0abc3581e162ec62b81ef8f8326467c6c0 (patch) | |
tree | 136fc2ead878ccf39bd1f1590d72fc86f3d38d56 /target/linux/generic/files/drivers/net/phy/ar8216.h | |
parent | ad8db1fa2e9111b22e94fbd149b27dee33291ff8 (diff) | |
download | upstream-0598ec0abc3581e162ec62b81ef8f8326467c6c0.tar.gz upstream-0598ec0abc3581e162ec62b81ef8f8326467c6c0.tar.bz2 upstream-0598ec0abc3581e162ec62b81ef8f8326467c6c0.zip |
generic: ar8216: add support for ar724x/ar933x builtin switch
This builtin switch is a bugless ar8216 with different mib counters
and gigabit cpu port.
Atheros uses the same device ID and it's impossible to distinguish
the standalone one and the builtin one. So we add support to mdio
device probe only.
This switch doesn't have buggy vlan tag so it's not needed to enable
atheros header. This commit changed ar8216_setup_port so that it can
be reused for this switch.
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/ar8216.h')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/ar8216.h | 3 |
1 files changed, 3 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 975ba23517..0bdd3e9dd8 100644 --- a/target/linux/generic/files/drivers/net/phy/ar8216.h +++ b/target/linux/generic/files/drivers/net/phy/ar8216.h @@ -26,6 +26,7 @@ #define AR8216_PORT_CPU 0 #define AR8216_NUM_PORTS 6 #define AR8216_NUM_VLANS 16 +#define AR7240SW_NUM_PORTS 5 #define AR8316_NUM_VLANS 4096 /* size of the vlan table */ @@ -130,6 +131,8 @@ #define AR8216_ATU_CTRL_AGE_TIME_S 0 #define AR8236_ATU_CTRL_RES BIT(20) #define AR8216_ATU_CTRL_LEARN_CHANGE BIT(18) +#define AR8216_ATU_CTRL_RESERVED BIT(19) +#define AR8216_ATU_CTRL_ARP_EN BIT(20) #define AR8216_REG_TAG_PRIORITY 0x0070 |