cfi_flash: Add manufacturer-specific fixups
authorHaavard Skinnemoen <hskinnemoen@atmel.com>
Fri, 14 Dec 2007 14:36:18 +0000 (15:36 +0100)
committerStefan Roese <sr@denx.de>
Mon, 17 Dec 2007 14:48:38 +0000 (15:48 +0100)
commit467bcee11fe26ad422f2de971aa70866079870f2
tree5c5fc8f8560ca928dfde75ab7b5c67988b8bf536
parent0ddf06ddf6b4bd057ad4c5f0dffea7870ba06a2a
cfi_flash: Add manufacturer-specific fixups

Run fixups based on the JEDEC manufacturer ID independent of the
command set ID.

This changes current behaviour: Previously, geometry reversal for AMD
chips were done based on the command set ID, while they are now done
based on the JEDEC manufacturer and device ID.

Also add fixup for top-boot Atmel chips. A fixup is needed for
AT49BV6416(T) too, but since u-boot currently only reads the low byte
of the device ID, there's no way to tell it apart from AT49BV642D,
which should not have this fixup. Since AT49BV642D support is
necessary to get ATNGW100 board support into mainline, I've commented
out the fixup for now.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
drivers/mtd/cfi_flash.c