aboutsummaryrefslogtreecommitdiff
path: root/include/mxs_nand.h
diff options
context:
space:
mode:
authorHan Xu2022-03-25 08:36:38 -0500
committerTom Rini2022-03-28 08:22:17 -0400
commited48490f8d3f8715b23071a8a1cbe5bba8c8626e (patch)
treed3d5947e5c1e76e0295e1c6e854ae9b35aaeac71 /include/mxs_nand.h
parent408e2d5a224d8c62beae4cb1e7a3804abbbb123f (diff)
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 <tharvey@gateworks.com> Tested-by: Sean Nyekjaer <sean@geanix.com> Signed-off-by: Han Xu <han.xu@nxp.com> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'include/mxs_nand.h')
-rw-r--r--include/mxs_nand.h2
1 files changed, 0 insertions, 2 deletions
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;