|
@@ -1442,6 +1442,7 @@ static int gpmi_pre_bbt_scan(struct gpmi_nand_data *this)
|
|
|
/* Adjust the ECC strength according to the chip. */
|
|
|
this->nand.ecc.strength = this->bch_geometry.ecc_strength;
|
|
|
this->mtd.ecc_strength = this->bch_geometry.ecc_strength;
|
|
|
+ this->mtd.bitflip_threshold = this->bch_geometry.ecc_strength;
|
|
|
|
|
|
/* NAND boot init, depends on the gpmi_set_geometry(). */
|
|
|
return nand_boot_init(this);
|