[U-Boot] spi_flash/stmicro: add geometrical info for N25Q256 from Micron

Submitted by Jérôme Carretero on April 8, 2012, 8:55 p.m.

Details

Message ID 20120408165555.2d396ca0@Bidule
State Accepted
Delegated to: Mike Frysinger
Headers show

Commit Message

Jérôme Carretero April 8, 2012, 8:55 p.m.
Note: because 4-byte addressing is not supported yet,
at the moment only the first 16MiB of the device are available.

Signed-off-by: Jérôme Carretero <cJ@zougloub.eu>
CC: Mike Frysinger <vapier@gentoo.org>
---
 drivers/mtd/spi/stmicro.c |    7 +++++++
 1 file changed, 7 insertions(+)

Patch hide | download patch | download mbox

diff --git a/drivers/mtd/spi/stmicro.c b/drivers/mtd/spi/stmicro.c
index a9b33cf..1a8c334 100644
--- a/drivers/mtd/spi/stmicro.c
+++ b/drivers/mtd/spi/stmicro.c
@@ -111,6 +111,13 @@  static const struct stmicro_spi_flash_params stmicro_spi_flash_table[] = {
 		.nr_sectors = 64,
 		.name = "M25P128",
 	},
+	{
+		.idcode1 = 0x19,
+		.page_size = 256,
+		.pages_per_sector = 256,
+		.nr_sectors = 512,
+		.name = "N25Q256",
+	},
 };
 
 static int stmicro_erase(struct spi_flash *flash, u32 offset, size_t len)