WRT54G,
WRTSL54GS,
WRT54G3G,
+ WRT160N,
WRT350N,
WRT600N,
WRT600NV11,
+ WRT610N,
/* ASUS */
WLHDD,
{ .name = "3g_blink", .gpio = 1 << 5, .polarity = NORMAL },
},
},
+ [WRT160N] = {
+ .name = "Linksys WRT160N",
+ .buttons = {
+ { .name = "reset", .gpio = 1 << 6 },
+ { .name = "ses", .gpio = 1 << 4 },
+ },
+ .leds = {
+ { .name = "power", .gpio = 1 << 1, .polarity = NORMAL },
+ { .name = "ses_blue", .gpio = 1 << 5, .polarity = REVERSE },
+ { .name = "ses_orange", .gpio = 1 << 3, .polarity = REVERSE },
+ },
+ },
[WRT350N] = {
.name = "Linksys WRT350N",
.buttons = {
},
.platform_init = bcm57xx_init,
},
+ [WRT610N] = {
+ .name = "Linksys WRT610N",
+ .buttons = {
+ { .name = "reset", .gpio = 1 << 6 },
+ { .name = "ses", .gpio = 1 << 8 },
+ },
+ .leds = {
+ { .name = "power", .gpio = 1 << 1, .polarity = NORMAL }, // Power LED
+ { .name = "usb", .gpio = 1 << 0, .polarity = REVERSE }, // USB LED
+ { .name = "ses_amber", .gpio = 1 << 3, .polarity = REVERSE }, // WiFi protected setup LED amber
+ { .name = "ses_blue", .gpio = 1 << 9, .polarity = REVERSE }, // WiFi protected setup LED blue
+ },
+ },
/* Asus */
[WLHDD] = {
.name = "ASUS WL-HDD",
return &platforms[DIR330];
}
+ /* Based on "wsc_modelname */
+ if ((buf = nvram_get("wsc_modelname"))) {
+ if (!strcmp(buf, "WRT610N"))
+ return &platforms[WRT610N];
+ }
+
/* Based on "model_no" */
if ((buf = nvram_get("model_no"))) {
if (startswith(buf,"WL700")) /* WL700* */
if (!strcmp(getvar("et1phyaddr"),"5") && !strcmp(getvar("et1mdcport"), "1"))
return &platforms[WRTSL54GS];
+ if (!strcmp(boardtype, "0x0472"))
+ return &platforms[WRT160N];
+
/* default to WRT54G */
return &platforms[WRT54G];
}