summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYe Li <[email protected]>2020-05-04 22:08:51 +0800
committerStefano Babic <[email protected]>2020-05-10 20:55:20 +0200
commit51cdf83eea45861f9932019db2a1b3a0a6a3af52 (patch)
tree157a08c2c63c1d366ffee03a329511bf38d1cc11 /include
parent616f03dabacb6c500e8a7ceb920cd08554c9fcae (diff)
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 <[email protected]> Signed-off-by: Ye Li <[email protected]> Signed-off-by: Peng Fan <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/mxs_nand.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mxs_nand.h b/include/mxs_nand.h
index 497da77a16d..1ac628d0647 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;