From: George Kashperko <geo...@znau.edu.ua> Add ASUS RT-N16 router detection, leds and buttons support Signed-off-by: George Kashperko <geo...@znau.edu.ua> --- Unfortunately noticed too late that email client of mine word wraps stuff thus making patch broken. Hopefully I got rid of it. --- trunk.24729.orig/package/broadcom-diag/src/diag.c 2010-12-25 11:19:28.000000000 +0200 +++ trunk.24729/package/broadcom-diag/src/diag.c 2011-02-05 02:34:04.000000000 +0200 @@ -74,6 +74,7 @@ enum { WL520GU, ASUS_4702, WL700GE, + RTN16, /* Buffalo */ WBR2_G54, @@ -502,6 +503,17 @@ static struct platform_t __initdata plat }, .platform_init = bcm4780_init, }, + [RTN16] = { + .name = "ASUS RT-N16", + .buttons = { + { .name = "reset", .gpio = 1 << 8 }, + { .name = "ses", .gpio = 1 << 5 }, + }, + .leds = { + { .name = "power", .gpio = 1 << 1, .polarity = REVERSE }, + { .name = "wlan", .gpio = 1 << 7, .polarity = NORMAL }, + }, + }, /* Buffalo */ [WHR_G54S] = { .name = "Buffalo WHR-G54S", @@ -950,6 +962,8 @@ static struct platform_t __init *platfor return &platforms[WL520GU]; if (startswith(buf,"WL330GE-")) /* WL330GE-* */ return &platforms[WL330GE]; + if (startswith(buf,"RT-N16-")) /* RT-N16-* */ + return &platforms[RTN16]; } /* Based on "ModelId" */
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel