mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-17 15:27:00 +00:00
mtd: nand: mxs_nand: report correct ECC parameters
Report correct ECC parameters back to the stack. Do not report bytes as we have it not immeaditly available and the Linux version also does not report it. It seems to have no aversive effect. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
This commit is contained in:
parent
28897e8d21
commit
5c69dd0730
1 changed files with 2 additions and 3 deletions
|
@ -1253,9 +1253,8 @@ void board_nand_init(void)
|
|||
|
||||
nand->ecc.layout = &fake_ecc_layout;
|
||||
nand->ecc.mode = NAND_ECC_HW;
|
||||
nand->ecc.bytes = 9;
|
||||
nand->ecc.size = 512;
|
||||
nand->ecc.strength = 8;
|
||||
nand->ecc.size = nand_info->bch_geometry.ecc_chunk_size;
|
||||
nand->ecc.strength = nand_info->bch_geometry.ecc_strength;
|
||||
|
||||
/* second phase scan */
|
||||
err = nand_scan_tail(mtd);
|
||||
|
|
Loading…
Add table
Reference in a new issue