mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
net: phy: broadcom: optionally enable link-down powersave based on DT
It's really a function of the board whether or not to use this feature as it may require MAC compatibility as well as interop testing. Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
This commit is contained in:
committed by
Dom Cobley
parent
c18474cda3
commit
a34cecf271
@@ -491,6 +491,9 @@ static int bcm54xx_config_init(struct phy_device *phydev)
|
||||
(phydev->dev_flags & PHY_BRCM_CLEAR_RGMII_MODE))
|
||||
bcm_phy_write_shadow(phydev, BCM54XX_SHD_RGMII_MODE, 0);
|
||||
|
||||
if (of_property_read_bool(np, "brcm,powerdown-enable"))
|
||||
phydev->dev_flags |= PHY_BRCM_AUTO_PWRDWN_ENABLE;
|
||||
|
||||
bcm54xx_adjust_rxrefclk(phydev);
|
||||
|
||||
switch (phydev->drv->phy_id & PHY_ID_MATCH_MODEL_MASK) {
|
||||
|
||||
Reference in New Issue
Block a user