mediatek: rtl822x: fix led blink

This commit is contained in:
hanwckf 2024-02-01 09:16:36 +08:00
parent 64d668d0f9
commit f130079301

View File

@ -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");