[U-Boot] [PATCH 12/12] sf: probe: Update sector_size for S25FL* parts

Jagannadha Sutradharudu Teki jagannadha.sutradharudu-teki at xilinx.com
Sun Aug 4 23:20:35 CEST 2013


Updated/Corrected the sector_size as per the datasheets.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna at xilinx.com>
---
 drivers/mtd/spi/spi_flash_probe.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/drivers/mtd/spi/spi_flash_probe.c b/drivers/mtd/spi/spi_flash_probe.c
index 054c166..f265e04 100644
--- a/drivers/mtd/spi/spi_flash_probe.c
+++ b/drivers/mtd/spi/spi_flash_probe.c
@@ -52,17 +52,17 @@ static const struct {
 	{"EN25Q128B",		0x1c3018, 0x0,    64 * 1024,	256},
 
 	/* SPANSION */
-	{"S25FL008A",		0x010213, 0x0,	  256 * 256,	16},
-	{"S25FL016A",		0x010214, 0x0,	  256 * 256,	32},
-	{"S25FL032A",		0x010215, 0x0,	  256 * 256,	64},
-	{"S25FL064A",		0x010216, 0x0,	  256 * 256,	128},
-	{"S25FL128P_64K",	0x012018, 0x0301, 256 * 256,	256},
+	{"S25FL008A",		0x010213, 0x0,	  64 * 1024,	16},
+	{"S25FL016A",		0x010214, 0x0,	  64 * 1024,	32},
+	{"S25FL032A",		0x010215, 0x0,	  64 * 1024,	64},
+	{"S25FL064A",		0x010216, 0x0,	  64 * 1024,	128},
 	{"S25FL128P_256K",	0x012018, 0x0300, 256 * 1024,	64},
-	{"S25FL032P",		0x010215, 0x4d00, 256 * 256,	64},
-	{"S25FL064P",		0x010216, 0x4d00, 256 * 256,	128},
-	{"S25FL128S_64K",	0x012018, 0x4d01, 256 * 256,	256},
-	{"S25FL256S_64K",	0x010219, 0x4d01, 256 * 256,	512},
-	{"S25FL512S_64K",	0x010220, 0x4d01, 256 * 256,	1024},
+	{"S25FL128P_64K",	0x012018, 0x0301, 64 * 1024,	256},
+	{"S25FL032P",		0x010215, 0x4d00, 64 * 1024,	64},
+	{"S25FL064P",		0x010216, 0x4d00, 64 * 1024,	128},
+	{"S25FL128S_64K",	0x012018, 0x4d01, 64 * 1024,	256},
+	{"S25FL256S_64K",	0x010219, 0x4d01, 64 * 1024,	512},
+	{"S25FL512S_64K",	0x010220, 0x4d01, 64 * 1024,	1024},
 
 	/* STMICRO */
 	{"M25P10",		0x202011, 0x0,    32 * 1024,    4},
-- 
1.8.3




More information about the U-Boot mailing list