mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
kernel: ar8216: add support for the AR8236 switch
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28993 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
|
||||
#define AR8216_REG_GLOBAL_CTRL 0x0030
|
||||
#define AR8216_GCTRL_MTU BITS(0, 11)
|
||||
#define AR8236_GCTRL_MTU BITS(0, 14)
|
||||
#define AR8316_GCTRL_MTU BITS(0, 14)
|
||||
|
||||
#define AR8216_REG_VTU 0x0040
|
||||
@@ -62,6 +63,7 @@
|
||||
|
||||
#define AR8216_REG_VTU_DATA 0x0044
|
||||
#define AR8216_VTUDATA_MEMBER BITS(0, 10)
|
||||
#define AR8236_VTUDATA_MEMBER BITS(0, 7)
|
||||
#define AR8216_VTUDATA_VALID BIT(11)
|
||||
|
||||
#define AR8216_REG_ATU 0x0050
|
||||
@@ -145,6 +147,20 @@
|
||||
#define AR8216_REG_PORT_RATE(_i) (AR8216_PORT_OFFSET(_i) + 0x000c)
|
||||
#define AR8216_REG_PORT_PRIO(_i) (AR8216_PORT_OFFSET(_i) + 0x0010)
|
||||
|
||||
|
||||
#define AR8236_REG_PORT_VLAN(_i) (AR8216_PORT_OFFSET((_i)) + 0x0008)
|
||||
#define AR8236_PORT_VLAN_DEFAULT_ID BITS(16, 12)
|
||||
#define AR8236_PORT_VLAN_DEFAULT_ID_S 16
|
||||
#define AR8236_PORT_VLAN_PRIORITY BITS(29, 3)
|
||||
#define AR8236_PORT_VLAN_PRIORITY_S 28
|
||||
|
||||
#define AR8236_REG_PORT_VLAN2(_i) (AR8216_PORT_OFFSET((_i)) + 0x000c)
|
||||
#define AR8236_PORT_VLAN2_MEMBER BITS(16, 7)
|
||||
#define AR8236_PORT_VLAN2_MEMBER_S 16
|
||||
#define AR8236_PORT_VLAN2_TX_PRIO BIT(23)
|
||||
#define AR8236_PORT_VLAN2_VLAN_MODE BITS(30, 2)
|
||||
#define AR8236_PORT_VLAN2_VLAN_MODE_S 30
|
||||
|
||||
/* port speed */
|
||||
enum {
|
||||
AR8216_PORT_SPEED_10M = 0,
|
||||
@@ -181,7 +197,8 @@ enum {
|
||||
enum {
|
||||
UNKNOWN = 0,
|
||||
AR8216 = 8216,
|
||||
AR8316 = 8316
|
||||
AR8236 = 8236,
|
||||
AR8316 = 8316,
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user