All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Jander <david@protonic.nl>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] MTD: Add support for S25FL032P spi nor-flash
Date: Wed, 25 Aug 2010 09:47:50 +0200	[thread overview]
Message-ID: <1282722470-8667-1-git-send-email-david@protonic.nl> (raw)
In-Reply-To: <201008241536.28384.vapier@gentoo.org>

Signed-off-by: David Jander <david@protonic.nl>
---
 drivers/mtd/spi/spansion.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

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)
-- 
1.6.3.3

  reply	other threads:[~2010-08-25  7:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-23 13:12 [U-Boot] [PATCH] MTD: Add support for S25FL032P spi nor-flash David Jander
2010-08-23 16:31 ` Mike Frysinger
2010-08-24  6:39   ` David Jander
2010-08-24 16:06     ` Mike Frysinger
2010-08-24 18:36       ` David Jander
2010-08-24 19:36         ` Mike Frysinger
2010-08-25  7:47           ` David Jander [this message]
2010-08-26  2:01             ` Mike Frysinger
2010-08-23 21:35 ` Mike Frysinger
2010-08-23 22:08   ` Mike Frysinger
2010-08-24  6:49   ` David Jander
2010-12-03  6:09 Macpaul Lin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1282722470-8667-1-git-send-email-david@protonic.nl \
    --to=david@protonic.nl \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.