mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
net: mscc: ocelot: expose serdes configuration function
During chip initialization, ports that use SGMII / QSGMII to interface to external phys need to be configured on the VSC7513 and VSC7514. Expose this configuration routine, so it can be used by DSA drivers. Signed-off-by: Colin Foster <colin.foster@in-advantage.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
69f7f89c0d
commit
dfca93ed51
@@ -644,6 +644,7 @@ enum ocelot_tag_prefix {
|
||||
};
|
||||
|
||||
struct ocelot;
|
||||
struct device_node;
|
||||
|
||||
struct ocelot_ops {
|
||||
struct net_device *(*port_to_netdev)(struct ocelot *ocelot, int port);
|
||||
@@ -1111,6 +1112,9 @@ int ocelot_sb_occ_tc_port_bind_get(struct ocelot *ocelot, int port,
|
||||
enum devlink_sb_pool_type pool_type,
|
||||
u32 *p_cur, u32 *p_max);
|
||||
|
||||
int ocelot_port_configure_serdes(struct ocelot *ocelot, int port,
|
||||
struct device_node *portnp);
|
||||
|
||||
void ocelot_phylink_mac_config(struct ocelot *ocelot, int port,
|
||||
unsigned int link_an_mode,
|
||||
const struct phylink_link_state *state);
|
||||
|
Reference in New Issue
Block a user