mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 03:30:37 +02:00
Add proper LED support to broadcom-diag for the Asus WL-320gE/gP routers (#4062)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12855 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
31800c29b0
commit
4a2e30239c
@ -67,6 +67,7 @@ enum {
|
|||||||
/* ASUS */
|
/* ASUS */
|
||||||
WLHDD,
|
WLHDD,
|
||||||
WL300G,
|
WL300G,
|
||||||
|
WL320GE,
|
||||||
WL500G,
|
WL500G,
|
||||||
WL500GD,
|
WL500GD,
|
||||||
WL500GP,
|
WL500GP,
|
||||||
@ -295,6 +296,17 @@ static struct platform_t __initdata platforms[] = {
|
|||||||
{ .name = "power", .gpio = 1 << 0, .polarity = REVERSE },
|
{ .name = "power", .gpio = 1 << 0, .polarity = REVERSE },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
[WL320GE] = {
|
||||||
|
.name = "ASUS WL-320gE/WL-320gP",
|
||||||
|
.buttons = {
|
||||||
|
{ .name = "reset", .gpio = 1 << 6 },
|
||||||
|
},
|
||||||
|
.leds = {
|
||||||
|
{ .name = "wlan", .gpio = 1 << 0, .polarity = REVERSE },
|
||||||
|
{ .name = "power", .gpio = 1 << 2, .polarity = REVERSE },
|
||||||
|
{ .name = "link", .gpio = 1 << 11, .polarity = REVERSE },
|
||||||
|
},
|
||||||
|
},
|
||||||
[WL500G] = {
|
[WL500G] = {
|
||||||
.name = "ASUS WL-500g",
|
.name = "ASUS WL-500g",
|
||||||
.buttons = {
|
.buttons = {
|
||||||
@ -825,6 +837,8 @@ static struct platform_t __init *platform_detect(void)
|
|||||||
return &platforms[WL500GP];
|
return &platforms[WL500GP];
|
||||||
else if (!strcmp(boardtype,"0x0472"))
|
else if (!strcmp(boardtype,"0x0472"))
|
||||||
return &platforms[WL500W];
|
return &platforms[WL500W];
|
||||||
|
else if (!strcmp(boardtype,"0x467"))
|
||||||
|
return &platforms[WL320GE];
|
||||||
else
|
else
|
||||||
return &platforms[WL500GD];
|
return &platforms[WL500GD];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user