spi-nor: s25fl512s supports region locking
authorJonas Bonn <jonas@norrbonn.se>
Wed, 20 Mar 2019 07:16:04 +0000 (08:16 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 1 Apr 2019 12:37:42 +0000 (14:37 +0200)
commitdcb4b22eeaf44f9122721ffc2b14d84363871454
tree9137481a3b6fa07428c48b167dc74eaddd5dfb1b
parent2b75ebeea6f4937d4d05ec4982c471cef9a29b7f
spi-nor: s25fl512s supports region locking

Both the BP[0-2] bits and the TBPROT bit are supported on this chip.
Tested and verified on a Cypress s25fl512s.

Signed-off-by: Jonas Bonn <jonas@norrbonn.se>
Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/spi-nor/spi-nor.c