History

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.

Michael Walle committed 4 years ago

Commit 94f697c1 parent 5ad784d4 files · +41 −40Browse files

Showing the changes to include (1 of 4 files). Show all

Unified · Split

include/linux/mtd/spi-nor.h+0−2
@@ -47,8 +47,6 @@ · 46 unmodified lines
4747 #define SPINOR_OP_RDID 0x9f /* Read JEDEC ID */
4848 #define SPINOR_OP_RDSFDP 0x5a /* Read SFDP */
4949 #define SPINOR_OP_RDCR 0x35 /* Read configuration register */
50−#define SPINOR_OP_RDEAR 0xc8 /* Read Extended Address Register */
51−#define SPINOR_OP_WREAR 0xc5 /* Write Extended Address Register */
5250 #define SPINOR_OP_SRSTEN 0x66 /* Software Reset Enable */
5351 #define SPINOR_OP_SRST 0x99 /* Software Reset */
5452 #define SPINOR_OP_GBULK 0x98 /* Global Block Unlock */