Skip to contentSkip to conversation

sf: Update SST25* flash params of sector size & numbers

PATCH New Bin Meng 2 participants 2 messages Oct 23, 2014 – Oct 24, 2014 Memory technology devices (MTD)

lore
Share & tools
lore

Bin Meng

author
#0 lore raw

PATCH 5/5 sf: Update SST25* flash params of sector size & numbers

Change SST25* flash sector size to 4KiB to match SECT_4K. This makes 'sf erase offset +len' work on real 4KiB boundary instead of 64KiB.

---
 drivers/mtd/spi/sf_params.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
drivers/mtd/spi/sf_params.c +10 -10
index d5f3597..dd3baa4 100644
@@ -88,16 +88,16 @@ const struct spi_flash_params spi_flash_params_table[] = {
 	{"N25Q1024A",	   0x20bb21, 0x0,       64 * 1024,  2048, RD_FULL, WR_QPP | E_FSR | SECT_4K},
 #endif
 #ifdef CONFIG_SPI_FLASH_SST		/* SST */
-	{"SST25VF040B",	   0xbf258d, 0x0,	64 * 1024,     8, RD_SLOW,	    SECT_4K | SST_WP},
-	{"SST25VF080B",	   0xbf258e, 0x0,	64 * 1024,    16, RD_SLOW,	    SECT_4K | SST_WP},
-	{"SST25VF016B",	   0xbf2541, 0x0,	64 * 1024,    32, RD_SLOW,	    SECT_4K | SST_WP},
-	{"SST25VF032B",	   0xbf254a, 0x0,	64 * 1024,    64, RD_SLOW,	    SECT_4K | SST_WP},
-	{"SST25VF064C",	   0xbf254b, 0x0,	64 * 1024,   128, RD_EXTN,		     SECT_4K},
-	{"SST25WF512",	   0xbf2501, 0x0,	64 * 1024,     1, RD_SLOW,	    SECT_4K | SST_WP},
-	{"SST25WF010",	   0xbf2502, 0x0,	64 * 1024,     2, RD_SLOW,	    SECT_4K | SST_WP},
-	{"SST25WF020",	   0xbf2503, 0x0,	64 * 1024,     4, RD_SLOW,	    SECT_4K | SST_WP},
-	{"SST25WF040",	   0xbf2504, 0x0,	64 * 1024,     8, RD_SLOW,	    SECT_4K | SST_WP},
-	{"SST25WF080",	   0xbf2505, 0x0,	64 * 1024,    16, RD_SLOW,	    SECT_4K | SST_WP},
+	{"SST25VF040B",	   0xbf258d, 0x0,	 4 * 1024,   128, RD_SLOW,	    SECT_4K | SST_WP},
+	{"SST25VF080B",	   0xbf258e, 0x0,	 4 * 1024,   256, RD_SLOW,	    SECT_4K | SST_WP},
+	{"SST25VF016B",	   0xbf2541, 0x0,	 4 * 1024,   512, RD_SLOW,	    SECT_4K | SST_WP},
+	{"SST25VF032B",	   0xbf254a, 0x0,	 4 * 1024,  1024, RD_SLOW,	    SECT_4K | SST_WP},
+	{"SST25VF064C",	   0xbf254b, 0x0,	 4 * 1024,  2048, RD_EXTN,		     SECT_4K},
+	{"SST25WF512",	   0xbf2501, 0x0,	 4 * 1024,    16, RD_SLOW,	    SECT_4K | SST_WP},
+	{"SST25WF010",	   0xbf2502, 0x0,	 4 * 1024,    32, RD_SLOW,	    SECT_4K | SST_WP},
+	{"SST25WF020",	   0xbf2503, 0x0,	 4 * 1024,    64, RD_SLOW,	    SECT_4K | SST_WP},
+	{"SST25WF040",	   0xbf2504, 0x0,	 4 * 1024,   128, RD_SLOW,	    SECT_4K | SST_WP},
+	{"SST25WF080",	   0xbf2505, 0x0,	 4 * 1024,   256, RD_SLOW,	    SECT_4K | SST_WP},
 #endif
 #ifdef CONFIG_SPI_FLASH_WINBOND		/* WINBOND */
 	{"W25P80",	   0xef2014, 0x0,	64 * 1024,    16,	0,		           0},
Signature · 1 line
1.8.2.1
#1 lore raw

PATCH 5/5 sf: Update SST25* flash params of sector size & numbers

Quoted 7 lines · Bin Meng

Change SST25* flash sector size to 4KiB to match SECT_4K. This makes 'sf erase offset +len' work on real 4KiB boundary instead of 64KiB.

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

Tested on link