* [PATCH] mtd: nand: add SanDisk manufacturer ID
@ 2013-12-26 7:37 Huang Shijie
2014-01-03 5:37 ` [PATCH] mtd: nand: add support for SanDisk SDTNRGAMA-008G Huang Shijie
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Huang Shijie @ 2013-12-26 7:37 UTC (permalink / raw)
To: dwmw2; +Cc: Huang Shijie, computersforpeace, linux-mtd
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(-)
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
--
1.7.2.rc3
^ permalink raw reply related [flat|nested] 7+ messages in thread* [PATCH] mtd: nand: add support for SanDisk SDTNRGAMA-008G 2013-12-26 7:37 [PATCH] mtd: nand: add SanDisk manufacturer ID Huang Shijie @ 2014-01-03 5:37 ` Huang Shijie 2014-01-20 19:36 ` Brian Norris 2014-01-03 8:50 ` [PATCH] mtd: nand: add Intel manufacturer ID Huang Shijie 2014-01-20 19:32 ` [PATCH] mtd: nand: add SanDisk " Brian Norris 2 siblings, 1 reply; 7+ messages in thread From: Huang Shijie @ 2014-01-03 5:37 UTC (permalink / raw) To: dwmw2; +Cc: Huang Shijie, computersforpeace, linux-mtd The datasheet does not tell us how to parse out the ID data, so handle it as a full ID nand. Signed-off-by: Huang Shijie <b32955@freescale.com> --- drivers/mtd/nand/nand_ids.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/mtd/nand/nand_ids.c b/drivers/mtd/nand/nand_ids.c index 136a463..d3dbf59 100644 --- a/drivers/mtd/nand/nand_ids.c +++ b/drivers/mtd/nand/nand_ids.c @@ -43,6 +43,9 @@ struct nand_flash_dev nand_flash_ids[] = { {"TC58NVG6D2 64G 3.3V 8-bit", { .id = {0x98, 0xde, 0x94, 0x82, 0x76, 0x56, 0x04, 0x20} }, SZ_8K, SZ_8K, SZ_2M, 0, 8, 640, NAND_ECC_INFO(40, SZ_1K) }, + {"SDTNRGAMA 64G 3.3V 8-bit", + { .id = {0x45, 0xde, 0x94, 0x93, 0x76, 0x50} }, + SZ_16K, SZ_8K, SZ_4M, 0, 6, 1280, NAND_ECC_INFO(40, SZ_1K) }, LEGACY_ID_NAND("NAND 4MiB 5V 8-bit", 0x6B, 4, SZ_8K, SP_OPTIONS), LEGACY_ID_NAND("NAND 4MiB 3,3V 8-bit", 0xE3, 4, SZ_8K, SP_OPTIONS), -- 1.7.2.rc3 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] mtd: nand: add support for SanDisk SDTNRGAMA-008G 2014-01-03 5:37 ` [PATCH] mtd: nand: add support for SanDisk SDTNRGAMA-008G Huang Shijie @ 2014-01-20 19:36 ` Brian Norris 2014-01-29 0:25 ` Brian Norris 0 siblings, 1 reply; 7+ messages in thread From: Brian Norris @ 2014-01-20 19:36 UTC (permalink / raw) To: Huang Shijie; +Cc: linux-mtd, dwmw2 On Fri, Jan 03, 2014 at 01:37:03PM +0800, Huang Shijie wrote: > The datasheet does not tell us how to parse out the ID data, > so handle it as a full ID nand. > > Signed-off-by: Huang Shijie <b32955@freescale.com> > --- > drivers/mtd/nand/nand_ids.c | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/drivers/mtd/nand/nand_ids.c b/drivers/mtd/nand/nand_ids.c > index 136a463..d3dbf59 100644 > --- a/drivers/mtd/nand/nand_ids.c > +++ b/drivers/mtd/nand/nand_ids.c > @@ -43,6 +43,9 @@ struct nand_flash_dev nand_flash_ids[] = { > {"TC58NVG6D2 64G 3.3V 8-bit", > { .id = {0x98, 0xde, 0x94, 0x82, 0x76, 0x56, 0x04, 0x20} }, > SZ_8K, SZ_8K, SZ_2M, 0, 8, 640, NAND_ECC_INFO(40, SZ_1K) }, > + {"SDTNRGAMA 64G 3.3V 8-bit", > + { .id = {0x45, 0xde, 0x94, 0x93, 0x76, 0x50} }, > + SZ_16K, SZ_8K, SZ_4M, 0, 6, 1280, NAND_ECC_INFO(40, SZ_1K) }, Looks OK, but I haven't pushed your 16KB page support (killing NAND_MAX_PAGESIZE) yet, so this will have to wait until that has settled. I'll probably either bump NAND_MAX_PAGESIZE to 16K temporarily, or I'll squeeze your patch into the 3.14 pull request. > > LEGACY_ID_NAND("NAND 4MiB 5V 8-bit", 0x6B, 4, SZ_8K, SP_OPTIONS), > LEGACY_ID_NAND("NAND 4MiB 3,3V 8-bit", 0xE3, 4, SZ_8K, SP_OPTIONS), Brian ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] mtd: nand: add support for SanDisk SDTNRGAMA-008G 2014-01-20 19:36 ` Brian Norris @ 2014-01-29 0:25 ` Brian Norris 0 siblings, 0 replies; 7+ messages in thread From: Brian Norris @ 2014-01-29 0:25 UTC (permalink / raw) To: Huang Shijie; +Cc: linux-mtd, dwmw2 On Mon, Jan 20, 2014 at 11:36:13AM -0800, Brian Norris wrote: > On Fri, Jan 03, 2014 at 01:37:03PM +0800, Huang Shijie wrote: > > The datasheet does not tell us how to parse out the ID data, > > so handle it as a full ID nand. > > > > Signed-off-by: Huang Shijie <b32955@freescale.com> > > Looks OK, but I haven't pushed your 16KB page support (killing > NAND_MAX_PAGESIZE) yet, so this will have to wait until that has > settled. I'll probably either bump NAND_MAX_PAGESIZE to 16K temporarily, > or I'll squeeze your patch into the 3.14 pull request. I queued your NAND_MAX_PAGESIZE patch series for 3.15, so I've pushed this patch to l2-mtd.git/next. Thanks! Brian ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] mtd: nand: add Intel manufacturer ID 2013-12-26 7:37 [PATCH] mtd: nand: add SanDisk manufacturer ID Huang Shijie 2014-01-03 5:37 ` [PATCH] mtd: nand: add support for SanDisk SDTNRGAMA-008G Huang Shijie @ 2014-01-03 8:50 ` Huang Shijie 2014-01-20 19:33 ` Brian Norris 2014-01-20 19:32 ` [PATCH] mtd: nand: add SanDisk " Brian Norris 2 siblings, 1 reply; 7+ messages in thread From: Huang Shijie @ 2014-01-03 8:50 UTC (permalink / raw) To: dwmw2; +Cc: Huang Shijie, computersforpeace, linux-mtd Add the Intel manufacturer Id. Tested with Intel JS29F32G08ACMD1(4096 + 224) which is ONFI 2.0 compliant nand. 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(-) diff --git a/drivers/mtd/nand/nand_ids.c b/drivers/mtd/nand/nand_ids.c index d3dbf59..3d7c89f 100644 --- a/drivers/mtd/nand/nand_ids.c +++ b/drivers/mtd/nand/nand_ids.c @@ -173,6 +173,7 @@ struct nand_manufacturers nand_manuf_ids[] = { {NAND_MFR_MACRONIX, "Macronix"}, {NAND_MFR_EON, "Eon"}, {NAND_MFR_SANDISK, "SanDisk"}, + {NAND_MFR_INTEL, "Intel"}, {0x0, "Unknown"} }; diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index 6ccc3ef..773bd93 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -675,6 +675,7 @@ struct nand_chip { #define NAND_MFR_MACRONIX 0xc2 #define NAND_MFR_EON 0x92 #define NAND_MFR_SANDISK 0x45 +#define NAND_MFR_INTEL 0x89 /* The maximum expected count of bytes in the NAND ID sequence */ #define NAND_MAX_ID_LEN 8 -- 1.7.2.rc3 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] mtd: nand: add Intel manufacturer ID 2014-01-03 8:50 ` [PATCH] mtd: nand: add Intel manufacturer ID Huang Shijie @ 2014-01-20 19:33 ` Brian Norris 0 siblings, 0 replies; 7+ messages in thread From: Brian Norris @ 2014-01-20 19:33 UTC (permalink / raw) To: Huang Shijie; +Cc: linux-mtd, dwmw2 On Fri, Jan 03, 2014 at 04:50:39PM +0800, Huang Shijie wrote: > Add the Intel manufacturer Id. > Tested with Intel JS29F32G08ACMD1(4096 + 224) which is ONFI 2.0 compliant > nand. > > Signed-off-by: Huang Shijie <b32955@freescale.com> Pushed to l2-mtd.git. Thanks! Brian ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] mtd: nand: add SanDisk manufacturer ID 2013-12-26 7:37 [PATCH] mtd: nand: add SanDisk manufacturer ID Huang Shijie 2014-01-03 5:37 ` [PATCH] mtd: nand: add support for SanDisk SDTNRGAMA-008G Huang Shijie 2014-01-03 8:50 ` [PATCH] mtd: nand: add Intel manufacturer ID Huang Shijie @ 2014-01-20 19:32 ` Brian Norris 2 siblings, 0 replies; 7+ messages in thread From: Brian Norris @ 2014-01-20 19:32 UTC (permalink / raw) To: Huang Shijie; +Cc: linux-mtd, dwmw2 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-01-29 0:26 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-12-26 7:37 [PATCH] mtd: nand: add SanDisk manufacturer ID Huang Shijie 2014-01-03 5:37 ` [PATCH] mtd: nand: add support for SanDisk SDTNRGAMA-008G Huang Shijie 2014-01-20 19:36 ` Brian Norris 2014-01-29 0:25 ` Brian Norris 2014-01-03 8:50 ` [PATCH] mtd: nand: add Intel manufacturer ID Huang Shijie 2014-01-20 19:33 ` Brian Norris 2014-01-20 19:32 ` [PATCH] mtd: nand: add SanDisk " Brian Norris
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox