From patchwork Fri Jun 2 12:37:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sekhar Nori X-Patchwork-Id: 101245 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp370847qge; Fri, 2 Jun 2017 05:37:23 -0700 (PDT) X-Received: by 10.80.185.102 with SMTP id m93mr5934365ede.107.1496407043050; Fri, 02 Jun 2017 05:37:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496407043; cv=none; d=google.com; s=arc-20160816; b=DFCtAQlB2XPCBCIWSPmjVv2BSoLmVY0J+4YUGGEFpqA1RWNz5HpEGcBmap+afCZ7mE amnqJs6tvBDQt2HnhyWSz8vtH31gcXZIAGpBmMb5vIPUXdpmBtxYyuUVqWfC1ntvdib7 uz/sekxsNDJeEuYGrdZ+TQsSCADXcM99nCoF2La/AYnDWPn+rM5JWRKXRDhA7QWU8tuG NNEnqQ9ZwiLiFO7OD2DQhRnb5hGvWySHXOKWgrMUQxgTOXKwSNKm2Bcr6lh/8mSuUzYs uTXMKtc6uPnUfUYc3SCb1vA4giem9LzuVrZK/b815ZPAY57oZhodoPXGVsRnZPOixN7I aOKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:message-id:date:to:from:dkim-signature :arc-authentication-results; bh=2lBCni+MgB9LfiRbr7OoPj9oq7n/rXSf46RhTgsL++w=; b=uAgZDFezS5HAPGm4+JFLXk602SXJbVQxUnYsjWr1na97Ni65TfTpZGxT5eAOSXFXgv dKeg0yJUsPBEZ9Cw+8T1ITFSeWdrcn1g9CT+XLgm6s14zgrwYnLjhPJfUXA/CTjEJH5l 4nn6jgbEGMPBSeokCRRQwPk2AzudSqmqwBBZQwqCT1Y8Tbhw90z10hlaLNTC2DMokE5l FwtVhXxvbFi797WHe/yDYWUAlWF4HxQBtq5/9682ggBp8Ssq7MQ0+Ib4kXwvypGZpDZH mM0wqPweKw5+mUfx3YoY9hpbk3dY1LzegPtMf76HWT7AzQkuPCrqHIQUtYUhLFL/t/Tz bj5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id x23si24379905edi.152.2017.06.02.05.37.22; Fri, 02 Jun 2017 05:37:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: by lists.denx.de (Postfix, from userid 105) id 90853C21CA5; Fri, 2 Jun 2017 12:37:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 52484C21C5B; Fri, 2 Jun 2017 12:37:20 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 08453C21C5B; Fri, 2 Jun 2017 12:37:18 +0000 (UTC) Received: from lelnx194.ext.ti.com (lelnx194.ext.ti.com [198.47.27.80]) by lists.denx.de (Postfix) with ESMTPS id E984BC21C4C for ; Fri, 2 Jun 2017 12:37:17 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id v52CbFRo019673; Fri, 2 Jun 2017 07:37:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1496407035; bh=OKexz30Qr39jRb8UCf/4zFRHOvg5g/w3ArSkNn48fos=; h=From:To:CC:Subject:Date; b=NenbAjJYebyu8zPTea+WNzHRmb3zQQYvxSe0vFiuPoFhgbq90B3NaHCU3VGHXkJGA ukGJRCHilS6I+rCLDmKBwBR2SkTvFhK2EXi8LemsYsoYuJrsp0o380r33RzkxKsZds CteN2g8Zhp13a8kOr4wk3EN5MqLa1fLN4OGfAdVU= Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v52CbFi3005895; Fri, 2 Jun 2017 07:37:15 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.294.0; Fri, 2 Jun 2017 07:37:14 -0500 Received: from psplinux063.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v52CbCtW023794; Fri, 2 Jun 2017 07:37:13 -0500 From: Sekhar Nori To: Tom Rini Date: Fri, 2 Jun 2017 18:07:12 +0530 Message-ID: <20170602123712.20168-1-nsekhar@ti.com> X-Mailer: git-send-email 2.9.0 MIME-Version: 1.0 Cc: U-Boot Mailing List , Peter Howard Subject: [U-Boot] [PATCH] davinci: omapl138_lcdk: fix tXSNR DDR2 timing value X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" As per the datasheet[1] available for DDR2 part on board the OMAP-L138 LCDK, the tXSNR (exit self refresh to a non-read command) is 137.5 ns. This corresponds to a value of 20 to be written to T_XSNR register field of OMAP-L138's DDR configuration. The DDR2 is at 150 MHz. Fix this. The correct value also appears on the initialization scripts (called CCS GEL files) available on TI's wiki pages[2] [1] http://www.samsung.com/global/business/semiconductor/file/product/ds_k4t1gxx4qf_rev12-0.pdf [2] http://processors.wiki.ti.com/index.php/L138/C6748_Development_Kit_(LCDK)#CCS_XML_.26_GEL_Files Signed-off-by: Sekhar Nori Reviewed-by: Tom Rini --- include/configs/omapl138_lcdk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/omapl138_lcdk.h b/include/configs/omapl138_lcdk.h index 9db4eeb54edf..88cdf08b1979 100644 --- a/include/configs/omapl138_lcdk.h +++ b/include/configs/omapl138_lcdk.h @@ -110,7 +110,7 @@ (7 << DV_DDR_SDTMR2_RASMAX_SHIFT) | \ (2 << DV_DDR_SDTMR2_XP_SHIFT) | \ (0 << DV_DDR_SDTMR2_ODT_SHIFT) | \ - (10 << DV_DDR_SDTMR2_XSNR_SHIFT) | \ + (20 << DV_DDR_SDTMR2_XSNR_SHIFT) | \ (199 << DV_DDR_SDTMR2_XSRD_SHIFT) | \ (1 << DV_DDR_SDTMR2_RTP_SHIFT) | \ (2 << DV_DDR_SDTMR2_CKE_SHIFT))