diff options
author | Guenter Roeck <linux@roeck-us.net> | 2015-03-26 21:36:29 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-29 16:23:50 -0400 |
commit | d827e88a3f48606f1fcd0c285613befce375e076 (patch) | |
tree | 0ee3b0cc80aa4b6ab4c1d3293ea896e218710f32 /drivers/net/dsa/mv88e6xxx.h | |
parent | acdaffcc890a29262c9bb47e287b62488c85eb59 (diff) |
net: dsa: mv88e6xxx: Provide function for common port initialization
Provide mv88e6xxx_setup_port_common() for common port initialization.
Currently only write Port 1 Control and VLAN configuration since
this will be needed for hardware bridging. More can be added later
if desired/needed.
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx.h')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6xxx.h b/drivers/net/dsa/mv88e6xxx.h index a02d95a9b313..a4df4968594e 100644 --- a/drivers/net/dsa/mv88e6xxx.h +++ b/drivers/net/dsa/mv88e6xxx.h | |||
@@ -57,6 +57,7 @@ struct mv88e6xxx_hw_stat { | |||
57 | int reg; | 57 | int reg; |
58 | }; | 58 | }; |
59 | 59 | ||
60 | int mv88e6xxx_setup_port_common(struct dsa_switch *ds, int port); | ||
60 | int mv88e6xxx_setup_common(struct dsa_switch *ds); | 61 | int mv88e6xxx_setup_common(struct dsa_switch *ds); |
61 | int __mv88e6xxx_reg_read(struct mii_bus *bus, int sw_addr, int addr, int reg); | 62 | int __mv88e6xxx_reg_read(struct mii_bus *bus, int sw_addr, int addr, int reg); |
62 | int mv88e6xxx_reg_read(struct dsa_switch *ds, int addr, int reg); | 63 | int mv88e6xxx_reg_read(struct dsa_switch *ds, int addr, int reg); |