Sfoglia il codice sorgente

add wl-500w diag support (untested, based on patch from #1298)

SVN-Revision: 6416
Felix Fietkau 19 anni fa
parent
commit
89b89ef77d
1 ha cambiato i file con 13 aggiunte e 0 eliminazioni
  1. 13 0
      package/broadcom-diag/src/diag.c

+ 13 - 0
package/broadcom-diag/src/diag.c

@@ -62,6 +62,7 @@ enum {
 	WL500G,
 	WL500G,
 	WL500GD,
 	WL500GD,
 	WL500GP,
 	WL500GP,
+	WL500W,
 	ASUS_4702,
 	ASUS_4702,
 	WL700GE,
 	WL700GE,
 	
 	
@@ -250,6 +251,16 @@ static struct platform_t __initdata platforms[] = {
 			{ .name = "power",	.gpio = 1 << 1, .polarity = REVERSE },
 			{ .name = "power",	.gpio = 1 << 1, .polarity = REVERSE },
 		},
 		},
 	},
 	},
+	[WL500W] = {
+		.name		= "ASUS WL-500W",
+		.buttons	= {
+			{ .name = "reset",	.gpio = 1 << 6 },
+			{ .name = "ses",	.gpio = 1 << 7 },
+		},
+		.leds		= {
+			{ .name = "power",	.gpio = 1 << 5, .polarity = REVERSE },
+		},
+	},
 	[ASUS_4702] = {
 	[ASUS_4702] = {
 		.name		= "ASUS (unknown, BCM4702)",
 		.name		= "ASUS (unknown, BCM4702)",
 		.buttons	= {
 		.buttons	= {
@@ -535,6 +546,8 @@ static struct platform_t __init *platform_detect(void)
 		if (!strcmp(boardnum, "45")) { /* ASUS */
 		if (!strcmp(boardnum, "45")) { /* ASUS */
 			if (!strcmp(boardtype,"0x042f"))
 			if (!strcmp(boardtype,"0x042f"))
 				return &platforms[WL500GP];
 				return &platforms[WL500GP];
+			else if (!strcmp(boardtype,"0x0472"))
+				return &platforms[WL500W];
 			else
 			else
 				return &platforms[WL500GD];
 				return &platforms[WL500GD];
 		}
 		}