[PATCH 3/3 v2] mtd: atmel_nand: enable PMECC for 8k page nand

Raphael Poggi poggi.raph at gmail.com
Thu Jul 17 05:12:21 PDT 2014


Enable the PMECC to support 8k page.

Signed-off-by: Raphaël Poggi <poggi.raph at gmail.com>
Acked-by: Bo Shen <voice.shen at atmel.com>
---
 drivers/mtd/nand/atmel_nand.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c
index 1ce7d4d..337e225 100644
--- a/drivers/mtd/nand/atmel_nand.c
+++ b/drivers/mtd/nand/atmel_nand.c
@@ -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;
-- 
1.7.9.5




More information about the barebox mailing list