net: dsa: mv88e6xxx: Provide function for common port initialization
authorGuenter Roeck <linux@roeck-us.net>
Fri, 27 Mar 2015 01:36:29 +0000 (18:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Mar 2015 20:23:50 +0000 (13:23 -0700)
commitd827e88a3f48606f1fcd0c285613befce375e076
tree0ee3b0cc80aa4b6ab4c1d3293ea896e218710f32
parentacdaffcc890a29262c9bb47e287b62488c85eb59
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>
drivers/net/dsa/mv88e6xxx.c
drivers/net/dsa/mv88e6xxx.h