Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57219342 authored by Huang Shijie's avatar Huang Shijie Committed by David Woodhouse
Browse files

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: default avatarHuang Shijie <b32955@freescale.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 2dc0bdd9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3284,6 +3284,8 @@ static bool find_full_id_nand(struct mtd_info *mtd, struct nand_chip *chip,
		chip->cellinfo = id_data[2];
		chip->chipsize = (uint64_t)type->chipsize << 20;
		chip->options |= type->options;
		chip->ecc_strength_ds = NAND_ECC_STRENGTH(type);
		chip->ecc_step_ds = NAND_ECC_STEP(type);

		*busw = type->options & NAND_BUSWIDTH_16;