diff mbox series

[1/6] nandbcb: fix the issue cannot support gf_14 NAND boot

Message ID 20200505140404.27407-2-peng.fan@nxp.com
State New
Headers show
Series imx: nandbcb update | expand

Commit Message

Peng Fan May 5, 2020, 2:03 p.m. UTC
From: Han Xu <han.xu at nxp.com>

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 at nxp.com>
Signed-off-by: Peng Fan <peng.fan at nxp.com>
---
 arch/arm/mach-imx/cmd_nandbcb.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Stefano Babic May 11, 2020, 10:19 a.m. UTC | #1
> From: Han Xu <han.xu at nxp.com>
> 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 at nxp.com>
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/arch/arm/mach-imx/cmd_nandbcb.c b/arch/arm/mach-imx/cmd_nandbcb.c
index b3e59b1b00..103c3d6a08 100644
--- a/arch/arm/mach-imx/cmd_nandbcb.c
+++ b/arch/arm/mach-imx/cmd_nandbcb.c
@@ -154,6 +154,7 @@  static void fill_fcb(struct fcb_block *fcb, struct mtd_info *mtd,
 	fcb->ecc_level = l.ecc0;
 	fcb->ecc_size = l.datan_size;
 	fcb->ecc_type = l.eccn;
+	fcb->bchtype = l.gf_len;
 
 	/* Also hardcoded in kobs-ng */
 	if (is_mx6()) {