[U-Boot] [PATCH v2 06/12] sf: Update EON flash params

Bin Meng bmeng.cn at gmail.com
Sat Nov 1 09:54:27 CET 2014


Explicitly list supported read commands in the flash prarmas table
for EON flash parts. 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 | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/mtd/spi/sf_params.c b/drivers/mtd/spi/sf_params.c
index 6ccb10f..805f221 100644
--- a/drivers/mtd/spi/sf_params.c
+++ b/drivers/mtd/spi/sf_params.c
@@ -26,10 +26,10 @@ const struct spi_flash_params spi_flash_params_table[] = {
 	{"AT25DF321A",     0x1f4701, 0x0,	 4 * 1024,  1024, RD_BASC,		    SECT_4K},
 #endif
 #ifdef CONFIG_SPI_FLASH_EON		/* EON */
-	{"EN25Q32B",	   0x1c3016, 0x0,	64 * 1024,    64,	0,			  0},
-	{"EN25Q64",	   0x1c3017, 0x0,	64 * 1024,   128,	0,		    SECT_4K},
-	{"EN25Q128B",	   0x1c3018, 0x0,       64 * 1024,   256,	0,			  0},
-	{"EN25S64",	   0x1c3817, 0x0,	64 * 1024,   128,	0,			  0},
+	{"EN25Q32B",	   0x1c3016, 0x0,	 4 * 1024,  1024, RD_EXTN | QUAD_IO_FAST,   SECT_4K},
+	{"EN25Q64",	   0x1c3017, 0x0,	 4 * 1024,  2048, RD_EXTN | QUAD_IO_FAST,   SECT_4K},
+	{"EN25Q128B",	   0x1c3018, 0x0,        4 * 1024,  4096, RD_EXTN | QUAD_IO_FAST,   SECT_4K},
+	{"EN25S64",	   0x1c3817, 0x0,	 4 * 1024,  2048, RD_EXTN | QUAD_IO_FAST,   SECT_4K},
 #endif
 #ifdef CONFIG_SPI_FLASH_GIGADEVICE	/* GIGADEVICE */
 	{"GD25Q64B",	   0xc84017, 0x0,	64 * 1024,   128,	0,		    SECT_4K},
-- 
1.8.2.1



More information about the U-Boot mailing list