提交 707d8154 编写于 作者: M Miquel Raynal 提交者: Boris Brezillon

mtd: nand: samsung: add ECC requirements for K9F4G08U0D

Samsung NAND chip K9F4G08U0D minimum ECC strength requirement is 1 bit
per 512 bytes. As the chip is not ONFI nor JEDEC and because of the lack
of these values, boards using it fail to probe the NAND controller
driver. Fix this by setting up the default values.
Signed-off-by: NMiquel Raynal <miquel.raynal@free-electrons.com>
Signed-off-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
上级 aeb93af9
...@@ -91,6 +91,12 @@ static void samsung_nand_decode_id(struct nand_chip *chip) ...@@ -91,6 +91,12 @@ static void samsung_nand_decode_id(struct nand_chip *chip)
} }
} else { } else {
nand_decode_ext_id(chip); nand_decode_ext_id(chip);
/* Datasheet values for SLC Samsung K9F4G08U0D-S[I|C]B0(T00) */
if (nand_is_slc(chip) && chip->id.data[1] == 0xDC) {
chip->ecc_step_ds = 512;
chip->ecc_strength_ds = 1;
}
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册