From: Josh Wu Date: Sat, 11 Oct 2014 10:01:50 +0000 (+0800) Subject: mtd: atmel_nand: make PMECC lookup table and offset property optional X-Git-Tag: omap-for-v3.19/fixes-rc1~56^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abb1cd00e6b7434e866f1f817b4994e1c7f1f16d;p=pandora-kernel.git mtd: atmel_nand: make PMECC lookup table and offset property optional If there is no PMECC lookup table stored in ROM, or lookup table offset is not specified, PMECC driver should build it in DDR by itself. That make the PMECC driver work for some board which doesn't have PMECC lookup table in ROM. 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. For more information can refer to section 5.4 of PMECC controller application note: http://www.atmel.com/images/doc11127.pdf Signed-off-by: Josh Wu Cc: devicetree@vger.kernel.org Signed-off-by: Brian Norris --- Reading git-diff-tree failed