[U-Boot] [PATCH 2/4 v2] cfi_flash: Read PPB sector protection from device for AMD/Spansion chips

Holger Brunck holger.brunck at keymile.com
Fri Dec 7 10:19:13 CET 2012


Hi Stefan,

On 12/06/2012 03:44 PM, Stefan Roese wrote:
> 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 at denx.de>
> Cc: Anatolij Gustschin <agust at denx.de>
> Cc: Holger Brunck <holger.brunck at keymile.com>
> ---

Tested-by: Holger Brunck <holger.brunck at keymile.com>

Regards
Holger




More information about the U-Boot mailing list