Patchwork [U-Boot,2/2] sf: stmicro: add support N25Q128 parts

login
register
mail settings
Submitter Stephan Linz
Date July 13, 2012, 6:07 p.m.
Message ID <1342202839-6110-2-git-send-email-linz@li-pro.net>
Download mbox | patch
Permalink /patch/170942/
State Changes Requested
Delegated to: Mike Frysinger
Headers show

Comments

Stephan Linz - July 13, 2012, 6:07 p.m.
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 <linz@li-pro.net>
---
 drivers/mtd/spi/stmicro.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
Mike Frysinger - Aug. 1, 2012, 5:53 p.m.
On Friday 13 July 2012 14:07:19 Stephan Linz wrote:
> 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.

needs to be rebased onto mainline.  looks fine otherwise.
-mike
Stephan Linz - Aug. 1, 2012, 9:24 p.m.
Am Mittwoch, den 01.08.2012, 13:53 -0400 schrieb Mike Frysinger: 
> On Friday 13 July 2012 14:07:19 Stephan Linz wrote:
> > 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.
> 
> needs to be rebased onto mainline.  looks fine otherwise.
> -mike

Hi Mike,

I'll do it at weekend together with the things you commented in the
second patch ...


br,
Stephan

Patch

diff --git a/drivers/mtd/spi/stmicro.c b/drivers/mtd/spi/stmicro.c
index 4bee9ce..50b8aad 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",
 	},
+	{
+		.id = 0xba18,
+		.page_size = 256,
+		.pages_per_sector = 256,
+		.nr_sectors = 256,
+		.name = "N25Q128",
+	},
 };
 
 static int stmicro_erase(struct spi_flash *flash, u32 offset, size_t len)