Browse Source

set mv88e1510 phy link state.

Change-Id: Iad359f754c6243fa2200bb3a11fb2ae18da7432a
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
master
QiaoChong 6 years ago
committed by Chong Qiao
parent
commit
649dd99f00
  1. 5
      sys/dev/gmac/synopGMAC_network_interface.c

5
sys/dev/gmac/synopGMAC_network_interface.c

@ -378,6 +378,11 @@ static int rtl8211_config_init(synopGMACdevice *gmacdev)
data = 0x5140;
err = synopGMAC_write_phy_reg((u64 *)gmacdev->MacBase,gmacdev->PhyBase,0x00,data );
#endif
/*set led link stat*/
synopGMAC_write_phy_reg((u64 *)gmacdev->MacBase,gmacdev->PhyBase, 22, 3);
synopGMAC_write_phy_reg((u64 *)gmacdev->MacBase,gmacdev->PhyBase, 16, 0x1038);
synopGMAC_write_phy_reg((u64 *)gmacdev->MacBase,gmacdev->PhyBase, 22, 0);
if (err < 0)
return err;
return 0;

Loading…
Cancel
Save