From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= Date: Mon, 17 Nov 2014 13:16:58 +0100 Subject: [U-Boot] =?utf-8?b?W1UtQm9vdCx2NCwxLzNdIG10ZDogYXRtZWxfbmFuZDog?= =?utf-8?q?runtime_to_build_gf_table_for_pmecc?= In-Reply-To: <1415604242-29685-2-git-send-email-voice.shen@atmel.com> from Bo Shen on Mon, 10 Nov 2014 15:24:00 +0800 References: <1415604242-29685-2-git-send-email-voice.shen@atmel.com> Message-ID: <1416226618-24853-1-git-send-email-andreas.devel@googlemail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Bo Shen, Bo Shen writes: >From: Josh Wu > >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 >Signed-off-by: Bo Shen >--- > >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