summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-02-02 01:21:57 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-02-02 01:21:57 +0000
commit0ae7379775b690be1bfe954f6495638227e0da9c (patch)
tree36ae3122beeca239b3263f5cd49ec626a5fbbd78 /target
parenta2ba826425ad14f2b0f8d33486720260a9495c26 (diff)
downloadmtk-20170518-0ae7379775b690be1bfe954f6495638227e0da9c.zip
mtk-20170518-0ae7379775b690be1bfe954f6495638227e0da9c.tar.gz
mtk-20170518-0ae7379775b690be1bfe954f6495638227e0da9c.tar.bz2
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@incepta.com> SVN-Revision: 10349
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar7/config-2.6.231
-rw-r--r--target/linux/ar7/files/arch/mips/ar7/platform.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/ar7/config-2.6.23 b/target/linux/ar7/config-2.6.23
index 98e5cf0..91a6f19 100644
--- a/target/linux/ar7/config-2.6.23
+++ b/target/linux/ar7/config-2.6.23
@@ -68,6 +68,7 @@ CONFIG_IRQ_CPU=y
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
diff --git a/target/linux/ar7/files/arch/mips/ar7/platform.c b/target/linux/ar7/files/arch/mips/ar7/platform.c
index d5a9f39..22c79f5 100644
--- a/target/linux/ar7/files/arch/mips/ar7/platform.c
+++ b/target/linux/ar7/files/arch/mips/ar7/platform.c
@@ -334,7 +334,7 @@ static struct gpio_led dg834g_leds[] = {
{ .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[] = {