ar71xx: Fix header offset for newer WRT160NL models
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 31 May 2011 22:53:20 +0000 (22:53 +0000)
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 31 May 2011 22:53:20 +0000 (22:53 +0000)
commiteaa759a8e54b22b97766e05165466a35ddcd8b8c
tree4343d4bc8707ff8bd4cd33dcd423dc27e47fd010
parent5b9155bebae4972d6461697c6b2150f7eedbcb0f
ar71xx: Fix header offset for newer WRT160NL models

Newer WRT160NLs have a flash chip with 4K erase blocks instead of 64K,
resulting in miscalculated partition sizes.
Since the actual sizes did not change, hardcode them to their current
sizes, and make sure they are at least one erase block big (in case Cisco
decides to start to use chips with 128K erase blocks).

Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27049 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/ar71xx/files/drivers/mtd/wrt160nl_part.c