
4 Sep
2015
4 Sep
'15
6 p.m.
On Wed, Sep 2, 2015 at 11:41 AM, Otavio Salvador otavio@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@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@freescale.com