flash: Add optional verify-after-write feature
authorStefan Roese <sr@denx.de>
Thu, 4 Apr 2013 13:53:14 +0000 (15:53 +0200)
committerStefan Roese <sr@denx.de>
Mon, 22 Apr 2013 08:56:38 +0000 (10:56 +0200)
commit352ef3f1b613cb711c51ec962d2cc1eafff1bf95
tree22778d28cc3a90d6c725e7e254b00d7c0e4a2b8a
parentd10f68ae47b67acab8b110b5c605dde4197a1820
flash: Add optional verify-after-write feature

Sometimes it might make sense to verify the written data to NOR flash.
This patch adds this feature. To enable this verify-after-write, you
need to define CONFIG_FLASH_VERIFY in your board config header.

Please note that this option is useless in nearly all cases,
since such flash programming errors usually are detected earlier
while unprotecting/erasing/programming. Please only enable
this option if you really know what you are doing.

Signed-off-by: Stefan Roese <sr@denx.de>
README
common/flash.c