OSDN Git Service

mtd: spi-nor: sfdp: get command opcode extension type from BFPT
authorPratyush Yadav <p.yadav@ti.com>
Mon, 5 Oct 2020 15:31:27 +0000 (21:01 +0530)
committerVignesh Raghavendra <vigneshr@ti.com>
Mon, 9 Nov 2020 06:26:16 +0000 (11:56 +0530)
commit0e1b2fc4e5f681ba716f5a50da710251c717413d
tree7ee58269bd7281dd9193b791ba2af19d8dc8623a
parent0e30f47232ab57c685258aa91adc3a3e67bd023e
mtd: spi-nor: sfdp: get command opcode extension type from BFPT

Some devices in DTR mode expect an extra command byte called the
extension. The extension can either be same as the opcode, bitwise
inverse of the opcode, or another additional byte forming a 16-byte
opcode. Get the extension type from the BFPT. For now, only flashes with
"repeat" and "inverse" extensions are supported.

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