diff options
author | Shengzhou Liu <Shengzhou.Liu@freescale.com> | 2015-05-21 18:07:35 +0800 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2015-08-11 13:20:34 -0500 |
commit | 90712741c9f03c4fddc5d71f4c397d5e18f94a3d (patch) | |
tree | 760fc65678717190c28f7df89dba15f6e953915f /drivers | |
parent | 48b168bbfa97e4ebb7c093696c27dfb32bf82ad8 (diff) | |
download | u-boot-imx-90712741c9f03c4fddc5d71f4c397d5e18f94a3d.zip u-boot-imx-90712741c9f03c4fddc5d71f4c397d5e18f94a3d.tar.gz u-boot-imx-90712741c9f03c4fddc5d71f4c397d5e18f94a3d.tar.bz2 |
net/phy: set led for rtl8211f phy
Initialize LCR rigister to configure
green LED for Link, yellow LED for Active.
Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/phy/realtek.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c index 79452a8..bba48da 100644 --- a/drivers/net/phy/realtek.c +++ b/drivers/net/phy/realtek.c @@ -41,6 +41,7 @@ #define MIIM_RTL8211F_PAGE_SELECT 0x1f #define MIIM_RTL8211F_TX_DELAY 0x100 +#define MIIM_RTL8211F_LCR 0x10 /* RealTek RTL8211x */ static int rtl8211x_config(struct phy_device *phydev) @@ -79,6 +80,13 @@ static int rtl8211f_config(struct phy_device *phydev) MIIM_RTL8211F_PAGE_SELECT, 0x0); } + /* Set green LED for Link, yellow LED for Active */ + phy_write(phydev, MDIO_DEVAD_NONE, + MIIM_RTL8211F_PAGE_SELECT, 0xd04); + phy_write(phydev, MDIO_DEVAD_NONE, 0x10, 0x617f); + phy_write(phydev, MDIO_DEVAD_NONE, + MIIM_RTL8211F_PAGE_SELECT, 0x0); + genphy_config_aneg(phydev); return 0; |