]> git.ipfire.org Git - people/ms/u-boot.git/commit - drivers/mtd/cfi_flash.c
cfi_flash: Read PPB sector protection from device for AMD/Spansion chips
authorStefan Roese <sr@denx.de>
Thu, 6 Dec 2012 14:44:10 +0000 (15:44 +0100)
committerStefan Roese <sr@denx.de>
Thu, 10 Jan 2013 13:39:48 +0000 (14:39 +0100)
commit03deff433ee8768947d3f232725d64806acd79bc
tree5cfb433fd6d4161352331b043c2a02fa2c44dc25
parent20043a4c3cfbe0df8b452ef137ad6149f68c4ada
cfi_flash: Read PPB sector protection from device for AMD/Spansion chips

Patch 66863b05 [cfi_flash: add support for Spansion flash PPB sector
protection] introduced the PPB (Persistent Protection Bit) locking for
Spansion chips. But right now the sector protection status (locked vs
unlocked) is set to unlocked for all sectors upon bootup. The real
sector protection status is ignored.

This patch now reads the current sector protection status and uses
it for these AMD/Spansion flash chips.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Holger Brunck <holger.brunck@keymile.com>
Tested-by: Holger Brunck <holger.brunck@keymile.com>
drivers/mtd/cfi_flash.c