fix gpios for wzr-rs-g54, add support for the wzr-rs-g54hp
SVN-Revision: 5636
This commit is contained in:
parent
beaeecbb9f
commit
7bb9865fff
1 changed files with 19 additions and 2 deletions
|
@ -70,6 +70,7 @@ enum {
|
||||||
WHR2_A54G54,
|
WHR2_A54G54,
|
||||||
WLA2_G54L,
|
WLA2_G54L,
|
||||||
WZR_RS_G54,
|
WZR_RS_G54,
|
||||||
|
WZR_RS_G54HP,
|
||||||
BUFFALO_UNKNOWN,
|
BUFFALO_UNKNOWN,
|
||||||
BUFFALO_UNKNOWN_4710,
|
BUFFALO_UNKNOWN_4710,
|
||||||
|
|
||||||
|
@ -284,10 +285,24 @@ static struct platform_t __initdata platforms[] = {
|
||||||
.name = "Buffalo WZR-RS-G54",
|
.name = "Buffalo WZR-RS-G54",
|
||||||
.buttons = {
|
.buttons = {
|
||||||
{ .name = "ses", .gpio = 1 << 0 },
|
{ .name = "ses", .gpio = 1 << 0 },
|
||||||
{ .name = "reset", .gpio = 1 << 7 },
|
{ .name = "reset", .gpio = 1 << 4 },
|
||||||
},
|
},
|
||||||
.leds = {
|
.leds = {
|
||||||
{ .name = "diag", .gpio = 1 << 1, .polarity = REVERSE },
|
{ .name = "diag", .gpio = 1 << 7, .polarity = REVERSE },
|
||||||
|
{ .name = "ses", .gpio = 1 << 6, .polarity = REVERSE },
|
||||||
|
{ .name = "vpn", .gpio = 1 << 1, .polarity = REVERSE },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
[WZR_RS_G54HP] = {
|
||||||
|
.name = "Buffalo WZR-RS-G54HP",
|
||||||
|
.buttons = {
|
||||||
|
{ .name = "ses", .gpio = 1 << 0 },
|
||||||
|
{ .name = "reset", .gpio = 1 << 4 },
|
||||||
|
},
|
||||||
|
.leds = {
|
||||||
|
{ .name = "diag", .gpio = 1 << 7, .polarity = REVERSE },
|
||||||
|
{ .name = "ses", .gpio = 1 << 6, .polarity = REVERSE },
|
||||||
|
{ .name = "vpn", .gpio = 1 << 1, .polarity = REVERSE },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
[BUFFALO_UNKNOWN] = {
|
[BUFFALO_UNKNOWN] = {
|
||||||
|
@ -476,6 +491,8 @@ static struct platform_t __init *platform_detect(void)
|
||||||
return &platforms[WHR2_A54G54];
|
return &platforms[WHR2_A54G54];
|
||||||
if (!strcmp(buf, "30083"))
|
if (!strcmp(buf, "30083"))
|
||||||
return &platforms[WZR_RS_G54];
|
return &platforms[WZR_RS_G54];
|
||||||
|
if (!strcmp(buf, "30103"))
|
||||||
|
return &platforms[WZR_RS_G54HP];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buf || !strcmp(boardnum, "00")) {/* probably buffalo */
|
if (buf || !strcmp(boardnum, "00")) {/* probably buffalo */
|
||||||
|
|
Loading…
Reference in a new issue