bcmmii.c (ba6cc93d611b2329f6f1f05d530c1766036863f0) bcmmii.c (58056c1e1b0e4951f3486bd552d8278194f8b84b)
1/*
2 * Broadcom GENET MDIO routines
3 *
4 * Copyright (c) 2014-2017 Broadcom
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

--- 200 unchanged lines hidden (view full) ---

209 } else if (priv->phy_interface == PHY_INTERFACE_MODE_MOCA) {
210 phy_name = "MoCA";
211 bcmgenet_moca_phy_setup(priv);
212 }
213 break;
214
215 case PHY_INTERFACE_MODE_MII:
216 phy_name = "external MII";
1/*
2 * Broadcom GENET MDIO routines
3 *
4 * Copyright (c) 2014-2017 Broadcom
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

--- 200 unchanged lines hidden (view full) ---

209 } else if (priv->phy_interface == PHY_INTERFACE_MODE_MOCA) {
210 phy_name = "MoCA";
211 bcmgenet_moca_phy_setup(priv);
212 }
213 break;
214
215 case PHY_INTERFACE_MODE_MII:
216 phy_name = "external MII";
217 phydev->supported &= PHY_BASIC_FEATURES;
217 phy_set_max_speed(phydev, SPEED_100);
218 bcmgenet_sys_writel(priv,
219 PORT_MODE_EXT_EPHY, SYS_PORT_CTRL);
220 break;
221
222 case PHY_INTERFACE_MODE_REVMII:
223 phy_name = "external RvMII";
224 /* of_mdiobus_register took care of reading the 'max-speed'
225 * PHY property for us, effectively limiting the PHY supported

--- 355 unchanged lines hidden ---
218 bcmgenet_sys_writel(priv,
219 PORT_MODE_EXT_EPHY, SYS_PORT_CTRL);
220 break;
221
222 case PHY_INTERFACE_MODE_REVMII:
223 phy_name = "external RvMII";
224 /* of_mdiobus_register took care of reading the 'max-speed'
225 * PHY property for us, effectively limiting the PHY supported

--- 355 unchanged lines hidden ---