]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: spi-nor: parse SFDP Sector Map Parameter Table
authorTudor Ambarus <tudor.ambarus@microchip.com>
Tue, 11 Sep 2018 15:40:07 +0000 (18:40 +0300)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Mon, 8 Oct 2018 19:28:26 +0000 (21:28 +0200)
commit4aef040d9916ed694741e0d1f3dea414c421c7b9
tree27f30af85a1cc4bb683c0ef0d98bfb999918f461
parentaae02f417da9c37fd6d3f3d63f33098a68246d1a
mtd: spi-nor: parse SFDP Sector Map Parameter Table

Add support for the SFDP (JESD216B) Sector Map Parameter Table. This
table is optional, but when available, we parse it to identify the
location and size of sectors within the main data array of the
flash memory device and to identify which Erase Types are supported by
each sector.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/spi-nor/spi-nor.c
include/linux/mtd/spi-nor.h