public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] Micron NAND Mfg ID
@ 2005-09-30 22:20 Peter Grayson
  0 siblings, 0 replies; only message in thread
From: Peter Grayson @ 2005-09-30 22:20 UTC (permalink / raw)
  To: linux-mtd

[-- Attachment #1: Type: text/plain, Size: 192 bytes --]

This is a patch to add the Micron nand flash manufacturer id (0x2c) to
mtd. This datasheet corroborates the id:

http://download.micron.com/pdf/datasheets/flash/nand/2gb_nand_m29b.pdf

Pete



[-- Attachment #2: mtd-micronid.patch --]
[-- Type: text/x-patch, Size: 1054 bytes --]

[MTD] Adds Micron NAND id
[From: Peter Grayson <pgrayson@realmsys.com>]
diff -uNr mtd/drivers/mtd/nand/nand_ids.c mtd-micronid/drivers/mtd/nand/nand_ids.c
--- mtd/drivers/mtd/nand/nand_ids.c	2005-08-30 15:47:52.000000000 -0600
+++ mtd-micronid/drivers/mtd/nand/nand_ids.c	2005-09-30 16:14:18.105466416 -0600
@@ -125,7 +125,8 @@
 	{NAND_MFR_NATIONAL, "National"},
 	{NAND_MFR_RENESAS, "Renesas"},
 	{NAND_MFR_STMICRO, "ST Micro"},
-        {NAND_MFR_HYNIX, "Hynix"},
+	{NAND_MFR_HYNIX, "Hynix"},
+	{NAND_MFR_MICRON, "Micron"},
 	{0x0, "Unknown"}
 };
 
diff -uNr mtd/include/linux/mtd/nand.h mtd-micronid/include/linux/mtd/nand.h
--- mtd/include/linux/mtd/nand.h	2005-09-16 15:30:34.000000000 -0600
+++ mtd-micronid/include/linux/mtd/nand.h	2005-09-30 16:14:55.583768848 -0600
@@ -388,7 +388,8 @@
 #define NAND_MFR_NATIONAL	0x8f
 #define NAND_MFR_RENESAS	0x07
 #define NAND_MFR_STMICRO	0x20
-#define NAND_MFR_HYNIX          0xad
+#define NAND_MFR_HYNIX		0xad
+#define NAND_MFR_MICRON		0x2c
 
 /**
  * struct nand_flash_dev - NAND Flash Device ID Structure

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-09-30 22:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-30 22:20 [PATCH] Micron NAND Mfg ID Peter Grayson

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