mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-07 01:53:34 +08:00
mediatek: rtl822x: fix led blink
This commit is contained in:
parent
64d668d0f9
commit
f130079301
@ -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");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user