From patchwork Tue Apr 12 18:35:46 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Gardiner X-Patchwork-Id: 90844 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 8B745B6F29 for ; Wed, 13 Apr 2011 04:36:00 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1C99F2811A; Tue, 12 Apr 2011 20:35:58 +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 GwQgROpQePh5; Tue, 12 Apr 2011 20:35:57 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9987F2811B; Tue, 12 Apr 2011 20:35:56 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BD8F92811B for ; Tue, 12 Apr 2011 20:35:54 +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 f6xI+fSDdPuV for ; Tue, 12 Apr 2011 20:35:53 +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 na3sys009aog102.obsmtp.com (na3sys009aog102.obsmtp.com [74.125.149.69]) by theia.denx.de (Postfix) with ESMTPS id 042F82811A for ; Tue, 12 Apr 2011 20:35:51 +0200 (CEST) Received: from mail-yx0-f176.google.com ([209.85.213.176]) (using TLSv1) by na3sys009aob102.postini.com ([74.125.148.12]) with SMTP ID DSNKTaSbhR0tkLCsh9jl1RzoA5DwSuEACIxQ@postini.com; Tue, 12 Apr 2011 11:35:53 PDT Received: by mail-yx0-f176.google.com with SMTP id 5so3502491yxd.35 for ; Tue, 12 Apr 2011 11:35:49 -0700 (PDT) Received: by 10.236.79.74 with SMTP id h50mr9132690yhe.82.1302633349091; Tue, 12 Apr 2011 11:35:49 -0700 (PDT) Received: from localhost.localdomain ([206.191.47.130]) by mx.google.com with ESMTPS id g31sm3162376yhd.26.2011.04.12.11.35.48 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 12 Apr 2011 11:35:48 -0700 (PDT) From: Ben Gardiner To: u-boot@lists.denx.de Date: Tue, 12 Apr 2011 14:35:46 -0400 Message-Id: <1302633346-29366-1-git-send-email-bengardiner@nanometrics.ca> X-Mailer: git-send-email 1.7.1 Cc: Scott Wood Subject: [U-Boot] [PATCH] da850evm: fix NAND WSTROBE and TA timings X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 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 The current NAND timings, introduced in commit a3f88293ddd13facd734769c1664d35ab4ed681f da850evm: setup the NAND flash timings , incorrectly set WSTROBE and TA to 0. A more recent inspection of the values set by the Linux kernel indicates that these should be set to 1. Set the WSTROBE and TA field of the EMIFA cycle-count timings configuration to 1 to match the values set by linux. Signed-off-by: Ben Gardiner CC: Stefano Babic CC: Sandeep Paulraj CC: Scott Wood --- board/davinci/da8xxevm/da850evm.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/board/davinci/da8xxevm/da850evm.c b/board/davinci/da8xxevm/da850evm.c index b088c9c..73eaa48 100644 --- a/board/davinci/da8xxevm/da850evm.c +++ b/board/davinci/da8xxevm/da850evm.c @@ -179,12 +179,12 @@ int board_init(void) * Linux kernel @ 25MHz EMIFA */ writel((DAVINCI_ABCR_WSETUP(0) | - DAVINCI_ABCR_WSTROBE(0) | + DAVINCI_ABCR_WSTROBE(1) | DAVINCI_ABCR_WHOLD(0) | DAVINCI_ABCR_RSETUP(0) | DAVINCI_ABCR_RSTROBE(1) | DAVINCI_ABCR_RHOLD(0) | - DAVINCI_ABCR_TA(0) | + DAVINCI_ABCR_TA(1) | DAVINCI_ABCR_ASIZE_8BIT), &davinci_emif_regs->ab2cr); /* CS3 */ #endif