mtd: spi-nor: Parse SFDP SCCR Map
authorTudor Ambarus <tudor.ambarus@microchip.com>
Mon, 5 Oct 2020 15:31:32 +0000 (21:01 +0530)
committerVignesh Raghavendra <vigneshr@ti.com>
Mon, 9 Nov 2020 06:26:16 +0000 (11:56 +0530)
commit981a8d60e01f7e76d6bccb621598d087c9dd4a5d
tree6371f5e6fe95fb95e46da4103e0948f96617263a
parentc6908077b194e46e7180d241ff2dbb85dc30bbd1
mtd: spi-nor: Parse SFDP SCCR Map

Parse just the 22nd dword and look for the 'DTR Octal Mode Enable
Volatile bit'.

SPI_NOR_IO_MODE_EN_VOLATILE should be set just for the flashes
that don't define the optional SFDP SCCR Map. For the others,
let the SFDP do its job and fill the SNOR_F_IO_MODE_EN_VOLATILE
flag. We avoid this way polluting the flash flags when declaring
one.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Link: https://lore.kernel.org/r/20201005153138.6437-10-p.yadav@ti.com
drivers/mtd/spi-nor/sfdp.c