brcm47xx: added dual image support to flashmap driver
authorMarkus Wigge <mwigge@marcant.net>
Thu, 1 Jul 2010 16:26:24 +0000 (16:26 +0000)
committerMarkus Wigge <mwigge@marcant.net>
Thu, 1 Jul 2010 16:26:24 +0000 (16:26 +0000)
commit90586fa46725b8574c2b1f934c6ab180ebd0ab07
tree78f99348d7c79a4a90db42eaf7e490248a08fd31
parent9a21a985c15be59f3187bea00a2ea73fed19882a
brcm47xx: added dual image support to flashmap driver

some CFE versions (i.e. WRT54G3Gv2-VF) expect two separate firmware
images which each consume half of the available flash space.
these changes check for the TRX header version and set the partition
size correctly.
Tested on G3Gv2-VF and Asus WL-500GP

SVN-Revision: 22019
target/linux/brcm47xx/files/drivers/mtd/maps/bcm47xx-flash.c