Skip to contentSkip to conversation

Micron NAND Mfg ID

PATCH New Peter Grayson 1 participant 1 message Sep 30, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Micron NAND Mfg ID

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

[MTD] Adds Micron NAND id
[From: Peter Grayson <[email protected]>]

drivers/mtd/nand/nand_ids.c +2 -1
diff -uNr mtd/drivers/mtd/nand/nand_ids.c mtd-micronid/drivers/mtd/nand/nand_ids.c
@@ -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"}
 };
 
include/linux/mtd/nand.h +2 -1
diff -uNr mtd/include/linux/mtd/nand.h mtd-micronid/include/linux/mtd/nand.h
@@ -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