mtd: spi-nor: enable locking support for MX25L12805D
authorDavid Bauer <mail@david-bauer.net>
Mon, 10 May 2021 13:33:40 +0000 (15:33 +0200)
committerVignesh Raghavendra <vigneshr@ti.com>
Thu, 27 May 2021 14:34:38 +0000 (20:04 +0530)
commit7ea40b54e83baed17d85567cfae56175def39a55
tree64133fdfde4b4e1a61e5a59b38766ea0187fbfe8
parentd406f49b05e547d1e1ff1e9e0e0133fa2538b2fc
mtd: spi-nor: enable locking support for MX25L12805D

Macronix MX25L12805D supports locking with 4 block
protection bits in its status register. Add the corresponding
flag in order to clear these bits when unloking the flash.

Otherwise, the flash might not be writable depending on the state
left by the bootloader.

Tested-on: Ubiquiti UniFi AC Lite (ath79)

Signed-off-by: David Bauer <mail@david-bauer.net>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Michael Walle <michael@walle.cc>
drivers/mtd/spi-nor/macronix.c