This patch enables the new "default-on" trigger for the AR7 target and uses it 
to ensure the "power" LED on the DG834G is initialised in the ON state.

Previously this LED would turn off when the driver loaded and stay off until 
turned back on from userspace. With this patch it remains on throughout the 
boot process, but can still be controlled from userspace if required.

Signed-off-by: Nick Forbes <[EMAIL PROTECTED]>
----------------------------------------------------

Index: target/linux/ar7/config-2.6.23
===================================================================
--- target/linux/ar7/config-2.6.23      (revision 10141)
+++ target/linux/ar7/config-2.6.23      (working copy)
@@ -68,6 +68,7 @@
 CONFIG_KALLSYMS=y
 # CONFIG_KALLSYMS_EXTRA_PASS is not set
 CONFIG_LEDS_GPIO=y
+CONFIG_LEDS_TRIGGER_DEFAULT_ON=y
 # CONFIG_LEMOTE_FULONG is not set
 # CONFIG_MACH_ALCHEMY is not set
 # CONFIG_MACH_DECSTATION is not set

Index: target/linux/ar7/files/arch/mips/ar7/platform.c
===================================================================
--- target/linux/ar7/files/arch/mips/ar7/platform.c     (revision 10141)
+++ target/linux/ar7/files/arch/mips/ar7/platform.c     (working copy)
@@ -334,7 +334,7 @@
        { .name = "status", .gpio = 7, .active_low = 1, },
        { .name = "adsl", .gpio = 8, .active_low = 1, },
        { .name = "wifi", .gpio = 12, .active_low = 1, },
-       { .name = "power", .gpio = 14, .active_low = 1, },
+       { .name = "power", .gpio = 14, .active_low = 1, .default_trigger = 
"default-on", },
 };
 
 static struct gpio_led fb_sl_leds[] = {


_____________________________________________________________________
VirusChecked for Huntsworth plc
_____________________________________________________________________
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to