diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-01-02 15:07:42 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-01-02 15:07:42 +0000 |
commit | 14d1e17ad37ba50888569b4fa8064cdbf64a0ad1 (patch) | |
tree | 1610368b5737c5f36255368434b10a3b8e73137f /target/linux | |
parent | eeb604beb90e9291fc93a3017b1ec40458755f9d (diff) | |
download | upstream-14d1e17ad37ba50888569b4fa8064cdbf64a0ad1.tar.gz upstream-14d1e17ad37ba50888569b4fa8064cdbf64a0ad1.tar.bz2 upstream-14d1e17ad37ba50888569b4fa8064cdbf64a0ad1.zip |
adm5120: split bootext partition on the ZyXEL P-33x boards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19002 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/adm5120/files/arch/mips/adm5120/zyxel/p-33x.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/target/linux/adm5120/files/arch/mips/adm5120/zyxel/p-33x.c b/target/linux/adm5120/files/arch/mips/adm5120/zyxel/p-33x.c index 6d4d4ddee7..24dce32558 100644 --- a/target/linux/adm5120/files/arch/mips/adm5120/zyxel/p-33x.c +++ b/target/linux/adm5120/files/arch/mips/adm5120/zyxel/p-33x.c @@ -27,11 +27,15 @@ static struct mtd_partition p33x_partitions[] = { .name = "rom", .offset = MTDPART_OFS_APPEND, .size = 16*1024, + .mask_flags = MTD_WRITEABLE, } , { - .name = "bootext", + .name = "bootext1", .offset = MTDPART_OFS_APPEND, - .size = 96*1024, - .mask_flags = MTD_WRITEABLE, + .size = 32*1024, + } , { + .name = "bootext2", + .offset = MTDPART_OFS_APPEND, + .size = 64*1024, } , { .name = "trx", .offset = MTDPART_OFS_APPEND, @@ -83,7 +87,7 @@ void __init p33x_generic_setup(void) adm5120_add_device_gpio(P33X_GPIO_DEV_MASK); adm5120_setup_eth_macs(bootbase_info.mac); - adm5120_add_device_switch(5, p33x_vlans); + adm5120_add_device_switch(6, p33x_vlans); adm5120_pci_set_irq_map(ARRAY_SIZE(p33x_pci_irqs), p33x_pci_irqs); } |