1 From a4bc33b205fd9b1db862f1e45173dba57b0fa57f Mon Sep 17 00:00:00 2001
2 From: Ezequiel Garcia <ezequiel.garcia@imgtec.com>
3 Date: Sat, 25 Feb 2017 15:43:09 +0000
4 Subject: mtd: nand: Add JEDEC manufacturer ID for Gigadevice
6 This commit adds Gigadevice to the list of manufacturer ID and name strings.
8 (picked from http://lists.infradead.org/pipermail/linux-mtd/2014-December/056765.html)
10 Signed-off-by: Ezequiel Garcia <ezequiel.garcia@imgtec.com>
12 drivers/mtd/nand/nand_ids.c | 1 +
13 include/linux/mtd/nand.h | 1 +
14 2 files changed, 2 insertions(+)
16 diff --git a/drivers/mtd/nand/nand_ids.c b/drivers/mtd/nand/nand_ids.c
17 index 2af9869..dc80fcd 100644
18 --- a/drivers/mtd/nand/nand_ids.c
19 +++ b/drivers/mtd/nand/nand_ids.c
20 @@ -182,6 +182,7 @@ struct nand_manufacturers nand_manuf_ids[] = {
21 {NAND_MFR_SANDISK, "SanDisk"},
22 {NAND_MFR_INTEL, "Intel"},
23 {NAND_MFR_ATO, "ATO"},
24 + {NAND_MFR_GIGADEVICE, "Gigadevice"},
28 diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
29 index d8905a2..3a00df7 100644
30 --- a/include/linux/mtd/nand.h
31 +++ b/include/linux/mtd/nand.h
32 @@ -928,6 +928,7 @@ static inline void nand_set_controller_data(struct nand_chip *chip, void *priv)
33 #define NAND_MFR_SANDISK 0x45
34 #define NAND_MFR_INTEL 0x89
35 #define NAND_MFR_ATO 0x9b
36 +#define NAND_MFR_GIGADEVICE 0xc8
38 /* The maximum expected count of bytes in the NAND ID sequence */
39 #define NAND_MAX_ID_LEN 8