several cleanups for ifxmips. removes all code that has not been cleaned up properly
[openwrt-10.03/.git] / target / linux / ifxmips / files / drivers / leds / leds-ifxmips.c
index 04e4ef8d0d25e9d1a22bd29954714c441c02bc2a..86116d654886cfc4b351b739fe46cb3c9094f4e9 100644 (file)
@@ -37,6 +37,7 @@
 
 #define DRVNAME                                        "ifxmips_led"
 
+/* might need to be changed depending on shift register used on the pcb */
 #if 1
 #define IFXMIPS_LED_CLK_EDGE                   IFXMIPS_LED_FALLING
 #else
@@ -98,7 +99,8 @@ void ifxmips_led_setup_gpio(void)
 {
        int i = 0;
 
-       /* we need to setup pins SH,D,ST (4,5,6) */
+       /* leds are controlled via a shift register
+          we need to setup pins SH,D,ST (4,5,6) to make it work */
        for (i = 4; i < 7; i++) {
                ifxmips_port_set_altsel0(IFXMIPS_LED_GPIO_PORT, i);
                ifxmips_port_clear_altsel1(IFXMIPS_LED_GPIO_PORT, i);