aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/mv88e6xxx.h
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2015-04-01 22:06:34 -0400
committerDavid S. Miller <davem@davemloft.net>2015-04-01 22:55:40 -0400
commit143a83073aaea145aa050cd0ebb80454c9362608 (patch)
tree291485b615cb19d4b8f93831da0ba0e2ba53e0cb /drivers/net/dsa/mv88e6xxx.h
parent44e50ddbc74a4bd6a862be9e6de22bce8c0b4150 (diff)
net: dsa: Centralize Marvell switch reset
Marvell switches are all reset in nearly the same way. The only difference is if the PPU should be enabled or not. Move this code into the shared mv88x6xxx.c. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Tested-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6xxx.h b/drivers/net/dsa/mv88e6xxx.h
index ef058444bdb7..f84d3d5178b9 100644
--- a/drivers/net/dsa/mv88e6xxx.h
+++ b/drivers/net/dsa/mv88e6xxx.h
@@ -129,6 +129,7 @@ struct mv88e6xxx_hw_stat {
129 int reg; 129 int reg;
130}; 130};
131 131
132int mv88e6xxx_switch_reset(struct dsa_switch *ds, bool ppu_active);
132int mv88e6xxx_setup_port_common(struct dsa_switch *ds, int port); 133int mv88e6xxx_setup_port_common(struct dsa_switch *ds, int port);
133int mv88e6xxx_setup_common(struct dsa_switch *ds); 134int mv88e6xxx_setup_common(struct dsa_switch *ds);
134int __mv88e6xxx_reg_read(struct mii_bus *bus, int sw_addr, int addr, int reg); 135int __mv88e6xxx_reg_read(struct mii_bus *bus, int sw_addr, int addr, int reg);