MLK-10657: mtd: NAND: correct bitflip for erased NAND page
authorHan Xu <b45815@freescale.com>
Tue, 14 Apr 2015 15:29:15 +0000 (10:29 -0500)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:47:31 +0000 (14:47 -0500)
commite463591ec5331d45da1382eb4f15110190242b9a
treeaf279cc6179b2871fb3c814728d64100969be138
parentd35250706b1b51c4df9d25c84c2157c807e02fab
MLK-10657: mtd: NAND: correct bitflip for erased NAND page

i.MX6QP and i.MX7D BCH module integrated a new feature to detect the
bitflip number for erased NAND page. So for these two platform, set the
erase threshold to gf/2 and if bitflip detected, GPMI driver will
correct the data to all 0xFF.

Also updated the imx6qp dts file to ditinguish the GPMI module for i.MX6Q
with the one for i.MX6QP.

Signed-off-by: Han Xu <b45815@freescale.com>
(cherry picked from commit: 4302ab74a301626e7e0b9cb398a23b2e488cfa6b)
drivers/mtd/nand/gpmi-nand/bch-regs.h
drivers/mtd/nand/gpmi-nand/gpmi-lib.c
drivers/mtd/nand/gpmi-nand/gpmi-nand.c
drivers/mtd/nand/gpmi-nand/gpmi-nand.h