mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
net: phy: motorcomm: Add 100m BGS voltage for RK631
Signed-off-by: David Wu <david.wu@rock-chips.com> Change-Id: I1a8fd4d428e0d3d6c8a0c6b3e2dd63c5d53590a5
This commit is contained in:
@@ -563,7 +563,7 @@ static int yt8531S_config_init(struct phy_device *phydev)
|
||||
|
||||
static int yt8531_config_init(struct phy_device *phydev)
|
||||
{
|
||||
int ret = 0;
|
||||
int ret = 0, val;
|
||||
|
||||
#if (YTPHY8531A_XTAL_INIT)
|
||||
ret = yt8531a_xtal_init(phydev);
|
||||
@@ -588,6 +588,13 @@ static int yt8531_config_init(struct phy_device *phydev)
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
/* Change 100M default BGS voltage from 0x294c to 0x274c */
|
||||
val = ytphy_read_ext(phydev, 0x57);
|
||||
val = (val & ~(0xf << 8)) | (7 << 8);
|
||||
ret = ytphy_write_ext(phydev, 0x57, val);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user