From: Stephan Linz Date: Thu, 2 Aug 2012 20:47:30 +0200 Subject: [U-Boot] [PATCH v2 2/2] sf: stmicro: add support N25Q128 parts In-Reply-To: <1343933250-12966-1-git-send-email-linz@li-pro.net> References: <1343933250-12966-1-git-send-email-linz@li-pro.net> Message-ID: <1343933250-12966-2-git-send-email-linz@li-pro.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- v2: rebase to master sha1:56249fe --- 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 706bb8e..600e531 100644 --- a/drivers/mtd/spi/stmicro.c +++ b/drivers/mtd/spi/stmicro.c @@ -93,6 +93,12 @@ static const struct stmicro_spi_flash_params stmicro_spi_flash_table[] = { .name = "M25P128", }, { + .id = 0xba18, + .pages_per_sector = 256, + .nr_sectors = 256, + .name = "N25Q128", + }, + { .id = 0xba19, .pages_per_sector = 256, .nr_sectors = 512, -- 1.7.0.4