
Dear Bo Shen,
Bo Shen voice.shen@atmel.com writes:
From: Josh Wu josh.wu@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@atmel.com Signed-off-by: Bo Shen voice.shen@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