Patchwork mtd: nand: add SanDisk manufacturer ID

login
register
mail settings
Submitter Huang Shijie
Date Dec. 26, 2013, 7:37 a.m.
Message ID <1388043465-17441-1-git-send-email-b32955@freescale.com>
Download mbox | patch
Permalink /patch/305216/
State Accepted
Commit 3f97c6ff6de8a657e4d4d826e502698004cfc2ae
Headers show

Comments

Huang Shijie - Dec. 26, 2013, 7:37 a.m.
Add the manufactor ID for SanDisk.
Make preparation for SanDisk SDTNRGAMA-008G.

Signed-off-by: Huang Shijie <b32955@freescale.com>
---
 drivers/mtd/nand/nand_ids.c |    1 +
 include/linux/mtd/nand.h    |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
Brian Norris - Jan. 20, 2014, 7:32 p.m.
On Thu, Dec 26, 2013 at 03:37:45PM +0800, Huang Shijie wrote:
> Add the manufactor ID for SanDisk.
> Make preparation for SanDisk SDTNRGAMA-008G.
> 
> Signed-off-by: Huang Shijie <b32955@freescale.com>

Pushed to l2-mtd.git. Thanks!

Brian

Patch

diff --git a/drivers/mtd/nand/nand_ids.c b/drivers/mtd/nand/nand_ids.c
index a87b0a3..136a463 100644
--- a/drivers/mtd/nand/nand_ids.c
+++ b/drivers/mtd/nand/nand_ids.c
@@ -169,6 +169,7 @@  struct nand_manufacturers nand_manuf_ids[] = {
 	{NAND_MFR_AMD, "AMD/Spansion"},
 	{NAND_MFR_MACRONIX, "Macronix"},
 	{NAND_MFR_EON, "Eon"},
+	{NAND_MFR_SANDISK, "SanDisk"},
 	{0x0, "Unknown"}
 };
 
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index f3ea8da..c13fbf3 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -600,6 +600,7 @@  struct nand_chip {
 #define NAND_MFR_AMD		0x01
 #define NAND_MFR_MACRONIX	0xc2
 #define NAND_MFR_EON		0x92
+#define NAND_MFR_SANDISK	0x45
 
 /* The maximum expected count of bytes in the NAND ID sequence */
 #define NAND_MAX_ID_LEN 8