mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[MTD] [NAND] S3C2410 Allow unset ecc to be ignored for ecc correction
If a block's ecc field is all 0xff, then ignore the ECC correction. This is for systems where some of the blocks, such as the initial cramfs are written without ECC and need to be loaded on start. Signed-off-by: Ben Dooks <[email protected]> Signed-off-by: David Woodhouse <[email protected]>
This commit is contained in:
parent
71d54f3855
commit
c45c6c6833
2 changed files with 10 additions and 0 deletions
|
|
@ -36,6 +36,8 @@ struct s3c2410_platform_nand {
|
|||
int twrph0; /* active time for nWE/nOE */
|
||||
int twrph1; /* time for release CLE/ALE from nWE/nOE inactive */
|
||||
|
||||
unsigned int ignore_unset_ecc : 1;
|
||||
|
||||
int nr_sets;
|
||||
struct s3c2410_nand_set *sets;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue