diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-08-01 16:54:51 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-08-01 16:54:51 +0000 |
commit | a5e3f9b1977f4bfe24df52c2522549f911642d27 (patch) | |
tree | 4915a59a39e11d33a16df3809457bb172ee3ece7 /target/linux/adm5120-2.6/files/arch/mips/adm5120/boards/zyxel.c | |
parent | cb8ec9bac26e6c9f4aaa09a1fa5f25660e43a7ee (diff) |
[adm5120] add support for board specific vlan matrix, should fix #2132
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8309 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120-2.6/files/arch/mips/adm5120/boards/zyxel.c')
-rw-r--r-- | target/linux/adm5120-2.6/files/arch/mips/adm5120/boards/zyxel.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/target/linux/adm5120-2.6/files/arch/mips/adm5120/boards/zyxel.c b/target/linux/adm5120-2.6/files/arch/mips/adm5120/boards/zyxel.c index f6cdc8af4a..25e5a319be 100644 --- a/target/linux/adm5120-2.6/files/arch/mips/adm5120/boards/zyxel.c +++ b/target/linux/adm5120-2.6/files/arch/mips/adm5120/boards/zyxel.c @@ -55,9 +55,18 @@ static struct mtd_partition p33x_partitions[] = { .offset = MTDPART_OFS_APPEND, .size = 16*1024, } , { - .name = "firmware", + .name = "bootext", + .offset = MTDPART_OFS_APPEND, + .size = 96*1024, + .mask_flags = MTD_WRITEABLE, + } , { + .name = "trx", .offset = MTDPART_OFS_APPEND, .size = MTDPART_SIZ_FULL, + } , { + .name = "firmware", + .offset = 32*1024, + .size = MTDPART_SIZ_FULL, } }; @@ -83,10 +92,17 @@ static void __init p33x_setup(void) /* TODO: setup mac address */ } +unsigned char p33x_vlans[6] __initdata = { + /* FIXME: untested */ + 0x50, 0x48, 0x44, 0x42, 0x41, 0x00 +}; + static struct adm5120_board p334wt_board __initdata = { .mach_type = MACH_ADM5120_P334WT, .name = "ZyXEL Prestige 334WT", .board_setup = p33x_setup, + .eth_num_ports = 5, + .eth_vlans = p33x_vlans, .num_devices = ARRAY_SIZE(p334_devices), .devices = p334_devices, }; @@ -95,6 +111,8 @@ static struct adm5120_board p335_board __initdata = { .mach_type = MACH_ADM5120_P335, .name = "ZyXEL Prestige 335/335WT", .board_setup = p33x_setup, + .eth_num_ports = 5, + .eth_vlans = p33x_vlans, .num_devices = ARRAY_SIZE(p335_devices), .devices = p335_devices, }; |