From patchwork Mon Dec 5 18:15:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 86611 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp1622978qgi; Mon, 5 Dec 2016 10:15:52 -0800 (PST) X-Received: by 10.28.158.147 with SMTP id h141mr11474685wme.59.1480961752231; Mon, 05 Dec 2016 10:15:52 -0800 (PST) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id y6si15937624wjh.73.2016.12.05.10.15.51; Mon, 05 Dec 2016 10:15:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3D0A6A75AC; Mon, 5 Dec 2016 19:15:46 +0100 (CET) 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 0-e-tLZdCL4N; Mon, 5 Dec 2016 19:15:46 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 11969B3843; Mon, 5 Dec 2016 19:15:39 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 559224B99D for ; Mon, 5 Dec 2016 19:15:30 +0100 (CET) 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 6ZsvhknP_pYb for ; Mon, 5 Dec 2016 19:15:30 +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-wj0-f178.google.com (mail-wj0-f178.google.com [209.85.210.178]) by theia.denx.de (Postfix) with ESMTPS id 2357F4B6B3 for ; Mon, 5 Dec 2016 19:15:26 +0100 (CET) Received: by mail-wj0-f178.google.com with SMTP id tk12so2798001wjb.3 for ; Mon, 05 Dec 2016 10:15:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=acpdWGai+09g/oh/nOsQVqEf1R9UZubljdPNwbWQHNs=; b=aWrzrl1zlMIz6iRutnovRWo0c07XLueuaCOnk+4/4XZDGqQu08TqsLtDirf/9v8sf2 AGulbOWzbVVAgSPpsHqwj9Mk2wDSS1Dgx9wwB/KyyxZlatHSt8LWiclr2hsFEaTLz8JS 8mqqpO5wuHQfv4mO9RFEGvIS9g0XiP9FurWIsaN1HzVZvQgk3A3NCRaF63FYVNMdddLE 9oTmuk90nG0Doja2saNuiJQkHIrlx82k5EQxGscIFAKoMtxgDldzqMOY1uVA7nc2Wmow zfaSE9xXb8solJcDHYolReCzeM7wz8EFNfNT133RChgmKbns4UnxiOYdq0b72y2Hh6gU buVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=acpdWGai+09g/oh/nOsQVqEf1R9UZubljdPNwbWQHNs=; b=ZcKu0JFQKZPY9dpJ9HV05SZqTEgWgZQU9k6AajH052AD5PZt+iL0qt4ihHgTpz3MSV PBHBmEcCj7oXBKVf72RRnMKXXWYDgGlcE1hUau0Z0WDtoVg+RV+AXPOATKiMQ8/FeP1E kml6f7kiTpMMg04TSLtyyMeePGu0ITGgSiX8swBOVPjeJDQpGVVjRZeBTAIJye85ID1D bQZOQnMmWJ8GPjRQDEQxAurt2wHFzM2j6iJQf+kAF3G3z0hRSc7oKOyoXwmz6wrzrdTo sXlL9HDYvdf/n5u0cy4kznQlIwgvIV4utbwpk19yxKIUFs7IGquGeTzQuynvvJTv2xnT up1A== X-Gm-Message-State: AKaTC01O0DDBPSAJvFur4gw4j79ZxIK3OBZNbdohvDOIS4Nr2LnZGM5b+VfYTQGriFh7fXh4 X-Received: by 10.194.146.228 with SMTP id tf4mr51362174wjb.183.1480961726196; Mon, 05 Dec 2016 10:15:26 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id n17sm21681605wjq.6.2016.12.05.10.15.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Dec 2016 10:15:25 -0800 (PST) From: Fabien Parent To: u-boot@lists.denx.de Date: Mon, 5 Dec 2016 19:15:21 +0100 Message-Id: <20161205181521.10586-3-fparent@baylibre.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20161205181521.10586-1-fparent@baylibre.com> References: <20161205181521.10586-1-fparent@baylibre.com> Cc: Tom Rini Subject: [U-Boot] [PATCH 2/2] davinci: omapl138_lcdk: fix bad NAND ECC config X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The configuration used to error correction was not in line with what linux and the ROM code is using. Fix it by using the correct configuration. Now u-boot and the SPL are able to read correctly anything written by them. Signed-off-by: Fabien Parent --- include/configs/omapl138_lcdk.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) -- 2.11.0 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot Reviewed-by: Tom Rini diff --git a/include/configs/omapl138_lcdk.h b/include/configs/omapl138_lcdk.h index 2101086d59..a1e5f4481f 100644 --- a/include/configs/omapl138_lcdk.h +++ b/include/configs/omapl138_lcdk.h @@ -173,6 +173,7 @@ #undef CONFIG_SYS_NAND_HW_ECC #define CONFIG_SYS_MAX_NAND_DEVICE 1 /* Max number of NAND devices */ #define CONFIG_SYS_NAND_HW_ECC_OOBFIRST +#define CONFIG_NAND_6BYTES_OOB_FREE_10BYTES_ECC #define CONFIG_SYS_NAND_5_ADDR_CYCLE #define CONFIG_SYS_NAND_PAGE_SIZE (2 << 10) #define CONFIG_SYS_NAND_BLOCK_SIZE (128 << 10) @@ -184,11 +185,10 @@ CONFIG_SYS_MALLOC_LEN - \ GENERATED_GBL_DATA_SIZE) #define CONFIG_SYS_NAND_ECCPOS { \ - 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 } + 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, \ + 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, \ + 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, \ + 54, 55, 56, 57, 58, 59, 60, 61, 62, 63 } #define CONFIG_SYS_NAND_PAGE_COUNT 64 #define CONFIG_SYS_NAND_BAD_BLOCK_POS 0 #define CONFIG_SYS_NAND_ECCSIZE 512