i.MX6UL also has the DEBUG1 register which can be used for bitflip
detection for erased page.
Signed-off-by: Han Xu <b45815@freescale.com>
(cherry picked from commit
8df8d10edc8909e19e60f0cc1dd65c1fe706ab67)
| BF_BCH_FLASH0LAYOUT1_DATAN_SIZE(block_size, this),
r->bch_regs + HW_BCH_FLASH0LAYOUT1);
- /* Set erase threshold to gf/2 for mx6qp and mx7 */
- if (GPMI_IS_MX6QP(this) || GPMI_IS_MX7(this))
+ /* Set erase threshold to gf/2 for mx6ul, mx6qp and mx7 */
+ if (GPMI_IS_MX6QP(this) || GPMI_IS_MX7(this) || GPMI_IS_MX6UL(this))
writel(BF_BCH_MODE_ERASE_THRESHOLD(gf_len/2),
r->bch_regs + HW_BCH_MODE);
continue;
if (*status == STATUS_ERASED) {
- if (GPMI_IS_MX6QP(this) || GPMI_IS_MX7(this))
+ if (GPMI_IS_MX6QP(this) || GPMI_IS_MX7(this) ||
+ GPMI_IS_MX6UL(this))
if (readl(bch_regs + HW_BCH_DEBUG1))
flag = 1;
continue;