[U-Boot] [PATCH] sf:stmicro: Add support for N25Q512A

Priyanka Jain Priyanka.Jain at freescale.com
Tue Jun 25 12:06:43 CEST 2013


Add support for Micron N25Q512A serial flash memory
Features: 64MB size, 1.8V, Multiple I/O, 4KB Sector erase
Memory is organised a 1024(64KB) main sectors.
Each sector is divided into 256 pages

Register set/Opcodes is similar to other N25Q family products

Signed-off-by: Priyanka Jain <Priyanka.Jain at freescale.com>
---
 drivers/mtd/spi/stmicro.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/drivers/mtd/spi/stmicro.c b/drivers/mtd/spi/stmicro.c
index 2a9972b..3ad20d3 100644
--- a/drivers/mtd/spi/stmicro.c
+++ b/drivers/mtd/spi/stmicro.c
@@ -140,6 +140,12 @@ static const struct stmicro_spi_flash_params stmicro_spi_flash_table[] = {
 		.nr_sectors = 512,
 		.name = "N25Q256A",
 	},
+	{
+		.id = 0xbb20,
+		.pages_per_sector = 256,
+		.nr_sectors = 1024,
+		.name = "N25Q512A",
+	},
 };
 
 struct spi_flash *spi_flash_probe_stmicro(struct spi_slave *spi, u8 * idcode)
-- 
1.7.4.1





More information about the U-Boot mailing list