Changeset 10349


Ignore:
Timestamp:
2008-02-02T02:21:57+01:00 (9 years ago)
Author:
nbd
Message:

DG834G Power LED fix

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 <nick.forbes@…>

Location:
trunk/target/linux/ar7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar7/config-2.6.23

    r10098 r10349  
    6969# CONFIG_KALLSYMS_EXTRA_PASS is not set 
    7070CONFIG_LEDS_GPIO=y 
     71CONFIG_LEDS_TRIGGER_DEFAULT_ON=y 
    7172# CONFIG_LEMOTE_FULONG is not set 
    7273# CONFIG_MACH_ALCHEMY is not set 
  • trunk/target/linux/ar7/files/arch/mips/ar7/platform.c

    r10210 r10349  
    335335        { .name = "adsl", .gpio = 8, .active_low = 1, }, 
    336336        { .name = "wifi", .gpio = 12, .active_low = 1, }, 
    337         { .name = "power", .gpio = 14, .active_low = 1, }, 
     337        { .name = "power", .gpio = 14, .active_low = 1, .default_trigger = "default-on", }, 
    338338}; 
    339339 
Note: See TracChangeset for help on using the changeset viewer.