commit | 03085caa724f4ae7c424d8a06662fe36b62b4250 | [log] [tgz] |
---|---|---|
author | Chris Packham <judge.packham@gmail.com> | Thu Aug 25 16:59:49 2022 +1200 |
committer | Stefan Roese <sr@denx.de> | Thu Oct 06 10:15:34 2022 +0200 |
tree | e380d3eb097e5cba70f91beca39113360e3d0c5c | |
parent | 75e1bde545ca2e98490a7a7449bd64bafa476df5 [diff] |
mtd: nand: pxa3xx: simplify ECC hardware parameters Replace the if/else chain in pxa_ecc_init() with a lookup table. This makes the code more concise and hopefully easier to follow. Remove the unused ecc_layout tables and replace it with a single dummy one (the pxa3xx driver has never used this but the mtd subsystem expects it to be provided). Tested on an Allied Telesis x530 switch with Micron MT29F2G08ABAEAWP NAND Flash. Signed-off-by: Chris Packham <judge.packham@gmail.com>