]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ENGR00318895-9 mtd: spi-nor: add more read transfer flags for n25q256a
authorHuang Shijie <b32955@freescale.com>
Fri, 25 Apr 2014 05:24:55 +0000 (13:24 +0800)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:16:56 +0000 (21:16 -0600)
The NOR flash can supports dual/quad/ddr-quad read.
Add more flags for these read transfers.

From the datasheet, the chip support the 64K sector erase operation.
So remove the SECT_4K for the chip which makes the flash_erase faster.

Signed-off-by: Huang Shijie <b32955@freescale.com>
drivers/mtd/spi-nor/spi-nor.c

index 687d08f494858738a3b407c6e8bb3429dc6fb10b..c01b35eed05a7317b44f7a0cfb17fcfb87a9caad 100644 (file)
@@ -500,7 +500,7 @@ const struct spi_device_id spi_nor_ids[] = {
        { "n25q064",     INFO(0x20ba17, 0, 64 * 1024,  128, 0) },
        { "n25q128a11",  INFO(0x20bb18, 0, 64 * 1024,  256, 0) },
        { "n25q128a13",  INFO(0x20ba18, 0, 64 * 1024,  256, 0) },
-       { "n25q256a",    INFO(0x20ba19, 0, 64 * 1024,  512, SECT_4K) },
+       { "n25q256a",    INFO(0x20ba19, 0, 64 * 1024,  512, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_DDR_QUAD_READ) },
        { "n25q512a",    INFO(0x20bb20, 0, 64 * 1024, 1024, SECT_4K) },
 
        /* PMC */