[U-Boot] [PATCH 1/5] spi_sf: Skip the erasing of protected sectors
Fabio Estevam
festevam at gmail.com
Fri Sep 4 18:00:35 CEST 2015
On Wed, Sep 2, 2015 at 11:41 AM, Otavio Salvador
<otavio at ossystems.com.br> wrote:
> Many SPI flashes have protection bits (BP2, BP1 and BP0) in the
> status register that can protect selected regions of the SPI NOR.
>
> Take these bits into account when performing erase operations,
> making sure that the protected areas are skipped.
>
> Introduce the CONFIG_SPI_NOR_PROTECTION option that can be selected
> by systems that want to protect selected regions of SPI NOR flash.
>
> Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
I was able to test it and the SPI NOR protection worked on a
mx6qsabresd with a M25P32:
Tested-by: Fabio Estevam <fabio.estevam at freescale.com>
More information about the U-Boot
mailing list