mtd: spi-nor: sfdp: get the 1-1-8 and 1-8-8 protocol from SFDP
authorJaimeLiao <jaimeliao@mxic.com.tw>
Tue, 19 Dec 2023 10:21:03 +0000 (18:21 +0800)
committerTudor Ambarus <tudor.ambarus@linaro.org>
Wed, 20 Dec 2023 08:44:00 +0000 (10:44 +0200)
commitaf2792abd4555b676105fe3073a39cb0ed3e8bfa
tree3c62c6311f9ebadd5e5fa07e6d79eb5d64587045
parentfe18e22fa779718b7ec0effe8d5f10d86a124e31
mtd: spi-nor: sfdp: get the 1-1-8 and 1-8-8 protocol from SFDP

BFPT 17th DWORD contains the information about 1-1-8 and 1-8-8.
Parse BFPT DWORD[17] instruction to determine whether flash
supports 1-1-8 and 1-8-8, and set its dummy cycles accordingly.

Validated only the 1-1-8 read using a macronix flash with
Xilinx board zynq-picozed.

Signed-off-by: JaimeLiao <jaimeliao@mxic.com.tw>
Reviewed-by: Michael Walle <mwalle@kernel.org>
Link: https://lore.kernel.org/r/20231219102103.92738-2-jaimeliao.tw@gmail.com
[ta: update commit message, get rid of extra dereference]
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
drivers/mtd/spi-nor/sfdp.c
drivers/mtd/spi-nor/sfdp.h