[ramips] fix for non-blinking LAN LEDs
https://dev.openwrt.org/ticket/12830 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35359 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
8a947fc599
commit
7866042160
|
@ -498,6 +498,10 @@ rt305x_esw_hw_init(struct rt305x_esw *esw)
|
||||||
RT305X_ESW_SGC2_LAN_PMAP_M << RT305X_ESW_SGC2_LAN_PMAP_S,
|
RT305X_ESW_SGC2_LAN_PMAP_M << RT305X_ESW_SGC2_LAN_PMAP_S,
|
||||||
port_map << RT305X_ESW_SGC2_LAN_PMAP_S);
|
port_map << RT305X_ESW_SGC2_LAN_PMAP_S);
|
||||||
|
|
||||||
|
/* make the switch leds blink */
|
||||||
|
for (i = 0; i < RT305X_ESW_NUM_LEDS; i++)
|
||||||
|
esw->ports[i].led = 0x05;
|
||||||
|
|
||||||
/* Apply the empty config. */
|
/* Apply the empty config. */
|
||||||
rt305x_esw_apply_config(&esw->swdev);
|
rt305x_esw_apply_config(&esw->swdev);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue