From patchwork Tue Jul 16 11:57:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 789 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 9396D3F08F for ; Tue, 16 Jul 2019 14:00:20 +0200 (CEST) Received: by mail-pl1-f199.google.com with SMTP id 71sf10080243pld.1 for ; Tue, 16 Jul 2019 05:00:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1563278419; cv=pass; d=google.com; s=arc-20160816; b=Qo1htgf6ZGGeR8BTbt2N9GBFb1njP417hXEMsAHFawZ6EeHb1r+lSNJ4NVjo0mgqX1 gxD62c8R5goNXhewFX0/qmM75gZDpBOJKX848YvBSCO4wssFB7xrtR+GCCe24OZLG6WA 8pYfuNQDNNI9eOFLsOpZ1cfvPCCmBNz4RpbPVwgGIIlTGJbUi8+z0O55UcYiwi6HZpzi 6Htvh0wOCbV3IE/dT8j1yu1DK3bPuFA59/vnaAzjr1WJWz7jAbH/Aq3HCUqDS3x9wIbL WeJpul6WkeOOgmAFhhAMlpzL5JTbxGjRPnAh5pdrxm7dpYvOJRi/TzwIMa4yNdVrk8WS C50g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=9vGDoR0MoVlP0W9z2yofwxTazeuwoZN8dFx5ydve2FA=; b=x0QXSNHFy/5XIJna6UkXT5+fCqjUme1x6a9Q+xHcoLoiBjXkuVT6hXhcttntChwMv3 xDSonRsynLA0pfjX2YbjI1bY8CYNYU7LP44WnPZeK73rREP0UL9F8fXeVBNgcbI7hq5X 3kfRw1jK1kESCsjtPWZKKMOVxhc0C9vGTohJuXqPfESgjePGwtV4U5Bm8za4xqoyJ238 lybnaPwxNiknVrFZ4JdbGASUpNeBIYUdTfOTFew2SoJS7tdYh9tA7OCKaazEm1NFZMIS PcYM57LkuyMk8x11kYlNI9w0X6mToER3Q2PZFXIK7Dw26TtNiupmR7TH6xUYnK7eSSbV QiAw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ETcPqIG5; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=9vGDoR0MoVlP0W9z2yofwxTazeuwoZN8dFx5ydve2FA=; b=Rcj9DWSesB9C1og+427cc+Vx9DC2IejJ7+a4VDHOI4c7TlFJp5RKPuTS9RKPp42I4y pRW3a1Vi7FPY6+kSR9o7ITG+2Wmj8rWJOei6Pv2Yz0CXMX0c+sXt0lRIdRZWFzensbp7 mI142fgCjVqi564FZY6nqB3oh5sGpdTtlCuL0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=9vGDoR0MoVlP0W9z2yofwxTazeuwoZN8dFx5ydve2FA=; b=ZJGkMp2qyA4gh10T1OD8gJ3KawjJA5ayTfux/T2RtcJD91UdTWJzzEj64B3QUxHpL7 sz6+ZhPc3zG1TfYR6GFnuo1Gu0wqKg2OCeslAuVu3Go8rp1vL4yaYndx/83PeXTEn/MH cnbDy59311ygx5LwOt52jeGQLEhARI+Bqj8M9LiXMpzW/zwl+RMwGMREsLTr1gNfl7Ib nKeYOSY+ZHXAQJ4fX4lswOo8Ya/4InHHnMJoohpAClEZNmMERqy9bPNFFevB83DiJC2N 4LQMpiYCFOnneJj1C4NQtSUflRJjoZaXCo+cCQaIUykJrtP+3sguIILD+6OiY6yye1n4 B0rA== X-Gm-Message-State: APjAAAVckblbcYsdFZjKLf0/H2YrIwPa3YtEICqcJ3+v3C+eHBNzA7N2 Yojzj7IyUYuCXDIC0lBnB6X4ZDhf X-Google-Smtp-Source: APXvYqzT6O8fC+q3wKnhxbYHgxGsqt/zQdNkGukuslAhbrBK1uq66b2JTRJYgPp4R94xjHUUEfzArQ== X-Received: by 2002:a17:90b:8c8:: with SMTP id ds8mr36322650pjb.89.1563278419430; Tue, 16 Jul 2019 05:00:19 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:680d:: with SMTP id h13ls3345393plk.13.gmail; Tue, 16 Jul 2019 05:00:19 -0700 (PDT) X-Received: by 2002:a17:902:70c3:: with SMTP id l3mr34167011plt.92.1563278419167; Tue, 16 Jul 2019 05:00:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563278419; cv=none; d=google.com; s=arc-20160816; b=iWfeI71pxE/9DV/A3OL1sZxLzb1hK6qbXpMQUo+pcqlr3lL9S41l06ORJZuFy18s0D fIZqSN30zFVAT+ktqJjkXCQWTMboDV0DWpWiG4il3NZXWs/8HBFAKx5cLQM1e4+/IiNf gcHqUZW1iacOsH6I3xmnAVzYGKVdc9RSPHMgbO3Af3cOIYbaG4+RabJpZHojskA6af42 avvpxu123wc1QFGkeCjKggg3E1+w4KQVw2tTkqeXFrpwxZkpuTuHzFpMkYZSQe91ie9m 7cK4HTSIUS764XSKZY3zMSkJmDMuQD7T1XxWkiTq5uBfi8e7gRH47gvir7xpkCHIPovD yKpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=SzmNE6oRJq62Qe1EaY6AldKbjHb0i1Rbf/HXA3VbVEU=; b=mp2fAMNwVVaAPC2d2UQ9BmHpR2rg43D2G/mBXSgONbX5Hm8TsBz5/2OYvunSdSCKOO /+F6cnDLU/0yxvhhIERSbqQha9MQc6UcHgmRsZLmnjfECXAEIZULvnAR4J+wvAfWZ9w1 UqdKeyD54AQpD/yM/K8lGCb0FvF8N+0N67wCUtxkrlZrEoLXJem8hREcZGgzzJt9plYB d1G2yBQgRWVVUFYoamFTjwO9VXeRb6pOdcXAh9gPl7L1eIesvPDF7qeR0pSqYCjSnKE2 La0pzTTTXnRa//FSpbF5yZZq/+Y91rULuBz2LI0HJrghxfI5J+si758ihXRJNCxx2117 macA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ETcPqIG5; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id s14sor25328106pjb.11.2019.07.16.05.00.19 for (Google Transport Security); Tue, 16 Jul 2019 05:00:19 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:90a:b00b:: with SMTP id x11mr35937142pjq.120.1563278418823; Tue, 16 Jul 2019 05:00:18 -0700 (PDT) Received: from localhost.localdomain ([49.206.201.107]) by smtp.gmail.com with ESMTPSA id z24sm36269566pfr.51.2019.07.16.05.00.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jul 2019 05:00:18 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , YouMin Chen , u-boot@lists.denx.de Cc: Manivannan Sadhasivam , gajjar04akash@gmail.com, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v3 40/57] ram: rk3399: Update lpddr4 vref_mode_ac Date: Tue, 16 Jul 2019 17:27:28 +0530 Message-Id: <20190716115745.12585-41-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190716115745.12585-1-jagan@amarulasolutions.com> References: <20190716115745.12585-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ETcPqIG5; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Update vref_mode_ac for lpddr4 based on VDDQ/3/2=16.8% Signed-off-by: Jagan Teki Signed-off-by: YouMin Chen Reviewed-by: Kever Yang --- drivers/ram/rockchip/sdram_rk3399.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c index 63763062f9..e3f1abf7e7 100644 --- a/drivers/ram/rockchip/sdram_rk3399.c +++ b/drivers/ram/rockchip/sdram_rk3399.c @@ -366,7 +366,8 @@ static int phy_io_config(const struct chan_info *chan, vref_value_dq = (rd_vref - 15300) / 521; } vref_mode_ac = 0x6; - vref_value_ac = 0x1f; + /* VDDQ/3/2=16.8% */ + vref_value_ac = 0x3; } else if (params->base.dramtype == LPDDR3) { if (params->base.odt == 1) { vref_mode_dq = 0x5; /* LPDDR3 ODT */