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.
Showing the changes to include (1 of 4 files). Show all
Unified · Split
| @@ -47,8 +47,6 @@ · 46 unmodified lines | ||
| 47 | 47 | #define SPINOR_OP_RDID 0x9f /* Read JEDEC ID */ |
| 48 | 48 | #define SPINOR_OP_RDSFDP 0x5a /* Read SFDP */ |
| 49 | 49 | #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 */ | |
| 52 | 50 | #define SPINOR_OP_SRSTEN 0x66 /* Software Reset Enable */ |
| 53 | 51 | #define SPINOR_OP_SRST 0x99 /* Software Reset */ |
| 54 | 52 | #define SPINOR_OP_GBULK 0x98 /* Global Block Unlock */ |