diff options
author | Oleksij Rempel <o.rempel@pengutronix.de> | 2019-08-20 09:06:38 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-08-21 08:50:24 +0200 |
commit | 9b9b3ac2d5f3450375eeedd403d32707ff8a828d (patch) | |
tree | b3e0b3528a189e3b830079648381ee55e52e49d0 /include | |
parent | 484add97d1467e1fb30c5131dd91f32e62afec73 (diff) | |
download | barebox-9b9b3ac2d5f3450375eeedd403d32707ff8a828d.tar.gz barebox-9b9b3ac2d5f3450375eeedd403d32707ff8a828d.tar.xz |
mtd: spi-nor: add UNLOCK_GLOBAL_BLOCK support
Ported from linux-4.19-at91 linux4sam_6.1 and needed for
SAMA5D27 SOM1 EK.
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mtd/spi-nor.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mtd/spi-nor.h b/include/linux/mtd/spi-nor.h index 33413ff955..105f381ada 100644 --- a/include/linux/mtd/spi-nor.h +++ b/include/linux/mtd/spi-nor.h @@ -64,6 +64,7 @@ #define SPINOR_OP_CLFSR 0x50 /* Clear flag status register */ #define SPINOR_OP_RDEAR 0xc8 /* Read Extended Address Register */ #define SPINOR_OP_WREAR 0xc5 /* Write Extended Address Register */ +#define SPINOR_OP_GBULK 0x98 /* Global Block Unlock Protection */ /* 4-byte address opcodes - used on Spansion and some Macronix flashes. */ #define SPINOR_OP_READ_4B 0x13 /* Read data bytes (low frequency) */ |