From 04b1b3c415a404f14aef17e6166a0cda4371e266 Mon Sep 17 00:00:00 2001 From: Mike Baker Date: Tue, 31 Oct 2006 23:07:22 +0000 Subject: [PATCH] Update motorola 850 leds (please verify!) and added placeholder for belkin SVN-Revision: 5369 --- openwrt/target/linux/package/diag/src/diag.c | 26 +++++++++++++++++--- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/openwrt/target/linux/package/diag/src/diag.c b/openwrt/target/linux/package/diag/src/diag.c index 669c12f03e..eeaa35aa14 100644 --- a/openwrt/target/linux/package/diag/src/diag.c +++ b/openwrt/target/linux/package/diag/src/diag.c @@ -121,6 +121,9 @@ enum { /* Motorola */ WR850GV1, WR850GV2, + + /* Belkin */ + BELKIN_UNKNOWN, }; static struct platform_t __init platforms[] = { @@ -370,9 +373,11 @@ static struct platform_t __init platforms[] = { { .name = "reset", .gpio = 1 << 0 }, }, .leds = { + { .name = "power", .gpio = 1 << 4, .polarity = NORMAL }, { .name = "diag", .gpio = 1 << 3, .polarity = REVERSE }, - { .name = "wlan_red", .gpio = 1 << 5, .polarity = NORMAL }, - { .name = "wlan_green", .gpio = 1 << 7, .polarity = NORMAL }, + { .name = "modem", .gpio = 1 << 6, .polarity = NORMAL }, + { .name = "wlan_red", .gpio = 1 << 5, .polarity = REVERSE }, + { .name = "wlan_green", .gpio = 1 << 7, .polarity = REVERSE }, }, }, [WR850GV2] = { @@ -382,8 +387,21 @@ static struct platform_t __init platforms[] = { }, .leds = { { .name = "diag", .gpio = 1 << 1, .polarity = REVERSE }, - { .name = "wlan", .gpio = 1 << 0, .polarity = REVERSE }, - { .name = "modem", .gpio = 1 << 7, .polarity = NORMAL }, + { .name = "wlan", .gpio = 1 << 0, .polarity = NORMAL }, + { .name = "modem_green",.gpio = 1 << 6, .polarity = REVERSE }, + { .name = "modem_red", .gpio = 1 << 7, .polarity = REVERSE }, + }, + /* Belkin */ + [BELKIN_UNKNOWN] = { + .name = "Belkin (unknown)" + /* FIXME: verify & add detection */ + .buttons = { + { .name = "reset", .gpio = 1 << 7 }, + }, + .leds = { + { .name = "power", .gpio = 1 << 5, .polarity = NORMAL }, + { .name = "wlan", .gpio = 1 << 3, .polarity = NORMAL }, + { .name = "connected", .gpio = 1 << 0, .polarity = NORMAL }, }, }, }; -- 2.30.2