mtd: gpmi: provide the option to use legacy bch geometry
authorYe Li <ye.li@nxp.com>
Mon, 4 May 2020 14:08:51 +0000 (22:08 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 10 May 2020 18:55:20 +0000 (20:55 +0200)
commit51cdf83eea45861f9932019db2a1b3a0a6a3af52
tree157a08c2c63c1d366ffee03a329511bf38d1cc11
parent616f03dabacb6c500e8a7ceb920cd08554c9fcae
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>
drivers/mtd/nand/raw/mxs_nand.c
drivers/mtd/nand/raw/mxs_nand_dt.c
include/mxs_nand.h