Skip to content

Commit

Permalink
mediatek: rtl822x: fix led blink
Browse files Browse the repository at this point in the history
  • Loading branch information
hanwckf committed Feb 1, 2024
1 parent 64d668d commit f130079
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit f130079

Please sign in to comment.