![]() > 8.2.7 Write Extended Address Register (C5h) 23:42 ` mtd: spi-nor: clear Winbond " NeilBrownĢ siblings, 1 reply 20+ messages in thread 7:04 mtd: spi-nor: clear Extended Address Reg on switch to 3-byte addressing 10:53 ` Marek Vasut * Re: mtd: spi-nor: clear Extended Address Reg on switch to 3-byte addressing. ^ raw reply related 20+ messages in thread #define SPINOR_OP_READ_4BĐx13 /* Read data bytes (low frequency) */ * 4-byte address opcodes - used on Spansion and some Macronix flashes. +#define SPINOR_OP_WRXA 0xc5 /* Write Extended Address Register */ +#define SPINOR_OP_RDXA 0xc8 /* Read Extended Address Register */ #define SPINOR_OP_CLFSR 0x50 /* Clear flag status register */ #define SPINOR_OP_RDFSR 0x70 /* Read flag status register */ + nor->write_reg(nor, SPINOR_OP_WRXA, &val, 1) ĭiff -git a/include/linux/mtd/spi-nor.h b/include/linux/mtd/spi-nor.h + /* need to reset the Extended Address Register */ + nor->read_reg(nor, SPINOR_OP_RDXA, &val, 1) = 0 & Status = nor->write_reg(nor, cmd, NULL, 0) +++ -269,6 +269,7 static inline int set_4byte(struct spi_nor *nor, const struct flash_info *info,Ĭase -283,6 +284,15 static inline int set_4byte(struct spi_nor *nor, const struct flash_info *info, (in 3-byte address mode) the boot loader, it reads from the wrongĭrivers/mtd/spi-nor/spi-nor.c | 10 ++++++++++ĭiff -git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c My GNUBEE-PC1 will not successfully reboot, as the Extended Address This patch adds code to implement that recommendation. Necessary when the device is switched from 4-Byte to 3-Byte Address Recommended to check and update the Extended Address Register if Will replace the Extended Address Register values. When the device operates in the 4-ByteĪddress Mode (ADS=1), any command with address input of A31-A24 The Extended Address Register is only effective when the device is Of the Winbond W25Q256FV data sheet (256M-BIT SPI flash) Richard Weinberger, linux-mtd, linux-kernelĨ.2.7 Write Extended Address Register (C5h) ` (2 more replies) 0 siblings, 3 replies 20+ messages in threadĬc: David Woodhouse, Brian Norris, Boris Brezillon, All the mail mirrored from help / color / mirror / code / Atom feed * mtd: spi-nor: clear Extended Address Reg on switch to 3-byte addressing. Mtd: spi-nor: clear Extended Address Reg on switch to 3-byte addressing. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |