mtd: spi-nor: set SECT_4K for n25q064 SPI flash

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Tue Sep 1 14:59:02 PDT 2015


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=0db7fae2736d0db920905c1fb576ec7eab2660c8
Commit:     0db7fae2736d0db920905c1fb576ec7eab2660c8
Parent:     038761dfe4ce145f0f080cc08ee43f6e0ab3ae2f
Author:     Alexey Firago <alexey_firago at mentor.com>
AuthorDate: Tue Jun 30 12:53:46 2015 +0300
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Mon Jul 20 10:43:19 2015 -0700

    mtd: spi-nor: set SECT_4K for n25q064 SPI flash
    
    Micron n25q064 flash supports 4 KiB erase sectors.
    
    Signed-off-by: Alexey Firago <alexey_firago at mentor.com>
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 drivers/mtd/spi-nor/spi-nor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index d78831b..b2e8c3b 100644
--- a/drivers/mtd/spi-nor/spi-nor.c
+++ b/drivers/mtd/spi-nor/spi-nor.c
@@ -589,7 +589,7 @@ static const struct spi_device_id spi_nor_ids[] = {
 
 	/* Micron */
 	{ "n25q032",	 INFO(0x20ba16, 0, 64 * 1024,   64, SPI_NOR_QUAD_READ) },
-	{ "n25q064",     INFO(0x20ba17, 0, 64 * 1024,  128, SPI_NOR_QUAD_READ) },
+	{ "n25q064",     INFO(0x20ba17, 0, 64 * 1024,  128, SECT_4K | SPI_NOR_QUAD_READ) },
 	{ "n25q128a11",  INFO(0x20bb18, 0, 64 * 1024,  256, SPI_NOR_QUAD_READ) },
 	{ "n25q128a13",  INFO(0x20ba18, 0, 64 * 1024,  256, SPI_NOR_QUAD_READ) },
 	{ "n25q256a",    INFO(0x20ba19, 0, 64 * 1024,  512, SECT_4K | SPI_NOR_QUAD_READ) },



More information about the linux-mtd-cvs mailing list