X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=package%2Fbroadcom-diag%2Fsrc%2Fdiag.c;h=ca08e46fd83aa8fab0aa5ea0a640c1ea8a852cc4;hp=834a83abdc79515398bb035605035eb5119ec531;hb=3a95f887bfe04f2621885540223484701a94bb09;hpb=11ca1af93f0f6e63519be32bd50ccca8396829be diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c index 834a83abdc..ca08e46fd8 100644 --- a/package/broadcom-diag/src/diag.c +++ b/package/broadcom-diag/src/diag.c @@ -60,6 +60,7 @@ enum { WRT54G, WRTSL54GS, WRT54G3G, + WRT160N, WRT350N, WRT600N, WRT600NV11, @@ -241,6 +242,18 @@ static struct platform_t __initdata platforms[] = { { .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 = { @@ -862,6 +875,9 @@ static struct platform_t __init *platform_detect(void) 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]; }