cfi_flash: add support for Spansion flash PPB sector protection
authorAnatolij Gustschin <agust@denx.de>
Thu, 9 Aug 2012 06:18:12 +0000 (08:18 +0200)
committerStefan Roese <sr@denx.de>
Mon, 13 Aug 2012 12:34:35 +0000 (14:34 +0200)
commit66863b0538d3667a0a4bb64b0eb9197aea27f855
tree636fe1a955a7ff4884a164ab069b86668676a208
parentb4f106be2d8a4eb34ce41c5306d5a4fcc37e60e3
cfi_flash: add support for Spansion flash PPB sector protection

Erasing flash sectors protected with persistent protection bit (PPB)
mechanism on Spansion flash chips doesn't work. Add sector protection
status checking and sector lock and unlock commands to fix this.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: Stefan Roese <sr@denx.de>
Signed-off-by: Stefan Roese <sr@denx.de>
drivers/mtd/cfi_flash.c
include/mtd/cfi_flash.h