diff options
author | Wu, Josh <Josh.wu@atmel.com> | 2013-08-23 15:09:05 +0800 |
---|---|---|
committer | Andreas Bießmann <andreas.devel@googlemail.com> | 2013-09-04 17:07:21 +0200 |
commit | 1bd3e2a823e196c6f8752be87fa2379c27df2ee1 (patch) | |
tree | 7bbcb61b336402c178f23c34a74efbf27087b86c /tools/pblimage.c | |
parent | 4eef93da262048eb1118e726b3ec5b8ebd3c6c91 (diff) | |
download | u-boot-imx-1bd3e2a823e196c6f8752be87fa2379c27df2ee1.zip u-boot-imx-1bd3e2a823e196c6f8752be87fa2379c27df2ee1.tar.gz u-boot-imx-1bd3e2a823e196c6f8752be87fa2379c27df2ee1.tar.bz2 |
mtd: atmel_nand: pmecc: fix bug fail to correct bit error in 1024-bytes sector
The PMECC use BCH algorithm to correct error. In BCH algorithm, the
primitive polynomial value is GF(2^13) for 512-bytes sector size. And it is
GF(2^14) for 1024-bytes sector size.
This patch will choose correct degree of the remainders (13 or 14) for
different sector size.
Tested in AT91SAM9X5-EK with MLC nand flash.
More detail can be refered to section 5.4.1 of:
AT91SAM ARM-based Embedded MPU Application Note
<http://www.atmel.com/Images/doc11127.pdf>
Signed-off-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'tools/pblimage.c')
0 files changed, 0 insertions, 0 deletions