diff options
author | Ye Li <ye.li@nxp.com> | 2022-03-31 13:27:47 +0800 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2022-05-19 21:39:36 +0200 |
commit | 9fd406de522ef1fb5863837eee1dd9bd99cd4b07 (patch) | |
tree | 03306fbc3218bed1c39e26205231a811bfa6ff5b | |
parent | f83bd23e2a0e9861969c9d43395299a14f25ddda (diff) | |
download | u-boot-9fd406de522ef1fb5863837eee1dd9bd99cd4b07.tar.gz u-boot-9fd406de522ef1fb5863837eee1dd9bd99cd4b07.tar.bz2 u-boot-9fd406de522ef1fb5863837eee1dd9bd99cd4b07.zip |
mtd: rawnand: mxs_nand: Fix use_minimum_ecc for spl driver
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@nxp.com>
Reviewed-by: Han Xu <han.xu@nxp.com>
-rw-r--r-- | drivers/mtd/nand/raw/mxs_nand.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mtd/nand/raw/mxs_nand.c b/drivers/mtd/nand/raw/mxs_nand.c index ee5d7fde9c..0c4e5595a7 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; |