Merge pull request #371 from CoreELEC/pr-eth-eee-leds

net: phy: rtl8211f disable eee led indication
This commit is contained in:
Mauro Ribeiro
2019-03-05 06:15:47 -03:00
committed by GitHub

View File

@@ -26,6 +26,7 @@
#include <linux/amlogic/pm.h>
#endif
#define RTL821x_LCR 0x10
#define RTL821x_EEELCR 0x11
#define RTL821x_PHYSR 0x11
#define RTL821x_PHYSR_DUPLEX 0x2000
#define RTL821x_PHYSR_SPEED 0xc000
@@ -152,6 +153,7 @@ static int rtl8211f_config_init(struct phy_device *phydev)
#endif
phy_write(phydev, RTL8211F_PAGE_SELECT, 0xd04); /*set page 0xd04*/
phy_write(phydev, RTL821x_LCR, 0XC171); /*led configuration*/
phy_write(phydev, RTL821x_EEELCR, 0); /*disable eee led indication*/
/* restore to default page 0 */
phy_write(phydev, RTL8211F_PAGE_SELECT, 0x0);