From patchwork Fri Nov 23 15:14:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_Bie=C3=9Fmann?= X-Patchwork-Id: 201343 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 513A82C008D for ; Sat, 24 Nov 2012 02:15:50 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0276F4A020; Fri, 23 Nov 2012 16:15:33 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SxvLW-BiGwba; Fri, 23 Nov 2012 16:15:32 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 10CE94A04A; Fri, 23 Nov 2012 16:15:19 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D611F4A049 for ; Fri, 23 Nov 2012 16:15:14 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7hU5CrdBYCm6 for ; Fri, 23 Nov 2012 16:15:10 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-bk0-f44.google.com (mail-bk0-f44.google.com [209.85.214.44]) by theia.denx.de (Postfix) with ESMTPS id E20344A029 for ; Fri, 23 Nov 2012 16:15:04 +0100 (CET) Received: by mail-bk0-f44.google.com with SMTP id w11so4233684bku.3 for ; Fri, 23 Nov 2012 07:15:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=nrJE0tUdQwSZO46RrEcifmDEOfwHBT1wa3WLcyzWl94=; b=ReFJ7tNP3l8IeYivFESKzyyAz55+BelErWuSpBPIG2xqDnvZ/AEhYG7Ckk/TcZr9Z1 iAHC0pljoXTzvZ3JctnslAXhLM4nF/nQ09v9aCq+7POY5SqouuNQMk1ydn/KlImqNCvv i624mKq7PGdUinHc3z9lDIVvjIbHBOZAkoT6L8dMLMDA5SkDAb/Mi0ncaL0ggMp9sXam wzvhDIRVzAD0vh5R/xg2dg1GAUEjYKIjr7soS8uw80vq/bwBqAwqn3pYz5Xnt2db4Yq8 cT054HhbSwzqbZED2+76b6kp/DPnVbMLoyqTWBzPx+4AZACUY87lDySVqNJTbXD0xKwv FuYg== Received: by 10.204.148.19 with SMTP id n19mr1315213bkv.131.1353683704655; Fri, 23 Nov 2012 07:15:04 -0800 (PST) Received: from localhost ([2a01:198:47b:1:210:75ff:fe1a:cd1e]) by mx.google.com with ESMTPS id hm8sm1851193bkc.10.2012.11.23.07.15.03 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 23 Nov 2012 07:15:03 -0800 (PST) From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= To: u-boot@lists.denx.de Date: Fri, 23 Nov 2012 16:14:17 +0100 Message-Id: <1353683657-23496-5-git-send-email-andreas.devel@googlemail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1353683657-23496-1-git-send-email-andreas.devel@googlemail.com> References: <1353683657-23496-1-git-send-email-andreas.devel@googlemail.com> MIME-Version: 1.0 Cc: Tom Rini , Ilya Yanok , Scott Wood , Thomas Weber Subject: [U-Boot] [RFC/PATCH 4/4] tricorder: enable hw assisted BCH8 in SPL and u-boot X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de 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