diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-07-18 15:02:58 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-07-22 16:14:08 +0200 |
commit | d15561082121015724734c9eecf7f7f25d7c95b1 (patch) | |
tree | 527053e5762c76e105d113a930ee49638f42db6f /drivers/mtd/nand/nand_s3c24xx.c | |
parent | e3885851b737f7dbe8dcd4aab823b7acab8a49a4 (diff) | |
download | barebox-d15561082121015724734c9eecf7f7f25d7c95b1.tar.gz barebox-d15561082121015724734c9eecf7f7f25d7c95b1.tar.xz |
mtd: introduce ecc strength
This introduces the ecc stength fields in the structures and fills
them in, but leaves them unused right now.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mtd/nand/nand_s3c24xx.c')
-rw-r--r-- | drivers/mtd/nand/nand_s3c24xx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/nand/nand_s3c24xx.c b/drivers/mtd/nand/nand_s3c24xx.c index a3f947a60e..44063523f9 100644 --- a/drivers/mtd/nand/nand_s3c24xx.c +++ b/drivers/mtd/nand/nand_s3c24xx.c @@ -456,6 +456,8 @@ static int s3c24x0_nand_probe(struct device_d *dev) */ chip->ecc.mode = NAND_ECC_HW; chip->ecc.bytes = 3; /* always 24 bit ECC per turn */ + chip->ecc.strength = 1; + #ifdef CONFIG_CPU_S3C2440 if (readl(host->base) & 0x8) { /* large page (2048 bytes per page) */ |