From: Jérôme Carretero Date: Sun, 8 Apr 2012 10:55:55 +0000 (+0000) Subject: sf: stmicro: add geometrical info for N25Q256 from Micron X-Git-Tag: v2012.10-rc1~417 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b54d1f26ff216ef08307b7652647cc92124c2be1;p=oweals%2Fu-boot.git 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 Signed-off-by: Mike Frysinger --- diff --git a/drivers/mtd/spi/stmicro.c b/drivers/mtd/spi/stmicro.c index 75d6822a7d..dbd1fc1854 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)