From b9224190461f2b51f7831542d044bf57cdc7e6b8 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 19 Dec 2006 06:40:32 +0000 Subject: [PATCH] add hardware detection for dell truemobile 2300 SVN-Revision: 5854 --- openwrt/target/linux/package/diag/src/diag.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/openwrt/target/linux/package/diag/src/diag.c b/openwrt/target/linux/package/diag/src/diag.c index 0537da1d09..7d7add2478 100644 --- a/openwrt/target/linux/package/diag/src/diag.c +++ b/openwrt/target/linux/package/diag/src/diag.c @@ -360,7 +360,8 @@ static struct platform_t __init platforms[] = { { .name = "reset", .gpio = 1 << 0 }, }, .leds = { - { .name = "diag", .gpio = 1 << 7, .polarity = REVERSE }, + { .name = "wlan", .gpio = 1 << 6, .polarity = REVERSE }, + { .name = "power", .gpio = 1 << 7, .polarity = REVERSE }, }, }, /* Motorola */ @@ -460,6 +461,11 @@ static struct platform_t __init *platform_detect(void) if (!strcmp(boardnum, "10496")) return &platforms[USR5461]; } else { /* PMON based - old stuff */ + + /* Dell TrueMobile 2300 */ + if (!strcmp(getvar("ModelId"),"WX-5565")) + return &platforms[TM2300]; + if ((simple_strtoul(getvar("GemtekPmonVer"), NULL, 0) == 9) && (simple_strtoul(getvar("et0phyaddr"), NULL, 0) == 30)) { if (!strncmp(getvar("ModelId"),"WE800G", 6)) -- 2.30.2