]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
mtd: spi-nor: add octal read flag for flash mt35xu512aba
authorYogesh Narayan Gaur <yogeshnarayan.gaur@nxp.com>
Tue, 15 Jan 2019 10:05:16 +0000 (10:05 +0000)
committerBoris Brezillon <bbrezillon@kernel.org>
Thu, 17 Jan 2019 07:43:12 +0000 (08:43 +0100)
Add octal read flag for flash mt35xu512aba.
This flash, mt35xu512aba, is only complaint to SFDP JESD216B and does
not seem to support newer JESD216C standard that provides auto
detection of Octal mode capabilities and opcodes. Therefore, this
capability is manually added using new SPI_NOR_OCTAL_READ flag.

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

index 872d70722672472abc4ffd896580ee6787379773..53a3bcc6a55b52d551dfa786d4985cb1b5b8095e 100644 (file)
@@ -1877,7 +1877,8 @@ static const struct flash_info spi_nor_ids[] = {
        /* Micron */
        {
                "mt35xu512aba", INFO(0x2c5b1a, 0, 128 * 1024, 512,
-                       SECT_4K | USE_FSR | SPI_NOR_4B_OPCODES)
+                       SECT_4K | USE_FSR | SPI_NOR_OCTAL_READ |
+                       SPI_NOR_4B_OPCODES)
        },
 
        /* PMC */