[U-Boot] [PATCH v3 5/9] sf: Update Macronix flash params

Bin Meng bmeng.cn at gmail.com
Wed Dec 10 13:51:28 CET 2014


Update supported read commands for Macronix flash parts per datasheet.
Also update flash sector size to 4KiB as long as flash supports sector
erase (20h) command.

Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
---

 drivers/mtd/spi/sf_params.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/drivers/mtd/spi/sf_params.c b/drivers/mtd/spi/sf_params.c
index de5d438..77aa95b 100644
--- a/drivers/mtd/spi/sf_params.c
+++ b/drivers/mtd/spi/sf_params.c
@@ -36,16 +36,16 @@ const struct spi_flash_params spi_flash_params_table[] = {
 	{"GD25LQ32",	   0xc86016, 0x0,	 4 * 1024,  1024, RD_FULL,		    SECT_4K},
 #endif
 #ifdef CONFIG_SPI_FLASH_MACRONIX	/* MACRONIX */
-	{"MX25L2006E",	   0xc22012, 0x0,	64 * 1024,     4, RD_NORM,			  0},
-	{"MX25L4005",	   0xc22013, 0x0,	64 * 1024,     8, RD_NORM,			  0},
-	{"MX25L8005",	   0xc22014, 0x0,	64 * 1024,    16, RD_NORM,			  0},
-	{"MX25L1605D",	   0xc22015, 0x0,	64 * 1024,    32, RD_NORM,			  0},
-	{"MX25L3205D",	   0xc22016, 0x0,	64 * 1024,    64, RD_NORM,			  0},
-	{"MX25L6405D",	   0xc22017, 0x0,	64 * 1024,   128, RD_NORM,			  0},
-	{"MX25L12805",	   0xc22018, 0x0,	64 * 1024,   256, RD_FULL,		     WR_QPP},
-	{"MX25L25635F",	   0xc22019, 0x0,	64 * 1024,   512, RD_FULL,		     WR_QPP},
-	{"MX25L51235F",	   0xc2201a, 0x0,	64 * 1024,  1024, RD_FULL,		     WR_QPP},
-	{"MX25L12855E",	   0xc22618, 0x0,	64 * 1024,   256, RD_FULL,		     WR_QPP},
+	{"MX25L2006E",	   0xc22012, 0x0,	 4 * 1024,    64, RD_NORM | DUAL_OUTPUT_FAST, 			  SECT_4K},
+	{"MX25L4005",	   0xc22013, 0x0,	 4 * 1024,   128, RD_NORM, 					  SECT_4K},
+	{"MX25L8005",	   0xc22014, 0x0,	 4 * 1024,   256, RD_NORM, 					  SECT_4K},
+	{"MX25L1605D",	   0xc22015, 0x0,	 4 * 1024,   512, RD_NORM, 					  SECT_4K},
+	{"MX25L3205D",	   0xc22016, 0x0,	 4 * 1024,  1024, RD_NORM, 					  SECT_4K},
+	{"MX25L6405D",	   0xc22017, 0x0,	 4 * 1024,  2048, RD_NORM, 					  SECT_4K},
+	{"MX25L12805",	   0xc22018, 0x0,	 4 * 1024,  4096, RD_NORM, 					  SECT_4K},
+	{"MX25L25635F",	   0xc22019, 0x0,	 4 * 1024,  8192, RD_FULL, 				 WR_QPP | SECT_4K},
+	{"MX25L51235F",	   0xc2201a, 0x0,	 4 * 1024, 16384, RD_FULL, 				 WR_QPP | SECT_4K},
+	{"MX25L12855E",	   0xc22618, 0x0,	 4 * 1024,  4096, RD_NORM | DUAL_IO_FAST | QUAD_IO_FAST, WR_QPP | SECT_4K},
 #endif
 #ifdef CONFIG_SPI_FLASH_SPANSION	/* SPANSION */
 	{"S25FL008A",	   0x010213, 0x0,	64 * 1024,    16, RD_NORM,			  0},
-- 
1.8.2.1



More information about the U-Boot mailing list