Commit 40438a1e authored by Rafał Miłecki's avatar Rafał Miłecki Committed by Boris Brezillon

CRIS v32: nand: set ECC algorithm explicitly

This is part of process deprecating NAND_ECC_SOFT_BCH (and switching to
enum nand_ecc_algo).
Signed-off-by: default avatarRafał Miłecki <zajec5@gmail.com>
Acked-by: default avatarMikael Starvik <starvik@axis.com>
Acked-by: default avatarJesper Nilsson <jesper.nilsson@axis.com>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
parent d5f304ac
...@@ -157,6 +157,7 @@ struct mtd_info *__init crisv32_nand_flash_probe(void) ...@@ -157,6 +157,7 @@ struct mtd_info *__init crisv32_nand_flash_probe(void)
/* 20 us command delay time */ /* 20 us command delay time */
this->chip_delay = 20; this->chip_delay = 20;
this->ecc.mode = NAND_ECC_SOFT; this->ecc.mode = NAND_ECC_SOFT;
this->ecc.algo = NAND_ECC_HAMMING;
/* Enable the following for a flash based bad block table */ /* Enable the following for a flash based bad block table */
/* this->bbt_options = NAND_BBT_USE_FLASH; */ /* this->bbt_options = NAND_BBT_USE_FLASH; */
......
...@@ -148,6 +148,7 @@ struct mtd_info *__init crisv32_nand_flash_probe(void) ...@@ -148,6 +148,7 @@ struct mtd_info *__init crisv32_nand_flash_probe(void)
/* 20 us command delay time */ /* 20 us command delay time */
this->chip_delay = 20; this->chip_delay = 20;
this->ecc.mode = NAND_ECC_SOFT; this->ecc.mode = NAND_ECC_SOFT;
this->ecc.algo = NAND_ECC_HAMMING;
/* Enable the following for a flash based bad block table */ /* Enable the following for a flash based bad block table */
/* this->bbt_options = NAND_BBT_USE_FLASH; */ /* this->bbt_options = NAND_BBT_USE_FLASH; */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment