Patchwork [U-Boot] MTD: Add support for S25FL032P spi nor-flash

login
register
mail settings
Submitter David Jander
Date Aug. 25, 2010, 7:47 a.m.
Message ID <1282722470-8667-1-git-send-email-david@protonic.nl>
Download mbox | patch
Permalink /patch/71827/
State Accepted
Commit ff0dc2c43358b059c25f64af740801333d4875f1
Headers show

Comments

David Jander - Aug. 25, 2010, 7:47 a.m.
Signed-off-by: David Jander <david@protonic.nl>
---
 drivers/mtd/spi/spansion.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
Mike Frysinger - Aug. 26, 2010, 2:01 a.m.
thanks, this is now in my sf branch
-mike

Patch

diff --git a/drivers/mtd/spi/spansion.c b/drivers/mtd/spi/spansion.c
index d6c1a5f..42cebf6 100644
--- a/drivers/mtd/spi/spansion.c
+++ b/drivers/mtd/spi/spansion.c
@@ -52,6 +52,7 @@ 
 #define SPSN_ID_S25FL128P	0x2018
 #define SPSN_EXT_ID_S25FL128P_256KB	0x0300
 #define SPSN_EXT_ID_S25FL128P_64KB	0x0301
+#define SPSN_EXT_ID_S25FL032P		0x4d00
 
 #define SPANSION_SR_WIP		(1 << 0)	/* Write-in-Progress */
 
@@ -124,6 +125,14 @@  static const struct spansion_spi_flash_params spansion_spi_flash_table[] = {
 		.nr_sectors = 64,
 		.name = "S25FL128P_256K",
 	},
+	{
+		.idcode1 = SPSN_ID_S25FL032A,
+		.idcode2 = SPSN_EXT_ID_S25FL032P,
+		.page_size = 256,
+		.pages_per_sector = 256,
+		.nr_sectors = 64,
+		.name = "S25FL032P",
+	},
 };
 
 static int spansion_wait_ready(struct spi_flash *flash, unsigned long timeout)