mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 05:35:19 +02:00
[brcm-2.4] add support for the WRT160N, patch from Westley Paynter
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17031 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
7d0313c630
commit
5204355926
@ -60,6 +60,7 @@ enum {
|
|||||||
WRT54G,
|
WRT54G,
|
||||||
WRTSL54GS,
|
WRTSL54GS,
|
||||||
WRT54G3G,
|
WRT54G3G,
|
||||||
|
WRT160N,
|
||||||
WRT350N,
|
WRT350N,
|
||||||
WRT600N,
|
WRT600N,
|
||||||
WRT600NV11,
|
WRT600NV11,
|
||||||
@ -241,6 +242,18 @@ static struct platform_t __initdata platforms[] = {
|
|||||||
{ .name = "3g_blink", .gpio = 1 << 5, .polarity = NORMAL },
|
{ .name = "3g_blink", .gpio = 1 << 5, .polarity = NORMAL },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
[WRT160N] = {
|
||||||
|
.name = "Linksys WRT160N",
|
||||||
|
.buttons = {
|
||||||
|
{ .name = "reset", .gpio = 1 << 6 },
|
||||||
|
{ .name = "ses", .gpio = 1 << 4 },
|
||||||
|
},
|
||||||
|
.leds = {
|
||||||
|
{ .name = "power", .gpio = 1 << 1, .polarity = NORMAL },
|
||||||
|
{ .name = "ses_blue", .gpio = 1 << 5, .polarity = REVERSE },
|
||||||
|
{ .name = "ses_orange", .gpio = 1 << 3, .polarity = REVERSE },
|
||||||
|
},
|
||||||
|
},
|
||||||
[WRT350N] = {
|
[WRT350N] = {
|
||||||
.name = "Linksys WRT350N",
|
.name = "Linksys WRT350N",
|
||||||
.buttons = {
|
.buttons = {
|
||||||
@ -862,6 +875,9 @@ static struct platform_t __init *platform_detect(void)
|
|||||||
if (!strcmp(getvar("et1phyaddr"),"5") && !strcmp(getvar("et1mdcport"), "1"))
|
if (!strcmp(getvar("et1phyaddr"),"5") && !strcmp(getvar("et1mdcport"), "1"))
|
||||||
return &platforms[WRTSL54GS];
|
return &platforms[WRTSL54GS];
|
||||||
|
|
||||||
|
if (!strcmp(boardtype, "0x0472"))
|
||||||
|
return &platforms[WRT160N];
|
||||||
|
|
||||||
/* default to WRT54G */
|
/* default to WRT54G */
|
||||||
return &platforms[WRT54G];
|
return &platforms[WRT54G];
|
||||||
}
|
}
|
||||||
|
@ -160,6 +160,7 @@ CONFIG_MKISS=m
|
|||||||
CONFIG_MSDOS_FS=m
|
CONFIG_MSDOS_FS=m
|
||||||
CONFIG_MTD_BCM947XX=y
|
CONFIG_MTD_BCM947XX=y
|
||||||
CONFIG_MTD_CFI_SSTSTD=y
|
CONFIG_MTD_CFI_SSTSTD=y
|
||||||
|
CONFIG_MTD_CFI_B1=y
|
||||||
CONFIG_MTD_SFLASH=y
|
CONFIG_MTD_SFLASH=y
|
||||||
# CONFIG_NATSEMI is not set
|
# CONFIG_NATSEMI is not set
|
||||||
# CONFIG_NE2K_PCI is not set
|
# CONFIG_NE2K_PCI is not set
|
||||||
|
Loading…
Reference in New Issue
Block a user