This patchset implements the MTD OTP functions to allow access to the SPI OTP data. Specific support is added for the Adesto, Macronix and Winbond flash chips.
In the past there was already an attempt by Rahul Bedarkar to add this, but there was no response. These patches are slightly based on his work. https://lore.kernel.org/linux-mtd/[email protected]/ Michael Walle (4): mtd: spi-nor: cleanup common code mtd: spi-nor: add OTP support mtd: spi-nor: implement OTP support for Macronix and similar flashes mtd: spi-nor: implement OTP support for Winbond and similar flashes drivers/mtd/chips/Kconfig | 2 +- drivers/mtd/spi-nor/atmel.c | 13 +- drivers/mtd/spi-nor/core.c | 769 ++++++++++++++++++++++++--------- drivers/mtd/spi-nor/core.h | 61 +++ drivers/mtd/spi-nor/macronix.c | 13 +- drivers/mtd/spi-nor/winbond.c | 18 +- include/linux/mtd/spi-nor.h | 16 + 7 files changed, 676 insertions(+), 216 deletions(-) -- 2.20.1

