summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérôme Carretero <cJ-uboot@zougloub.eu>2012-04-08 10:55:55 +0000
committerMike Frysinger <vapier@gentoo.org>2012-04-08 10:55:55 +0000
commitb54d1f26ff216ef08307b7652647cc92124c2be1 (patch)
tree0ec833a9ca8b16a4943ffb8d3d6123a61342e18c
parent864939949eda9108fb7bc350af040500cd102954 (diff)
downloadu-boot-imx-b54d1f26ff216ef08307b7652647cc92124c2be1.zip
u-boot-imx-b54d1f26ff216ef08307b7652647cc92124c2be1.tar.gz
u-boot-imx-b54d1f26ff216ef08307b7652647cc92124c2be1.tar.bz2
sf: stmicro: add geometrical info for N25Q256 from Micron
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> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--drivers/mtd/spi/stmicro.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mtd/spi/stmicro.c b/drivers/mtd/spi/stmicro.c
index 75d6822..dbd1fc1 100644
--- a/drivers/mtd/spi/stmicro.c
+++ b/drivers/mtd/spi/stmicro.c
@@ -92,6 +92,12 @@ static const struct stmicro_spi_flash_params stmicro_spi_flash_table[] = {
.nr_sectors = 64,
.name = "M25P128",
},
+ {
+ .idcode1 = 0x19,
+ .pages_per_sector = 256,
+ .nr_sectors = 512,
+ .name = "N25Q256",
+ },
};
struct spi_flash *spi_flash_probe_stmicro(struct spi_slave *spi, u8 * idcode)