mtd: spi-nor: add opcodes for octal Read/Write commands
authorYogesh Narayan Gaur <yogeshnarayan.gaur@nxp.com>
Tue, 15 Jan 2019 10:05:10 +0000 (10:05 +0000)
committerBoris Brezillon <bbrezillon@kernel.org>
Thu, 17 Jan 2019 07:43:09 +0000 (08:43 +0100)
commitfcd44b64b1eb0a33f6cc14f21dcb927ffd664af3
tree63d1cc46c694606d12359e3939da3adcbddcae5c
parent356dd9ce2361ba5ba74eeff227fb6ab6d46e128c
mtd: spi-nor: add opcodes for octal Read/Write commands

- Add opcodes for octal I/O commands
  * Read  : 1-1-8 and 1-8-8 protocol
  * Write : 1-1-8 and 1-8-8 protocol
  * opcodes for 4-byte address mode command

- Entry of macros in _convert_3to4_xxx function

- Add flag SPI_NOR_OCTAL_READ specifying flash support octal read
  commands. This flag is required for flashes which didn't provides
  support for auto detection of Octal mode capabilities i.e. not
  seems to support newer JESD216C standard.

Signed-off-by: Vignesh R <vigneshr@ti.com>
Signed-off-by: Yogesh Narayan Gaur <yogeshnarayan.gaur@nxp.com>
Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Boris Brezillon <bbrezillon@kernel.org>
drivers/mtd/spi-nor/spi-nor.c
include/linux/mtd/spi-nor.h