diff options
author | Huang Shijie <b32955@freescale.com> | 2013-05-16 23:17:33 -0400 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2014-04-16 09:06:07 -0400 |
commit | 2dbcc7ce53b96df8b3ca3fd416b2af88e0bf0f56 (patch) | |
tree | 50095b6f234b44a186e1859f6e2d02215295cf69 | |
parent | 8a3d25dbd6cb3e56b9b13e02644426375aab782d (diff) |
mtd: add the ecc info for some full-id nand chips
Add the ecc info for TC58NVG2S0F, TC58NVG3S0F, TC58NVG5D2 and TC58NVG6D2.
From these chips' datasheets, we know that:
The TC58NVG2S0F and TC58NVG3S0F require 4bit ECC for per 512byte.
The TC58NVG5D2 and TC58NVG6D2 require 40bits ECC for per 1024byte.
Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
-rw-r--r-- | drivers/mtd/nand/nand_ids.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/nand/nand_ids.c b/drivers/mtd/nand/nand_ids.c index 683813a46a90..a87b0a3afa35 100644 --- a/drivers/mtd/nand/nand_ids.c +++ b/drivers/mtd/nand/nand_ids.c | |||
@@ -33,16 +33,16 @@ struct nand_flash_dev nand_flash_ids[] = { | |||
33 | */ | 33 | */ |
34 | {"TC58NVG2S0F 4G 3.3V 8-bit", | 34 | {"TC58NVG2S0F 4G 3.3V 8-bit", |
35 | { .id = {0x98, 0xdc, 0x90, 0x26, 0x76, 0x15, 0x01, 0x08} }, | 35 | { .id = {0x98, 0xdc, 0x90, 0x26, 0x76, 0x15, 0x01, 0x08} }, |
36 | SZ_4K, SZ_512, SZ_256K, 0, 8, 224}, | 36 | SZ_4K, SZ_512, SZ_256K, 0, 8, 224, NAND_ECC_INFO(4, SZ_512) }, |
37 | {"TC58NVG3S0F 8G 3.3V 8-bit", | 37 | {"TC58NVG3S0F 8G 3.3V 8-bit", |
38 | { .id = {0x98, 0xd3, 0x90, 0x26, 0x76, 0x15, 0x02, 0x08} }, | 38 | { .id = {0x98, 0xd3, 0x90, 0x26, 0x76, 0x15, 0x02, 0x08} }, |
39 | SZ_4K, SZ_1K, SZ_256K, 0, 8, 232}, | 39 | SZ_4K, SZ_1K, SZ_256K, 0, 8, 232, NAND_ECC_INFO(4, SZ_512) }, |
40 | {"TC58NVG5D2 32G 3.3V 8-bit", | 40 | {"TC58NVG5D2 32G 3.3V 8-bit", |
41 | { .id = {0x98, 0xd7, 0x94, 0x32, 0x76, 0x56, 0x09, 0x00} }, | 41 | { .id = {0x98, 0xd7, 0x94, 0x32, 0x76, 0x56, 0x09, 0x00} }, |
42 | SZ_8K, SZ_4K, SZ_1M, 0, 8, 640}, | 42 | SZ_8K, SZ_4K, SZ_1M, 0, 8, 640, NAND_ECC_INFO(40, SZ_1K) }, |
43 | {"TC58NVG6D2 64G 3.3V 8-bit", | 43 | {"TC58NVG6D2 64G 3.3V 8-bit", |
44 | { .id = {0x98, 0xde, 0x94, 0x82, 0x76, 0x56, 0x04, 0x20} }, | 44 | { .id = {0x98, 0xde, 0x94, 0x82, 0x76, 0x56, 0x04, 0x20} }, |
45 | SZ_8K, SZ_8K, SZ_2M, 0, 8, 640}, | 45 | SZ_8K, SZ_8K, SZ_2M, 0, 8, 640, NAND_ECC_INFO(40, SZ_1K) }, |
46 | 46 | ||
47 | LEGACY_ID_NAND("NAND 4MiB 5V 8-bit", 0x6B, 4, SZ_8K, SP_OPTIONS), | 47 | LEGACY_ID_NAND("NAND 4MiB 5V 8-bit", 0x6B, 4, SZ_8K, SP_OPTIONS), |
48 | LEGACY_ID_NAND("NAND 4MiB 3,3V 8-bit", 0xE3, 4, SZ_8K, SP_OPTIONS), | 48 | LEGACY_ID_NAND("NAND 4MiB 3,3V 8-bit", 0xE3, 4, SZ_8K, SP_OPTIONS), |