From patchwork Fri Jul 27 08:21:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linu Cherian X-Patchwork-Id: 173601 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 89E2F2C0093 for ; Fri, 27 Jul 2012 19:15:12 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CD3FF280AE; Fri, 27 Jul 2012 11:15:08 +0200 (CEST) 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 68YIJ1F+NlYa; Fri, 27 Jul 2012 11:15:08 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 79E24280B6; Fri, 27 Jul 2012 11:14:52 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D609728096 for ; Fri, 27 Jul 2012 10:22:16 +0200 (CEST) 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 lgmqMHeX6XkB for ; Fri, 27 Jul 2012 10:22:16 +0200 (CEST) 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-yw0-f44.google.com (mail-yw0-f44.google.com [209.85.213.44]) by theia.denx.de (Postfix) with ESMTPS id 0E82428095 for ; Fri, 27 Jul 2012 10:22:14 +0200 (CEST) Received: by yhq56 with SMTP id 56so2862997yhq.3 for ; Fri, 27 Jul 2012 01:22:13 -0700 (PDT) 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; bh=rXRXzzKNCOaJ9NyIc8lPZ6xS9j/qDCHRMFGHXUDSGG8=; b=m+pPzUVI9TAjUL+3+PedYFg3kwFdaYWdvirIwL/YLDw+jzryI/vH0W+BvMhCVL2NLI 4f6mrt879Nki4tvLDMfItxCx8bSW5bRmn7wUVnP2loa/NPwVLAIbKl01lonWop5ikiX0 a8izdCzRDQRf8PcLsBz1yiLEHd7Sip9dAzo4iSMm7t0hOuK2lnaPCinUPwp9qSv5alGZ RvfIWLqsN8exwAai5vhmL4ynGv8HdE6WEHERAvNR2OcP/Spei0XVyBJRtsDixsPw3prh 5CuBWKRxwcU40Y+g7t2TkX1HHlSsP0596XqfP2CgjT8rFUTicVL1t6P6P1fMoCAkI33S 5QDQ== Received: by 10.66.79.8 with SMTP id f8mr3637169pax.81.1343377332486; Fri, 27 Jul 2012 01:22:12 -0700 (PDT) Received: from localhost.localdomain ([122.174.108.53]) by mx.google.com with ESMTPS id px1sm1464637pbb.49.2012.07.27.01.22.09 (version=SSLv3 cipher=OTHER); Fri, 27 Jul 2012 01:22:11 -0700 (PDT) From: Linu Cherian To: u-boot@lists.denx.de Date: Fri, 27 Jul 2012 13:51:53 +0530 Message-Id: <1343377313-30301-1-git-send-email-linucherian@gmail.com> X-Mailer: git-send-email 1.7.9.5 X-Mailman-Approved-At: Fri, 27 Jul 2012 11:14:50 +0200 Cc: trini@ti.com Subject: [U-Boot] [PATCH] hawkboard: Fix SPL Nand driver misconfiguration 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: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Hawkboard was using the wrong nand_read_page version for SPL image. As a side effect, the u-boot image loaded by the SPL from nand was getting corrupted. Enable CONFIG_SYS_NAND_HW_ECC_OOBFIRST to select the correct nand_read_page algorithm for SPL. Signed-off-by: Linu Cherian Acked-by: Sughosh Ganu Acked-by: Tom Rini --- include/configs/hawkboard.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/configs/hawkboard.h b/include/configs/hawkboard.h index c6e8859..c6e9ce5 100644 --- a/include/configs/hawkboard.h +++ b/include/configs/hawkboard.h @@ -123,6 +123,7 @@ #define CONFIG_SYS_NAND_USE_FLASH_BBT #define CONFIG_NAND_DAVINCI #define CONFIG_SYS_NAND_4BIT_HW_ECC_OOBFIRST +#define CONFIG_SYS_NAND_HW_ECC_OOBFIRST /* SPL nand driver configuration */ #define CFG_DAVINCI_STD_NAND_LAYOUT #define CONFIG_SYS_NAND_CS 3 #define CONFIG_SYS_NAND_PAGE_2K