mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-18 14:47:46 +01:00
add hardware detection for dell truemobile 2300
SVN-Revision: 5854
This commit is contained in:
parent
e3a0c3b9fd
commit
680e7b59bc
@ -393,7 +393,8 @@ static struct platform_t __initdata platforms[] = {
|
|||||||
{ .name = "reset", .gpio = 1 << 0 },
|
{ .name = "reset", .gpio = 1 << 0 },
|
||||||
},
|
},
|
||||||
.leds = {
|
.leds = {
|
||||||
{ .name = "diag", .gpio = 1 << 7, .polarity = REVERSE },
|
{ .name = "wlan", .gpio = 1 << 6, .polarity = REVERSE },
|
||||||
|
{ .name = "power", .gpio = 1 << 7, .polarity = REVERSE },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
/* Motorola */
|
/* Motorola */
|
||||||
@ -502,6 +503,11 @@ static struct platform_t __init *platform_detect(void)
|
|||||||
if (!strcmp(boardnum, "10496"))
|
if (!strcmp(boardnum, "10496"))
|
||||||
return &platforms[USR5461];
|
return &platforms[USR5461];
|
||||||
} else { /* PMON based - old stuff */
|
} 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) &&
|
if ((simple_strtoul(getvar("GemtekPmonVer"), NULL, 0) == 9) &&
|
||||||
(simple_strtoul(getvar("et0phyaddr"), NULL, 0) == 30)) {
|
(simple_strtoul(getvar("et0phyaddr"), NULL, 0) == 30)) {
|
||||||
if (!strncmp(getvar("ModelId"),"WE800G", 6))
|
if (!strncmp(getvar("ModelId"),"WE800G", 6))
|
||||||
|
Loading…
Reference in New Issue
Block a user