[PATCH v2] mtd: rawnand: mxs_nand: Fix use_minimum_ecc for spl driver
Ye Li
ye.li at nxp.com
Thu Mar 31 07:27:47 CEST 2022
Because mxs_nand_spl driver does not support DM, to use the minimum ECC
layout, it needs to handle the CONFIG_NAND_MXS_USE_MINIMUM_ECC.
Signed-off-by: Ye Li <ye.li at nxp.com>
Reviewed-by: Han Xu <han.xu at nxp.com>
---
Changes in v2:
- Use IS_ENABLED to replace #ifdef
drivers/mtd/nand/raw/mxs_nand.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/mtd/nand/raw/mxs_nand.c b/drivers/mtd/nand/raw/mxs_nand.c
index ee5d7fd..0c4e559 100644
--- a/drivers/mtd/nand/raw/mxs_nand.c
+++ b/drivers/mtd/nand/raw/mxs_nand.c
@@ -1380,6 +1380,9 @@ int mxs_nand_init_spl(struct nand_chip *nand)
else
nand_info->max_ecc_strength_supported = 40;
+ if (IS_ENABLED(CONFIG_NAND_MXS_USE_MINIMUM_ECC))
+ nand_info->use_minimum_ecc = true;
+
err = mxs_nand_alloc_buffers(nand_info);
if (err)
return err;
--
2.7.4
More information about the U-Boot
mailing list