Browse Source

gmac add LED_88E151X option.

Change-Id: I1a3973256394026fe62e946dfd1690fb1ff9278c
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
master
QiaoChong 6 years ago
committed by Chong Qiao
parent
commit
9f6ca8fc52
  1. 4
      sys/dev/gmac/synopGMAC_network_interface.c

4
sys/dev/gmac/synopGMAC_network_interface.c

@ -380,7 +380,11 @@ static int rtl8211_config_init(synopGMACdevice *gmacdev)
#endif #endif
/*set led link stat*/ /*set led link stat*/
synopGMAC_write_phy_reg((u64 *)gmacdev->MacBase,gmacdev->PhyBase, 22, 3); synopGMAC_write_phy_reg((u64 *)gmacdev->MacBase,gmacdev->PhyBase, 22, 3);
#ifdef LED_88E151X
synopGMAC_write_phy_reg((u64 *)gmacdev->MacBase,gmacdev->PhyBase, 16, LED_88E151X);
#else
synopGMAC_write_phy_reg((u64 *)gmacdev->MacBase,gmacdev->PhyBase, 16, 0x1038); synopGMAC_write_phy_reg((u64 *)gmacdev->MacBase,gmacdev->PhyBase, 16, 0x1038);
#endif
synopGMAC_write_phy_reg((u64 *)gmacdev->MacBase,gmacdev->PhyBase, 22, 0); synopGMAC_write_phy_reg((u64 *)gmacdev->MacBase,gmacdev->PhyBase, 22, 0);
if (err < 0) if (err < 0)

Loading…
Cancel
Save