From patchwork Fri Nov 23 15:14:15 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: 201341 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 1433B2C007A for ; Sat, 24 Nov 2012 02:15:18 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id ED0944A02F; Fri, 23 Nov 2012 16:15:12 +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 4u1gLY3vyYAg; Fri, 23 Nov 2012 16:15:12 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 189D14A041; Fri, 23 Nov 2012 16:15:06 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C207D4A04C for ; Fri, 23 Nov 2012 16:15:02 +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 lGYbRPhtW0un for ; Fri, 23 Nov 2012 16:15:01 +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 8AA924A028 for ; Fri, 23 Nov 2012 16:14:48 +0100 (CET) Received: by mail-bk0-f44.google.com with SMTP id w11so4233684bku.3 for ; Fri, 23 Nov 2012 07:14:48 -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=s7frvS8kjNxttPiirVyuGgoP1+tCBhPMv+Xn7QKVkf4=; b=K4/JAlKQTe4NZVadr6cvb57jqBAFjrAhbwvODUKM4YpyNpWKp3Tail+p3+WVLDM8nj ckzQXgSdPqdqZZC2iAYjmbHADv7wQs2Fbbk/Gkk8YUjlurF1vq/Du2Xkk8sAzs8R2I6s NpTPK7e6EFHR2Dys+FDM2R5uyYOa2par+JU3uxVHkhY3tFn+w0tvgiXuy1islXOxmHAE CtAdzgF0nYX6Fx+V46YAjVgNvR8BK9QAquTQf2mhMOUKujIb5ouo9bT6P1e8N0ly9tDi dRzGbTE9R4c6HxG+TiSDMU69mhM2KSk0rBmk0Yyfuf/k0CQG29wHFzNaUvarenroJHbU hZ8Q== Received: by 10.204.148.12 with SMTP id n12mr1295288bkv.138.1353683688191; Fri, 23 Nov 2012 07:14:48 -0800 (PST) Received: from localhost ([2a01:198:47b:1:210:75ff:fe1a:cd1e]) by mx.google.com with ESMTPS id j16sm3757473bkv.1.2012.11.23.07.14.45 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 23 Nov 2012 07:14:47 -0800 (PST) From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= To: u-boot@lists.denx.de Date: Fri, 23 Nov 2012 16:14:15 +0100 Message-Id: <1353683657-23496-3-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 , Scott Wood , Ilya Yanok Subject: [U-Boot] [RFC/PATCH 2/4] omap3/omap_gpmc.h: add ooblayout for BCH8 as in kernel 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 This patch adds BCH8 ooblayout for NAND as provided by 0e618ef0a6a33cf7ef96c2c824402088dd8ef48c in linux kernel. This Layout is currently only provided for 64 byte OOB. Signed-off-by: Andreas Bießmann Cc: Tom Rini Cc: Ilya Yanok Cc: Scott Wood --- arch/arm/include/asm/arch-omap3/omap_gpmc.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/include/asm/arch-omap3/omap_gpmc.h b/arch/arm/include/asm/arch-omap3/omap_gpmc.h index 800e4ee..3a3abdf 100644 --- a/arch/arm/include/asm/arch-omap3/omap_gpmc.h +++ b/arch/arm/include/asm/arch-omap3/omap_gpmc.h @@ -80,6 +80,18 @@ } #endif +/* use the same layout here as he kernel does (ecc bytes at oob tail) */ +#define GPMC_NAND_HW_BCH8_ECC_LAYOUT {\ + .eccbytes = 56,\ + .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},\ + .oobfree = {\ + {.offset = 2,\ + .length = 10 } } \ +} + /* GPMC CS configuration for an SMSC LAN9221 ethernet controller */ #define NET_LAN9221_GPMC_CONFIG1 0x00001000 #define NET_LAN9221_GPMC_CONFIG2 0x00060700