Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310242
b: refs/heads/master
c: 5636ce0
h: refs/heads/master
v: v3
  • Loading branch information
Marek Vasut authored and David Woodhouse committed Jun 1, 2012
1 parent a4de2ca commit dc4c2f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2e929d001e85126d9267de373d4b76014789661d
refs/heads/master: 5636ce0f070dee85c1b1203fe436a89648d25d06
5 changes: 5 additions & 0 deletions trunk/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -1424,6 +1424,10 @@ static int gpmi_pre_bbt_scan(struct gpmi_nand_data *this)
if (ret)
return ret;

/* 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;

/* NAND boot init, depends on the gpmi_set_geometry(). */
return nand_boot_init(this);
}
Expand Down Expand Up @@ -1482,6 +1486,7 @@ static int __devinit gpmi_nfc_init(struct gpmi_nand_data *this)
chip->options |= NAND_NO_SUBPAGE_WRITE;
chip->ecc.mode = NAND_ECC_HW;
chip->ecc.size = 1;
chip->ecc.strength = 8;
chip->ecc.layout = &gpmi_hw_ecclayout;

/* Allocate a temporary DMA buffer for reading ID in the nand_scan() */
Expand Down

0 comments on commit dc4c2f5

Please sign in to comment.