mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
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>
This commit is contained in:
parent
f83bd23e2a
commit
9fd406de52
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue