cfi: Check for blank before erase
authorJoe Hershberger <joe.hershberger@ni.com>
Fri, 17 Aug 2012 20:36:40 +0000 (15:36 -0500)
committerStefan Roese <sr@denx.de>
Mon, 3 Sep 2012 09:24:27 +0000 (11:24 +0200)
commit6822a647b94cb05869231251e5a29f9742bb3ce2
tree0232758ddb50f2f8c75d467de0a049e85283a8b4
parenta005f19eff946454985785788c344f10616d571e
cfi: Check for blank before erase

Added an optional check in the CFI driver to evaluate if the sector is
already blank before issuing an erase command.  Improves erase time by
over a factor of 10 if already blank.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Stefan Roese <sr@denx.de>
drivers/mtd/cfi_flash.c