[RFC 0/3] mtd: spi-nor: Add support of Sector Map Parameter Table

Prabhakar Kushwaha prabhakar.kushwaha at nxp.com
Fri Dec 29 03:53:49 PST 2017


JESD216B defines Sector Map Parameter Table. It identifies the
location and size of sectors within the main data array of the
flash memory device and identifies which Erase Types are supported
by each sector. This table is used when a memory device has sectors
of more than one size Or, does not allow all Erase Type commands to
be applied to all sectors.

This patch-set add support of Sector Map Parameter Table parsing.
It also update framework to support read/write anyreg commands
required by S25FS512S flash.

Tested with "S25FS512S" flash and by over-riding fsl_qspi_read_anyreg()
return with desired configuration id i.e. 0x05. Flash was
pre-programmed for Uniform 256-kB sectors via non-volatile registers.

Prabhakar Kushwaha (3):
  mtd: spi-nor: Add support of read/write any reg commands
  mtd: spi-nor: Implement anyreg functions for fsl-quadspi
  mtd: spi-nor: Add support of Sector Map Parameter Table

 drivers/mtd/spi-nor/fsl-quadspi.c |  18 +++
 drivers/mtd/spi-nor/spi-nor.c     | 266 +++++++++++++++++++++++++++++++++++++-
 include/linux/mtd/spi-nor.h       |  21 +++
 3 files changed, 302 insertions(+), 3 deletions(-)

-- 
2.7.4




More information about the linux-mtd mailing list