9
0
Fork 0

mtd: atmel_nand: enable PMECC for 8k page nand

Enable the PMECC to support 8k page.

Signed-off-by: Raphaël Poggi <poggi.raph@gmail.com>
Acked-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Raphael Poggi 2014-07-17 14:12:21 +02:00 committed by Sascha Hauer
parent d581be7143
commit 151d21bc3d
1 changed files with 1 additions and 0 deletions

View File

@ -796,6 +796,7 @@ static int __init atmel_pmecc_nand_init_params(struct device_d *dev,
switch (mtd->writesize) {
case 2048:
case 4096:
case 8192:
host->pmecc_degree = (sector_size == 512) ?
PMECC_GF_DIMENSION_13 : PMECC_GF_DIMENSION_14;
host->pmecc_cw_len = (1 << host->pmecc_degree) - 1;