From patchwork Tue Jun 11 14:51:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 528 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 8A2A13F08A for ; Tue, 11 Jun 2019 16:56:57 +0200 (CEST) Received: by mail-pl1-f200.google.com with SMTP id r7sf7904463plo.6 for ; Tue, 11 Jun 2019 07:56:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1560265016; cv=pass; d=google.com; s=arc-20160816; b=w9pyY1PrznhleZKZZ4yORYXCvE5125q/XG2hKMIjb/bbqIgMMGCQwJxFa5TTMWk1zS /Ox79jZwotHx0y5l836+4rybur5jniLoNG3DHNQB0NXS9lk9wT+Ucbn1sVVV61B/+K5Y 545yPFli5gmjLNd37/FrDj2zsUVU5DPm5jBM/mv3a2g2v3CZq0kOHOtJsGYdrOhHFUn4 LFJYEyLPvupe/pEN5/TEd8KxosNNDCb4If2ORN0ENSezfDnXlDXzmGbPKX2GqSaBYMW3 z9RJdFIOvLTrw9pgAlyMaD7HQ5Ams5ETEgEdUUgNbpGM0JbdoE/1ImxmzZYdWCIiECKQ REiQ== 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=pOaQVbmt8DMGo3qJexdgs/ydqhPMje+EX25iEiHYyCE=; b=Be0GWdAW32/fvyRBdON5dChqg/wFdQZ0D10qEJRl7U70DCMGrD8mSme868nINk9nQG IpN4v47PFq6emS37QSIX3/ycM8UNt81+pMMBsaqNhHdnRlgGaEZbx3njKZitUumFt5nP I3yhfTTuptnY72NzNW0F/WuiU4uJ+ZmbUkPoCR8wLFn4j5EFIqdHevRq8SRC0EPnNsN1 Nd7d0Weq1zKySUNXV3RcfqunMm696lE7hN5Ha1d0LIiASsA2LiW4qPD5pwDL+m2uQhmW 4beDB4KlbxCs59oe3y86xlikb6/e8zRy8gvn/XNRjLmXhFb5FbinSHPqFNjZR1GpqpNI /25w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="rE/6Nro0"; 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=pOaQVbmt8DMGo3qJexdgs/ydqhPMje+EX25iEiHYyCE=; b=ATYhDEDCYbjxZIKUEesQFEpSqMV6o5OAyup5TsVZlV7G8TQZlgLG/FJnhccIQhMwCE RgFwlktlVxSLxpZQ0TQLhq91OKPtSf8ynvKSErXF6cU8A0P8yR2lLUfkGz7y7AfFqcXh QK/qGDd33PZu/ctRJoqRoWYQlMw648HJXrvqY= 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=pOaQVbmt8DMGo3qJexdgs/ydqhPMje+EX25iEiHYyCE=; b=UlAsmfyY/myfBz4xUm7+QEKcOx2M59QOUb9b/cMxbeD9jnRpk5pPLCvuNxU12wpMoq RQ6ESoUSpxyw7brgqkmC220cXUm0/3l/tFCFa1cu+aMBUxq8gjIFNIT96Zd7/yS/LzT4 FAXeaMGp/QOijtWM6Oq0dyzUrMbAQAokotDCH1p2ZuejL9mrekmX47PnEItw0AAoFhw6 wf050gS57gTjTwiEO9cAT/u1doTsqf4SKAvWkNxXn33KKI6eZlby0eqUFVyQkqy60Kz9 tdr6shVc7wlCz2vr0Of3zAkuZ0mh5uUr/DOrYHdnmJF92LwukBXqnQEMFxOqB3sHIun/ ihUA== X-Gm-Message-State: APjAAAVwjby7mdw9qBpYmr4YSreLR1idlxEc8K167QilOTGivM7oeSYm SxGjUMrKAlqzdJSLMYaCsV7lL5cX X-Google-Smtp-Source: APXvYqx1PZmpBr0vH+soU1TOhzv1ILvMzpY/jBFEcXEdFOtxtob8E8w4K1EdFjpGLlqXSo/USfLkrQ== X-Received: by 2002:a17:90a:fa12:: with SMTP id cm18mr27214043pjb.137.1560265016392; Tue, 11 Jun 2019 07:56:56 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:e509:: with SMTP id n9ls4505929pff.2.gmail; Tue, 11 Jun 2019 07:56:56 -0700 (PDT) X-Received: by 2002:a63:3141:: with SMTP id x62mr21031128pgx.282.1560265015989; Tue, 11 Jun 2019 07:56:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560265015; cv=none; d=google.com; s=arc-20160816; b=otpnc7nlI3PdyBDEQBRamJqPi8/QmgWyorCBf/YfuOdX7jcriQtSdzy9Mb9uFsL7Cn tqfUPUl4BFOpp//BixvRTDDL3hJiv6tzTgjgcs1fZXeSFCrj5dwkWwVQH9d0WVsy49MS CCsiQ58XurNZqeHPkcMs+pU8f5XZAqodg6df7x+0yyisyLlXC/f9ceOM4yuoIEYNOfxz 2oj7cTZrpu8ugA5zZImKwdQJpaxwGbmMdzu77uixvmlSAM6nbne38I+4CtjDTC/Wskn4 OqYFixecYBDh9aehchQ47Rt6x8/5XtKmtHyE4uLBDAQU3R+QIrY/Br14r8e49ipn0Kca bSDQ== 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=epVZ5TNHwS2kL7R8kp8MIF+ns/FTazpsB8dfhp1jT1M=; b=xcdICIT88aTE0s1L2Qg9ggM3jaDsqHEz7eSvQuKq8/l0gM24l3wGFuBTN+J2A+W7y6 78az4p+q4o408R1iuKqK0UBEfziTw8UPwPM0jxxgWbDl+PaWCIobvlXDII6BMiMJe09C 1FNSy+NQ8rYQp2anzbA9eIhrkPWyBo9GiiUWgdvDcg9+0zlbZvywpHwchrPxN1O9pBMP c8Tnt7r1nHdYAvSo2Wqdw1muvQwCc95a7SI1SB7Bs1B8AsObOMpC7hJa+qsFYXEgwNzN HYKmytP5yUDAzaCmz6JWLhFvBlvPFlbx0xqwom0Wz29WgEsVxKdkSlRBuAQPYOEmlSpI Wzsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="rE/6Nro0"; 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 a21sor11999941pgh.0.2019.06.11.07.56.55 for (Google Transport Security); Tue, 11 Jun 2019 07:56:55 -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:a63:f54c:: with SMTP id e12mr20767978pgk.62.1560265015609; Tue, 11 Jun 2019 07:56:55 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.18]) by smtp.gmail.com with ESMTPSA id e9sm16206208pfn.154.2019.06.11.07.56.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Jun 2019 07:56:55 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , YouMin Chen , u-boot@lists.denx.de Cc: gajjar04akash@gmail.com, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 77/92] ram: rk3399: Update lpddr4 vref_mode_ac Date: Tue, 11 Jun 2019 20:21:20 +0530 Message-Id: <20190611145135.21399-78-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190611145135.21399-1-jagan@amarulasolutions.com> References: <20190611145135.21399-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="rE/6Nro0"; 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 --- 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 618327983a..89348cf296 100644 --- a/drivers/ram/rockchip/sdram_rk3399.c +++ b/drivers/ram/rockchip/sdram_rk3399.c @@ -369,7 +369,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 (sdram_params->base.dramtype == LPDDR3) { if (sdram_params->base.odt == 1) { vref_mode_dq = 0x5; /* LPDDR3 ODT */