diff options
author | Ye Li <ye.li@nxp.com> | 2020-05-04 22:08:51 +0800 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2020-05-10 20:55:20 +0200 |
commit | 51cdf83eea45861f9932019db2a1b3a0a6a3af52 (patch) | |
tree | 157a08c2c63c1d366ffee03a329511bf38d1cc11 /include | |
parent | 616f03dabacb6c500e8a7ceb920cd08554c9fcae (diff) | |
download | u-boot-51cdf83eea45861f9932019db2a1b3a0a6a3af52.zip u-boot-51cdf83eea45861f9932019db2a1b3a0a6a3af52.tar.gz u-boot-51cdf83eea45861f9932019db2a1b3a0a6a3af52.tar.bz2 |
mtd: gpmi: provide the option to use legacy bch geometry
Provide an option in DT to use legacy bch geometry, which compatible
with the 3.10 kernel bch setting. To enable the feature, adding
"fsl,legacy-bch-geometry" under gpmi-nand node.
NOTICE: The feature must be enabled/disabled in both u-boot and kernel.
Signed-off-by: Han Xu <han.xu@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/mxs_nand.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mxs_nand.h b/include/mxs_nand.h index 497da77..1ac628d 100644 --- a/include/mxs_nand.h +++ b/include/mxs_nand.h @@ -43,6 +43,8 @@ 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; |