From patchwork Fri Nov 23 15:14:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [U-Boot, RFC/PATCH, 4/4] tricorder: enable hw assisted BCH8 in SPL and u-boot From: =?utf-8?q?Andreas_Bie=C3=9Fmann?= X-Patchwork-Id: 201343 Message-Id: <1353683657-23496-5-git-send-email-andreas.devel@googlemail.com> To: u-boot@lists.denx.de Cc: Tom Rini , Ilya Yanok , Scott Wood , Thomas Weber Date: Fri, 23 Nov 2012 16:14:17 +0100 Signed-off-by: Andreas Bießmann Cc: Tom Rini Cc: Thomas Weber Cc: Ilya Yanok Cc: Scott Wood --- include/configs/tricorder.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/include/configs/tricorder.h b/include/configs/tricorder.h index 4e4e089..9b8fe14 100644 --- a/include/configs/tricorder.h +++ b/include/configs/tricorder.h @@ -128,6 +128,8 @@ #define CONFIG_SYS_MAX_NAND_DEVICE 1 /* Max number of NAND */ /* devices */ +#define CONFIG_NAND_OMAP_BCH8 +#define CONFIG_BCH /* commands to include */ #include @@ -354,11 +356,13 @@ #define CONFIG_SYS_NAND_OOBSIZE 64 #define CONFIG_SYS_NAND_BLOCK_SIZE (128*1024) #define CONFIG_SYS_NAND_BAD_BLOCK_POS NAND_LARGE_BADBLOCK_POS -#define CONFIG_SYS_NAND_ECCPOS {2, 3, 4, 5, 6, 7, 8, 9,\ - 10, 11, 12, 13} +#define CONFIG_SYS_NAND_ECCPOS {12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22,\ + 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36,\ + 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50,\ + 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63} #define CONFIG_SYS_NAND_ECCSIZE 512 -#define CONFIG_SYS_NAND_ECCBYTES 3 +#define CONFIG_SYS_NAND_ECCBYTES 13 #define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE