]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: spi: spi-nor-core: Add SST vendor specific SFDP parser
authorTudor Ambarus <tudor.ambarus@microchip.com>
Wed, 13 Nov 2019 15:42:52 +0000 (15:42 +0000)
committerEugen Hristev <eugen.hristev@microchip.com>
Tue, 17 Dec 2019 07:49:05 +0000 (09:49 +0200)
commita11c081da3dfbef309cd21ab54b7b2582d0c9f35
treed05db61ef9f97c643170cf1529c16b54f1276966
parentef7c2af65966a57c98d3c47e6c2fe1ce2103b7f6
mtd: spi: spi-nor-core: Add SST vendor specific SFDP parser

JESD216 allow vendors to define their own SFDP tables.

Add SST SFDP parser. The vendor table is allocated using resource-managed
kmalloc - the table will be freed on driver detach. It will be accessible
by getting the UCLASS_SPI_FLASH's private data.

The SST's SFDP table is particularly of interest because contains
pre-programmed globally unique EUI-48 and EUI-64 identifiers.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>
drivers/mtd/spi/spi-nor-core.c
include/linux/mtd/spi-nor.h