]> 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)
commitea8f96ff0800278f0932c4fb9547431e15f1c97d
tree27f30af85a1cc4bb683c0ef0d98bfb999918f461
parent16eb6e09b0b1fb9b6c336efb72fdb171a71579b6
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