diff options
author | Andrew Lunn <andrew@lunn.ch> | 2016-12-03 04:45:20 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-04 05:18:39 +0100 |
commit | 3ce0e65eb6059d3d4e56bbb17aee34f2740844be (patch) | |
tree | 02e5db05670f241cae197d0a98afac0f29d08961 /drivers/net/dsa/mv88e6xxx/mv88e6xxx.h | |
parent | net: dsa: mv88e6xxx: Refactor pause configuration (diff) | |
download | linux-3ce0e65eb6059d3d4e56bbb17aee34f2740844be.tar.xz linux-3ce0e65eb6059d3d4e56bbb17aee34f2740844be.zip |
net: dsa: mv88e6xxx: Implement mv88e6390 pause control
The mv88e6390 has a number flow control registers accessed via the
Flow Control register. Use these to set the pause control.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx/mv88e6xxx.h')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx/mv88e6xxx.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/mv88e6xxx.h b/drivers/net/dsa/mv88e6xxx/mv88e6xxx.h index 3b1f3ab490b9..13c7cc443454 100644 --- a/drivers/net/dsa/mv88e6xxx/mv88e6xxx.h +++ b/drivers/net/dsa/mv88e6xxx/mv88e6xxx.h @@ -78,6 +78,8 @@ #define PORT_PCS_CTRL_SPEED_10000 (0x03) /* 6390X */ #define PORT_PCS_CTRL_SPEED_UNFORCED (0x03) #define PORT_PAUSE_CTRL 0x02 +#define PORT_FLOW_CTRL_LIMIT_IN ((0x00 << 8) | BIT(15)) +#define PORT_FLOW_CTRL_LIMIT_OUT ((0x01 << 8) | BIT(15)) #define PORT_SWITCH_ID 0x03 #define PORT_SWITCH_ID_PROD_NUM_6085 0x04a #define PORT_SWITCH_ID_PROD_NUM_6095 0x095 |