diff options
author | Michael Walle <michael@walle.cc> | 2022-04-29 12:01:53 +0200 |
---|---|---|
committer | Pratyush Yadav <p.yadav@ti.com> | 2022-05-02 14:42:00 +0530 |
commit | 94f697c5384bd7f9632acca483ba1ef9dd99ea97 (patch) | |
tree | 3d151571aa93bdcea17e7c47810bc05ae412e613 /include/linux/mtd | |
parent | 5ad784d990ac5d9b3ee74c637bc835501df1ff87 (diff) | |
download | linux-94f697c5384bd7f9632acca483ba1ef9dd99ea97.tar.gz linux-94f697c5384bd7f9632acca483ba1ef9dd99ea97.tar.bz2 linux-94f697c5384bd7f9632acca483ba1ef9dd99ea97.zip |
mtd: spi-nor: move spi_nor_write_ear() to winbond module
The "Extended Address Register" is winbond specific. If the flash is
larger than 16MiB and is used in 3 byte address mode, it is used to set
the remaining address bits. Move the write_ear() function, the opcode
macros and the spimem op template into the winbond module and rename
them accordingly.
Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
Link: https://lore.kernel.org/r/20220429100153.2338501-1-michael@walle.cc
Diffstat (limited to 'include/linux/mtd')
-rw-r--r-- | include/linux/mtd/spi-nor.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/mtd/spi-nor.h b/include/linux/mtd/spi-nor.h index 5e25a7b75ae2..e505c4a5c530 100644 --- a/include/linux/mtd/spi-nor.h +++ b/include/linux/mtd/spi-nor.h @@ -47,8 +47,6 @@ #define SPINOR_OP_RDID 0x9f /* Read JEDEC ID */ #define SPINOR_OP_RDSFDP 0x5a /* Read SFDP */ #define SPINOR_OP_RDCR 0x35 /* Read configuration register */ -#define SPINOR_OP_RDEAR 0xc8 /* Read Extended Address Register */ -#define SPINOR_OP_WREAR 0xc5 /* Write Extended Address Register */ #define SPINOR_OP_SRSTEN 0x66 /* Software Reset Enable */ #define SPINOR_OP_SRST 0x99 /* Software Reset */ #define SPINOR_OP_GBULK 0x98 /* Global Block Unlock */ |