From: Stephan Linz Date: Thu, 2 Aug 2012 18:47:30 +0000 (+0200) Subject: sf: stmicro: add support N25Q128 parts X-Git-Tag: v2012.10-rc1~368^2~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6ad6c6dc1ed2bc3357afb2bdd22be8bab4955837;p=oweals%2Fu-boot.git sf: stmicro: add support N25Q128 parts Adds support for Numonyx's N25Q128 SPI flash. These devices are used on (among others) Avnet Spartan-6 LX9 micro-evaluation boards. Tested with "sf" commands and CONFIG_ENV_IS_IN_SPI_FLASH. Signed-off-by: Stephan Linz Signed-off-by: Mike Frysinger --- diff --git a/drivers/mtd/spi/stmicro.c b/drivers/mtd/spi/stmicro.c index 706bb8e4bd..600e5311b9 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", }, + { + .id = 0xba18, + .pages_per_sector = 256, + .nr_sectors = 256, + .name = "N25Q128", + }, { .id = 0xba19, .pages_per_sector = 256,