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

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


Updated the sector_size as 64 * 1024 as these sectors are 64KB.

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

diff --git a/drivers/mtd/spi/spi_flash_probe.c b/drivers/mtd/spi/spi_flash_probe.c
index 8536c08..d129162 100644
--- a/drivers/mtd/spi/spi_flash_probe.c
+++ b/drivers/mtd/spi/spi_flash_probe.c
@@ -35,18 +35,18 @@ static const struct {
 	u32 nr_sectors;
 } spi_flash_ids[] = {
 	/* STMICRO */
-	{"N25Q32",		0x20ba16, 0x0,    256 * 256,    64},
-	{"N25Q32A",		0x20bb16, 0x0,    256 * 256,    64},
-	{"N25Q64",		0x20ba17, 0x0,    256 * 256,    128},
-	{"N25Q64A",		0x20bb17, 0x0,    256 * 256,    128},
-	{"N25Q128",		0x20ba18, 0x0,    256 * 256,    256},
-	{"N25Q128A",		0x20bb18, 0x0,    256 * 256,    256},
-	{"N25Q256",		0x20ba19, 0x0,    256 * 256,    512},
-	{"N25Q256A",		0x20bb19, 0x0,    256 * 256,    512},
-	{"N25Q512",		0x20ba20, 0x0,    256 * 256,    1024},
-	{"N25Q512A",		0x20bb20, 0x0,    256 * 256,    1024},
-	{"N25Q1024",		0x20ba21, 0x0,    256 * 256,    2048},
-	{"N25Q1024A",		0x20bb21, 0x0,    256 * 256,    2048},
+	{"N25Q32",		0x20ba16, 0x0,    64 * 1024,    64},
+	{"N25Q32A",		0x20bb16, 0x0,    64 * 1024,    64},
+	{"N25Q64",		0x20ba17, 0x0,    64 * 1024,    128},
+	{"N25Q64A",		0x20bb17, 0x0,    64 * 1024,    128},
+	{"N25Q128",		0x20ba18, 0x0,    64 * 1024,    256},
+	{"N25Q128A",		0x20bb18, 0x0,    64 * 1024,    256},
+	{"N25Q256",		0x20ba19, 0x0,    64 * 1024,    512},
+	{"N25Q256A",		0x20bb19, 0x0,    64 * 1024,    512},
+	{"N25Q512",		0x20ba20, 0x0,    64 * 1024,    1024},
+	{"N25Q512A",		0x20bb20, 0x0,    64 * 1024,    1024},
+	{"N25Q1024",		0x20ba21, 0x0,    64 * 1024,    2048},
+	{"N25Q1024A",		0x20bb21, 0x0,    64 * 1024,    2048},
 	/*
 	 * TODO:
 	 * ATMEL
-- 
1.8.3




More information about the U-Boot mailing list