Skip to content

Commit 4c05e5c

Browse files
colin-foster-in-advantagedavem330
authored andcommitted
net: dsa: ocelot: add support for external phys
The VSC7512 has four ports with internal phys that are already supported. There are additional ports that can be configured to work with external phys. Add support for these additional ethernet ports. Signed-off-by: Colin Foster <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6865ece commit 4c05e5c

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

drivers/net/dsa/ocelot/ocelot_ext.c

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ static const u32 vsc7512_port_modes[VSC7514_NUM_PORTS] = {
2020
OCELOT_PORT_MODE_INTERNAL,
2121
OCELOT_PORT_MODE_INTERNAL,
2222
OCELOT_PORT_MODE_INTERNAL,
23-
OCELOT_PORT_MODE_NONE,
24-
OCELOT_PORT_MODE_NONE,
25-
OCELOT_PORT_MODE_NONE,
26-
OCELOT_PORT_MODE_NONE,
27-
OCELOT_PORT_MODE_NONE,
28-
OCELOT_PORT_MODE_NONE,
29-
OCELOT_PORT_MODE_NONE,
23+
OCELOT_PORT_MODE_SERDES,
24+
OCELOT_PORT_MODE_SERDES,
25+
OCELOT_PORT_MODE_SERDES,
26+
OCELOT_PORT_MODE_SERDES,
27+
OCELOT_PORT_MODE_SERDES,
28+
OCELOT_PORT_MODE_SGMII,
29+
OCELOT_PORT_MODE_SERDES,
3030
};
3131

3232
static const struct ocelot_ops ocelot_ext_ops = {
@@ -59,6 +59,8 @@ static const struct felix_info vsc7512_info = {
5959
.num_ports = VSC7514_NUM_PORTS,
6060
.num_tx_queues = OCELOT_NUM_TC,
6161
.port_modes = vsc7512_port_modes,
62+
.phylink_mac_config = ocelot_phylink_mac_config,
63+
.configure_serdes = ocelot_port_configure_serdes,
6264
};
6365

6466
static int ocelot_ext_probe(struct platform_device *pdev)

0 commit comments

Comments
 (0)