public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH resend] [MTD] CHIPS: Support for M50FLW080A and M50FLW080B
@ 2008-06-04 17:15 Nate Case
  2008-06-04 18:42 ` Jörn Engel
  0 siblings, 1 reply; 3+ messages in thread
From: Nate Case @ 2008-06-04 17:15 UTC (permalink / raw)
  To: dwmw2; +Cc: linux-mtd

Add support for M50FLW080A and M50FLW080B revisions of LPC flash
devices.

Signed-off-by: Aaron Lindner <alindner@xes-inc.com>
Signed-off-by: Nate Case <ncase@xes-inc.com>
---
 drivers/mtd/chips/cfi_cmdset_0001.c |    4 ++++
 drivers/mtd/chips/jedec_probe.c     |   32 ++++++++++++++++++++++++++++++++
 2 files changed, 36 insertions(+), 0 deletions(-)

diff --git a/drivers/mtd/chips/cfi_cmdset_0001.c b/drivers/mtd/chips/cfi_cmdset_0001.c
index fcd1aec..8305ef5 100644
--- a/drivers/mtd/chips/cfi_cmdset_0001.c
+++ b/drivers/mtd/chips/cfi_cmdset_0001.c
@@ -50,6 +50,8 @@
 #define I82802AC	0x00ac
 #define MANUFACTURER_ST         0x0020
 #define M50LPW080       0x002F
+#define M50FLW080A	0x0080
+#define M50FLW080B	0x0081
 #define AT49BV640D	0x02de
 
 static int cfi_intelext_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *);
@@ -301,6 +303,8 @@ static struct cfi_fixup jedec_fixup_table[] = {
 	{ MANUFACTURER_INTEL, I82802AB,   fixup_use_fwh_lock, NULL, },
 	{ MANUFACTURER_INTEL, I82802AC,   fixup_use_fwh_lock, NULL, },
 	{ MANUFACTURER_ST,    M50LPW080,  fixup_use_fwh_lock, NULL, },
+	{ MANUFACTURER_ST,    M50FLW080A, fixup_use_fwh_lock, NULL, },
+	{ MANUFACTURER_ST,    M50FLW080B, fixup_use_fwh_lock, NULL, },
 	{ 0, 0, NULL, NULL }
 };
 static struct cfi_fixup fixup_table[] = {
diff --git a/drivers/mtd/chips/jedec_probe.c b/drivers/mtd/chips/jedec_probe.c
index aa07575..99f9ed2 100644
--- a/drivers/mtd/chips/jedec_probe.c
+++ b/drivers/mtd/chips/jedec_probe.c
@@ -141,6 +141,8 @@
 #define M50FW080	0x002D
 #define M50FW016	0x002E
 #define M50LPW080       0x002F
+#define M50FLW080A	0x0080
+#define M50FLW080B	0x0081
 
 /* SST */
 #define SST29EE020	0x0010
@@ -1590,6 +1592,36 @@ static const struct amd_flash_info jedec_table[] = {
 		.nr_regions	= 1,
 		.regions	= {
 			ERASEINFO(0x10000,16),
+		},
+	}, {
+		.mfr_id		= MANUFACTURER_ST,
+		.dev_id		= M50FLW080A,
+		.name		= "ST M50FLW080A",
+		.devtypes	= CFI_DEVICETYPE_X8,
+		.uaddr		= MTD_UADDR_UNNECESSARY,
+		.dev_size	= SIZE_1MiB,
+		.cmd_set	= P_ID_INTEL_EXT,
+		.nr_regions	= 4,
+		.regions	= {
+			ERASEINFO(0x1000,16),
+			ERASEINFO(0x10000,13),
+			ERASEINFO(0x1000,16),
+			ERASEINFO(0x1000,16),
+		}
+	}, {
+		.mfr_id		= MANUFACTURER_ST,
+		.dev_id		= M50FLW080B,
+		.name		= "ST M50FLW080B",
+		.devtypes	= CFI_DEVICETYPE_X8,
+		.uaddr		= MTD_UADDR_UNNECESSARY,
+		.dev_size	= SIZE_1MiB,
+		.cmd_set	= P_ID_INTEL_EXT,
+		.nr_regions	= 4,
+		.regions	= {
+			ERASEINFO(0x1000,16),
+			ERASEINFO(0x1000,16),
+			ERASEINFO(0x10000,13),
+			ERASEINFO(0x1000,16),
 		}
 	}, {
 		.mfr_id		= MANUFACTURER_TOSHIBA,
-- 
1.5.4.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH resend] [MTD] CHIPS: Support for M50FLW080A and M50FLW080B
  2008-06-04 17:15 [PATCH resend] [MTD] CHIPS: Support for M50FLW080A and M50FLW080B Nate Case
@ 2008-06-04 18:42 ` Jörn Engel
  2008-06-04 18:58   ` Nate Case
  0 siblings, 1 reply; 3+ messages in thread
From: Jörn Engel @ 2008-06-04 18:42 UTC (permalink / raw)
  To: Nate Case; +Cc: linux-mtd, dwmw2

On Wed, 4 June 2008 12:15:19 -0500, Nate Case wrote:
> 
> Add support for M50FLW080A and M50FLW080B revisions of LPC flash
> devices.

Are you subscribed to the mtd_commit list?  It was merged about an hour
ago. :)

Jörn

-- 
Mundie uses a textbook tactic of manipulation: start with some
reasonable talk, and lead the audience to an unreasonable conclusion.
-- Bruce Perens

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH resend] [MTD] CHIPS: Support for M50FLW080A and M50FLW080B
  2008-06-04 18:42 ` Jörn Engel
@ 2008-06-04 18:58   ` Nate Case
  0 siblings, 0 replies; 3+ messages in thread
From: Nate Case @ 2008-06-04 18:58 UTC (permalink / raw)
  To: Jörn Engel; +Cc: linux-mtd, dwmw2

On Wed, 2008-06-04 at 20:42 +0200, Jörn Engel wrote:
> Are you subscribed to the mtd_commit list?  It was merged about an
> hour
> ago. :)

D'oh.  Thanks for the heads up.  I guess I was just accustomed to seeing
"acked-by" or "applied" messages.

-- 
Nate Case <ncase@xes-inc.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-06-04 18:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-04 17:15 [PATCH resend] [MTD] CHIPS: Support for M50FLW080A and M50FLW080B Nate Case
2008-06-04 18:42 ` Jörn Engel
2008-06-04 18:58   ` Nate Case

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox