Commit 2a4614e4 authored by Vivien Didelot's avatar Vivien Didelot Committed by David S. Miller

net: dsa: mv88e6xxx: prefix Port Association Vector macros

For implicit namespacing and clarity, prefix the common Port Association
Vector Register macros with MV88E6XXX_PORT_ASSOC_VECTOR.

Document the register and prefer ordered hex masks values for all
Marvell 16-bit registers.
Signed-off-by: default avatarVivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2cb8cb14
...@@ -1892,7 +1892,8 @@ static int mv88e6xxx_setup_port(struct mv88e6xxx_chip *chip, int port) ...@@ -1892,7 +1892,8 @@ static int mv88e6xxx_setup_port(struct mv88e6xxx_chip *chip, int port)
if (dsa_is_cpu_port(ds, port)) if (dsa_is_cpu_port(ds, port))
reg = 0; reg = 0;
err = mv88e6xxx_port_write(chip, port, PORT_ASSOC_VECTOR, reg); err = mv88e6xxx_port_write(chip, port, MV88E6XXX_PORT_ASSOC_VECTOR,
reg);
if (err) if (err)
return err; return err;
......
...@@ -183,12 +183,14 @@ ...@@ -183,12 +183,14 @@
/* Offset 0x0A: Egress Rate Control 2 */ /* Offset 0x0A: Egress Rate Control 2 */
#define MV88E6XXX_PORT_EGRESS_RATE_CTL2 0x0a #define MV88E6XXX_PORT_EGRESS_RATE_CTL2 0x0a
#define PORT_ASSOC_VECTOR 0x0b /* Offset 0x0B: Port Association Vector */
#define PORT_ASSOC_VECTOR_HOLD_AT_1 BIT(15) #define MV88E6XXX_PORT_ASSOC_VECTOR 0x0b
#define PORT_ASSOC_VECTOR_INT_AGE_OUT BIT(14) #define MV88E6XXX_PORT_ASSOC_VECTOR_HOLD_AT_1 0x8000
#define PORT_ASSOC_VECTOR_LOCKED_PORT BIT(13) #define MV88E6XXX_PORT_ASSOC_VECTOR_INT_AGE_OUT 0x4000
#define PORT_ASSOC_VECTOR_IGNORE_WRONG BIT(12) #define MV88E6XXX_PORT_ASSOC_VECTOR_LOCKED_PORT 0x2000
#define PORT_ASSOC_VECTOR_REFRESH_LOCKED BIT(11) #define MV88E6XXX_PORT_ASSOC_VECTOR_IGNORE_WRONG 0x1000
#define MV88E6XXX_PORT_ASSOC_VECTOR_REFRESH_LOCKED 0x0800
#define PORT_ATU_CONTROL 0x0c #define PORT_ATU_CONTROL 0x0c
#define PORT_PRI_OVERRIDE 0x0d #define PORT_PRI_OVERRIDE 0x0d
#define PORT_ETH_TYPE 0x0f #define PORT_ETH_TYPE 0x0f
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment