diff --git a/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_eth_rtl822x.c b/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_eth_rtl822x.c index 73a74804e3..168aca7d21 100755 --- a/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_eth_rtl822x.c +++ b/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_eth_rtl822x.c @@ -158,7 +158,16 @@ static int rtl822x_init(struct mtk_eth *eth, int addr) val |= (1 << 9); mtk_mmd_write(eth, addr, 7, 0, val); - msleep(500); + msleep(500); + + // led0 at 10/100/1000/2.5G + mtk_mmd_write(eth, addr, 31, 0xd032, 0x0027); + // led on time = 400ms, duty = 12.5%, freq = 60ms, Enable 10M LPI, modeA, act + mtk_mmd_write(eth, addr, 31, 0xd040, 0x321f); + // all led enable, polar = low + mtk_mmd_write(eth, addr, 31, 0xd044, 0xf8); + + msleep(500); dev_info(eth->dev, "RTL822x init success!\n");