struct qcom_ethqos {
struct platform_device *pdev;
void __iomem *rgmii_base;
- void (*configure_func)(struct qcom_ethqos *ethqos, int speed);
+ void (*configure_func)(struct qcom_ethqos *ethqos,
+ phy_interface_t interface, int speed);
unsigned int link_clk_rate;
struct clk *link_clk;
return 0;
}
-static void ethqos_configure_rgmii(struct qcom_ethqos *ethqos, int speed)
+static void ethqos_configure_rgmii(struct qcom_ethqos *ethqos,
+ phy_interface_t interface, int speed)
{
struct device *dev = ðqos->pdev->dev;
unsigned int i;
/* On interface toggle MAC registers gets reset.
* Configure MAC block for SGMII on ethernet phy link up
*/
-static void ethqos_configure_sgmii(struct qcom_ethqos *ethqos, int speed)
+static void ethqos_configure_sgmii(struct qcom_ethqos *ethqos,
+ phy_interface_t interface, int speed)
{
struct net_device *dev = platform_get_drvdata(ethqos->pdev);
struct stmmac_priv *priv = netdev_priv(dev);
}
}
-static void ethqos_configure(struct qcom_ethqos *ethqos, int speed)
+static void ethqos_configure(struct qcom_ethqos *ethqos,
+ phy_interface_t interface, int speed)
{
- return ethqos->configure_func(ethqos, speed);
+ return ethqos->configure_func(ethqos, interface, speed);
}
static void ethqos_fix_mac_speed(void *priv, phy_interface_t interface,
struct qcom_ethqos *ethqos = priv;
ethqos_update_link_clk(ethqos, speed);
- ethqos_configure(ethqos, speed);
+ ethqos_configure(ethqos, interface, speed);
}
static int qcom_ethqos_serdes_powerup(struct net_device *ndev, void *priv)