Andrew
On 7/11/20 1:45 PM, Andrew Lunn wrote:
+#define MII_DP83822_FIBER_ADVERTISE(SUPPORTED_AUI | SUPPORTED_FIBRE | \
+SUPPORTED_BNC | SUPPORTED_Pause | \
+SUPPORTED_Asym_Pause | \
+
Andrew
On 7/11/20 1:54 PM, Andrew Lunn wrote:
@@ -302,6 +357,48 @@ static int dp83822_config_init(struct phy_device *phydev)
}
}
+ if (dp83822->fx_enabled) {
+ err = phy_modify(phydev, MII_DP83822_CTRL_2,
+DP83822_FX_ENABL
> @@ -302,6 +357,48 @@ static int dp83822_config_init(struct phy_device *phydev)
> }
> }
>
> + if (dp83822->fx_enabled) {
> + err = phy_modify(phydev, MII_DP83822_CTRL_2,
> + DP83822_FX_ENABLE, 1);
> + if (err < 0)
> +
> +#define MII_DP83822_FIBER_ADVERTISE (SUPPORTED_AUI | SUPPORTED_FIBRE | \
> + SUPPORTED_BNC | SUPPORTED_Pause | \
> + SUPPORTED_Asym_Pause | \
> + SUPPORTED_100baseT_Full)
> +
> +
The DP83822 can be configured to use a Fiber connection. The strap
register is read to determine if the device has been configured to use
a fiber connection. With the fiber connection the PHY can be configured
to detect whether the fiber connection is active by either a high signal
or a low signa
5 matches
Mail list logo