This series introduces a configurable RDCR (Read Configuration Register)
opcode for spi-nor flashes and applies a fix for Macronix devices.
Patch 1 adds a new flash parameter to hold the RDCR opcode, defaulting
to 0x35 (JEDEC standard).
Patch 2 applies a Macronix-specific fixup, setting the RDCR opcode to
0x15.
Signed-off-by: Maarten Zanders <maarten@zanders.be>
Maarten Zanders (2):
mtd: spi-nor: add configurable RDCR opcode
mtd: spi-nor: macronix: use RDCR opcode 0x15
drivers/mtd/spi-nor/core.c | 12 +++++++++---
drivers/mtd/spi-nor/core.h | 6 ++++--
drivers/mtd/spi-nor/macronix.c | 1 +
include/linux/mtd/spi-nor.h | 3 +++
4 files changed, 17 insertions(+), 5 deletions(-)
base-commit: 4550d33e18112a11a740424c4eec063cd58e918c
--
2.51.0