MLK-12601: mtd: gpmi: provide the option to use legacy bch geometry
authorHan Xu <han.xu@nxp.com>
Mon, 28 Mar 2016 15:35:59 +0000 (10:35 -0500)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:51:46 +0000 (14:51 -0500)
commit48869fb093687eea7d90ef993c80685e2f6a30ac
treea069e9b167800fdecf578450cfc4a3b1b81a8d5f
parent6dd2b08bd01dfafcfcb66d087d44dcf475559c1b
MLK-12601: 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.

Conflicts:
drivers/mtd/nand/gpmi-nand/gpmi-nand.h

Signed-off-by: Han Xu <han.xu@nxp.com>
(cherry picked from commit 4d28b1693905526558892d40525763e6bc4469e4)
drivers/mtd/nand/gpmi-nand/gpmi-nand.c
drivers/mtd/nand/gpmi-nand/gpmi-nand.h