aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2013-09-16 19:52:23 +0000
committerHauke Mehrtens <hauke@openwrt.org>2013-09-16 19:52:23 +0000
commitff60f978206874183e7cc6b5f3a959f64ed38815 (patch)
treee7fa65b7c7f0a92125c6e0142e678d33ec23d5f9 /package
parentc0429299716d724ff88168e8c0f1d11b11959a82 (diff)
downloadmaster-187ad058-ff60f978206874183e7cc6b5f3a959f64ed38815.tar.gz
master-187ad058-ff60f978206874183e7cc6b5f3a959f64ed38815.tar.bz2
master-187ad058-ff60f978206874183e7cc6b5f3a959f64ed38815.zip
broadcom-diag: add GPIO configuration for Linksys E2000 V1
Thank you Javier Achirica for the patch. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38008 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/kernel/broadcom-diag/src/diag.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/package/kernel/broadcom-diag/src/diag.c b/package/kernel/broadcom-diag/src/diag.c
index cdfc9af67b..d4ba0b0fbe 100644
--- a/package/kernel/broadcom-diag/src/diag.c
+++ b/package/kernel/broadcom-diag/src/diag.c
@@ -91,6 +91,7 @@ enum {
WRT610NV2,
E1000V1,
E1000V21,
+ E2000V1,
E3000V1,
E3200V1,
E4200V1,
@@ -501,6 +502,19 @@ static struct platform_t __initdata platforms[] = {
{ .name = "ses_orange", .gpio = 1 << 7, .polarity = NORMAL }, /* nvram get gpio7=wps_status_led */
},
},
+ [E2000V1] = {
+ .name = "Linksys E2000 V1",
+ .buttons = {
+ { .name = "reset", .gpio = 1 << 8 },
+ { .name = "ses", .gpio = 1 << 5 },
+ },
+ .leds = {
+ { .name = "power", .gpio = 1 << 2, .polarity = NORMAL },
+ { .name = "ses_amber", .gpio = 1 << 4, .polarity = REVERSE },
+ { .name = "ses_blue", .gpio = 1 << 3, .polarity = REVERSE },
+ { .name = "wlan", .gpio = 1 << 1, .polarity = NORMAL },
+ },
+ },
[E3000V1] = {
.name = "Linksys E3000 V1",
.buttons = {
@@ -1394,6 +1408,8 @@ static struct platform_t __init *platform_detect(void)
return &platforms[E1000V1];
case BCM47XX_BOARD_LINKSYS_E1000V21:
return &platforms[E1000V21];
+ case BCM47XX_BOARD_LINKSYS_E2000V1:
+ return &platforms[E2000V1];
case BCM47XX_BOARD_LINKSYS_E3000V1:
return &platforms[E3000V1];
case BCM47XX_BOARD_LINKSYS_E3200V1: