[U-Boot] [U-Boot,v4,1/3] mtd: atmel_nand: runtime to build gf table for pmecc

Andreas Bießmann andreas.devel at googlemail.com
Mon Nov 17 13:16:58 CET 2014


Dear Bo Shen,

Bo Shen <voice.shen at atmel.com> writes:
>From: Josh Wu <josh.wu at atmel.com>
>
>As in SAMA5D4 SoC, the gf table in ROM code can not be seen.
>So, when we try to use PMECC, we need to build it when do
>initialization.
>Add a macro NO_GALOIS_TABLE_IN_ROM in soc header file. If it
>is defined we will build gf table runtime.
>
>The PMECC use the BCH algorithm, so based on the build_gf_tables()
>function in lib/bch.c, we can build the Galois Field lookup table.
>
>Signed-off-by: Josh Wu <josh.wu at atmel.com>
>Signed-off-by: Bo Shen <voice.shen at atmel.com>
>---
>
>Changes in v4: None
>Changes in v2:
>  - rewrite the gf table build function by Josh.
>
> drivers/mtd/nand/atmel_nand.c     | 75 ++++++++++++++++++++++++++++++++++++++-
> drivers/mtd/nand/atmel_nand_ecc.h |  4 +++
> 2 files changed, 78 insertions(+), 1 deletion(-)

applied to u-boot-atmel/master, thanks!

Best regards,
Andreas Bießmann


More information about the U-Boot mailing list