From ed48490f8d3f8715b23071a8a1cbe5bba8c8626e Mon Sep 17 00:00:00 2001 From: Han Xu Date: Fri, 25 Mar 2022 08:36:38 -0500 Subject: mtd: gpmi: fix the bch setting backward compatible issue Previous u-boot code changed the default bch setting behavior and caused backward compatible issue. This fix choose the legacy bch geometry back again as the default option. If the minimum ecc strength that NAND chips required need to be chosen, it can be enabled by either adding DT flag "fsl,use-minimum-ecc" or CONFIG_NAND_MXS_USE_MINIMUM_ECC in configs. The unused flag "fsl,legacy-bch-geometry" get removed. Fixes: 51cdf83eea (mtd: gpmi: provide the option to use legacy bch geometry) Fixes: 616f03daba (mtd: gpmi: change the BCH layout setting for large oob NAND) Tested-by: Tim Harvey Tested-by: Sean Nyekjaer Signed-off-by: Han Xu Reviewed-by: Miquel Raynal --- include/mxs_nand.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'include') diff --git a/include/mxs_nand.h b/include/mxs_nand.h index 66c909318d1..741dc8734ea 100644 --- a/include/mxs_nand.h +++ b/include/mxs_nand.h @@ -44,8 +44,6 @@ struct mxs_nand_info { struct udevice *dev; unsigned int max_ecc_strength_supported; bool use_minimum_ecc; - /* legacy bch geometry flag */ - bool legacy_bch_geometry; int cur_chip; uint32_t cmd_queue_len; -- cgit v1.2.3