aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHuang Shijie <b32955@freescale.com>2013-05-16 23:17:32 -0400
committerNitin Garg <nitin.garg@freescale.com>2014-04-16 09:06:02 -0400
commit7125cb03e835d39589374f207f0f38d522a6c359 (patch)
tree7a2e4646a8f07a5b6152b74ed1dafb94f6c2747c
parent6ed52fd5b1db112a96ed39d35a4ba79107c5d356 (diff)
mtd: parse out the ECC info for the full-id nand chips
Parse out the ECC information for the full-id nand chips. 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_base.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index c24c2bd664b9..aa6414ac1843 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -3295,6 +3295,8 @@ static bool find_full_id_nand(struct mtd_info *mtd, struct nand_chip *chip,
3295 chip->cellinfo = id_data[2]; 3295 chip->cellinfo = id_data[2];
3296 chip->chipsize = (uint64_t)type->chipsize << 20; 3296 chip->chipsize = (uint64_t)type->chipsize << 20;
3297 chip->options |= type->options; 3297 chip->options |= type->options;
3298 chip->ecc_strength_ds = NAND_ECC_STRENGTH(type);
3299 chip->ecc_step_ds = NAND_ECC_STEP(type);
3298 3300
3299 *busw = type->options & NAND_BUSWIDTH_16; 3301 *busw = type->options & NAND_BUSWIDTH_16;
3300 3302