[MTD] [NOR] AT49BV6416 has swapped erase regions
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Tue, 30 Sep 2008 11:55:33 +0000 (13:55 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 18 Oct 2008 11:53:15 +0000 (12:53 +0100)
commitbe8f78b8e8b5bcafc19ac85b815e98049aa86314
treeb0dc5f12b267365743faa23130b7534c59f05966
parentaaf7ea20000436df3cbb397ccb734ad1e2e5164d
[MTD] [NOR] AT49BV6416 has swapped erase regions

The CFI information read from AT49BV6416 lists the erase regions in the
wrong order, causing problems when trying to erase or update the first
or last 64KiB block.

Work around this by inverting the "top boot" flag, which will
effectively reverse the order of the erase regions.

This chip is obsolete, but it's used in some existing designs.

Signed-off-by: HÃ¥vard Skinnemoen <haavard.skinnemoen@atmel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/chips/cfi_cmdset_0002.c