]> git.sur5r.net Git - u-boot/commit
cfi-flash: Fix problem in flash_toggle(), busy was not detected reliably
authorStefan Roese <sr@denx.de>
Mon, 16 Jun 2008 08:40:02 +0000 (10:40 +0200)
committerStefan Roese <sr@denx.de>
Thu, 19 Jun 2008 13:08:17 +0000 (15:08 +0200)
commitfb8c061ea05fc68d37e2a8b9f8c949d76c8d71a8
tree774181d048622d693b0ec16ead3293ecd602eb0b
parenta94f22f08f280905926219e568568964cb9eeb9d
cfi-flash: Fix problem in flash_toggle(), busy was not detected reliably

This patch simplifies flash_toggle() (AMD commandset), which is used to
detect if a FLASH device is still busy with erase/program operations. On
800MHz Canyonlands/Glacier boards (460EX/GT) the current implementation
did not detect the busy state reliably, resulting in non erased sectors
etc. This patch now simplifies this function by "just" comparing the
complete data-word instead of ANDing it with the command-word (0x40)
before the compatison. It is done the same way in the Linux implementation
chip_ready() in cfi_cmdset_0002.c.

Signed-off-by: Stefan Roese <sr@denx.de>
drivers/mtd/cfi_flash.c