nandbcb: fix the issue cannot support gf_14 NAND boot
bchtype in FCB should be associated to the gf_13/14 settings in BCH, fix the issue and test on Micron 29F64G08CBABB, it can boot after the change. Signed-off-by: Han Xu <han.xu@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
@@ -154,6 +154,7 @@ static void fill_fcb(struct fcb_block *fcb, struct mtd_info *mtd,
|
|||||||
fcb->ecc_level = l.ecc0;
|
fcb->ecc_level = l.ecc0;
|
||||||
fcb->ecc_size = l.datan_size;
|
fcb->ecc_size = l.datan_size;
|
||||||
fcb->ecc_type = l.eccn;
|
fcb->ecc_type = l.eccn;
|
||||||
|
fcb->bchtype = l.gf_len;
|
||||||
|
|
||||||
/* Also hardcoded in kobs-ng */
|
/* Also hardcoded in kobs-ng */
|
||||||
if (is_mx6()) {
|
if (is_mx6()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user