aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2013-09-16 19:50:14 +0000
committerHauke Mehrtens <hauke@openwrt.org>2013-09-16 19:50:14 +0000
commitc0429299716d724ff88168e8c0f1d11b11959a82 (patch)
tree6fa8a42b6b4d7ba5c0332246f889446420fef7df /package
parenta2b9227c5e8ac6c326727e6123677b69d6d989f1 (diff)
downloadmaster-187ad058-c0429299716d724ff88168e8c0f1d11b11959a82.tar.gz
master-187ad058-c0429299716d724ff88168e8c0f1d11b11959a82.tar.bz2
master-187ad058-c0429299716d724ff88168e8c0f1d11b11959a82.zip
broadcom-diag: Add WRT310N v1 gpio leds and buttons
Signed-off-by: Flavio Silveira <fggs@terra.com.br> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38007 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/kernel/broadcom-diag/src/diag.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/package/kernel/broadcom-diag/src/diag.c b/package/kernel/broadcom-diag/src/diag.c
index c0ef6ac567..cdfc9af67b 100644
--- a/package/kernel/broadcom-diag/src/diag.c
+++ b/package/kernel/broadcom-diag/src/diag.c
@@ -83,6 +83,7 @@ enum {
WRT160NV1,
WRT160NV3,
WRT300NV11,
+ WRT310NV1,
WRT350N,
WRT600N,
WRT600NV11,
@@ -382,6 +383,18 @@ static struct platform_t __initdata platforms[] = {
},
.platform_init = bcm57xx_init,
},
+ [WRT310NV1] = {
+ .name = "Linksys WRT310N V1",
+ .buttons = {
+ { .name = "reset", .gpio = 1 << 6 }, // "Reset" on back panel
+ { .name = "ses", .gpio = 1 << 8 }, // "Reserved" on top panel
+ },
+ .leds = {
+ { .name = "power", .gpio = 1 << 1, .polarity = NORMAL }, // Power LED
+ { .name = "ses_amber", .gpio = 1 << 3, .polarity = REVERSE }, // "Security" Amber
+ { .name = "ses_blue", .gpio = 1 << 9, .polarity = REVERSE }, // "Security" Blue
+ },
+ },
[WRT350N] = {
.name = "Linksys WRT350N",
.buttons = {
@@ -1397,6 +1410,8 @@ static struct platform_t __init *platform_detect(void)
return &platforms[WRT160NV3];
case BCM47XX_BOARD_LINKSYS_WRT300NV11:
return &platforms[WRT300NV11];
+ case BCM47XX_BOARD_LINKSYS_WRT310NV1:
+ return &platforms[WRT310NV1];
case BCM47XX_BOARD_LINKSYS_WRT54G3GV2:
return &platforms[WRT54G3GV2_VF];
case BCM47XX_BOARD_LINKSYS_WRT610NV1: