mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
ODROID-COMMON: rtl8211: Link/Active LED configuration
* Green - 100Mbps
* Amber - 1000Mbps
Change-Id: Idc60ac29b5ddab39153a04564a6bb76d0ec02c17
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
(cherry picked from commit e0c47aefdd)
This commit is contained in:
@@ -151,7 +151,13 @@ static int rtl8211f_config_init(struct phy_device *phydev)
|
||||
}
|
||||
#endif
|
||||
phy_write(phydev, RTL8211F_PAGE_SELECT, 0xd04); /*set page 0xd04*/
|
||||
#if defined(CONFIG_ARCH_MESON64_ODROID_COMMON)
|
||||
phy_write(phydev, RTL821x_LCR,
|
||||
(1 << 6) | (1 << 9) // LED1 - GREEN (100Mbps)
|
||||
| (1 << 13) | (1 << 14)); // LED2 - AMBER (1000Mbps)
|
||||
#else
|
||||
phy_write(phydev, RTL821x_LCR, 0XC171); /*led configuration*/
|
||||
#endif
|
||||
|
||||
/* restore to default page 0 */
|
||||
phy_write(phydev, RTL8211F_PAGE_SELECT, 0x0);
|
||||
|
||||
Reference in New Issue
Block a user