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)
commitb038e8e3be724dd293a0849f5fe267fdddcca9dd
tree27f30af85a1cc4bb683c0ef0d98bfb999918f461
parent5390a8df769ec9ba9c995191bb0867430f602ebb
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