diff options
author | Josh Wu <josh.wu@atmel.com> | 2012-11-29 18:45:52 +0800 |
---|---|---|
committer | Josh Wu <josh.wu@atmel.com> | 2012-11-30 16:59:26 +0800 |
commit | 587aa30fdfb5bc27f9568b62395ff9855ae91b00 (patch) | |
tree | 9b9c97ce5d1500e468a3d2d1efa3abfd715a0cac /include/scsi.h | |
parent | 59f94a35a359800c5ef90d258583af7a1a702b63 (diff) |
MTD: at91: atmel_nand: since PMECC support different ecc
correctable bits(2, 4, 8, 12, 24), add code to choose
the ecc bits according to the ONFI parameter's minimum
required ecc_bits.
we'll check the ecc_bits (minimum required ecc correct bits) in ONFI parameter.
If ecc_bits is smaller compare with CONFIG_PMECC_CAP in config file, then use ecc_bits. otherwise use CONFIG_PMECC_CAP.
for non-ONFI support nand flash, we assume its minimum ecc_bits is 1.
Diffstat (limited to 'include/scsi.h')
0 files changed, 0 insertions, 0 deletions