From patchwork Mon Jun 17 07:32:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10998227 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DA67276 for ; Mon, 17 Jun 2019 07:40:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CB5882860A for ; Mon, 17 Jun 2019 07:40:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BF4F728675; Mon, 17 Jun 2019 07:40:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7B0FA2864B for ; Mon, 17 Jun 2019 07:40:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=oXPFjWKKxUo4mFoG54e7XsKti6adxxrwBsklxiKH0zY=; b=U8tM4llda8IV7u c4bTbVSUCazzefRG5PBrR50d4PN/YQ7dO/vCemMWWI0V++qeyMvrIWkmmAs68OXsaKIMX2jH8FzQm hWU0CNlHTl/fnKu6T+q/8/ce16NOZtVufOXWlSYWCQT+urySb6D0FsVoVU8KB+02TMMGfcN0BRPEA k7SJcGg0Ls6T3Mx3iGc0dIGfDCy6WoxLuCMvypKq8bsVF9YHFPy6TjXpBsTb83FSs5f6CGqaut7yy oKvv1rmXPSQP+5IZGOTPU5BVjP5OFqSvvPxxUuoZ3xx++pukCTOTbk8KG2rQbxhsHktYqRl/pjaek Le5lDBCCfAxcHi21qzgQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hcmFy-0001cZ-Eg; Mon, 17 Jun 2019 07:40:46 +0000 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hcmFw-0001aX-33 for linux-rockchip@lists.infradead.org; Mon, 17 Jun 2019 07:40:45 +0000 Received: by mail-pl1-x641.google.com with SMTP id a93so3739549pla.7 for ; Mon, 17 Jun 2019 00:40:44 -0700 (PDT) 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:content-transfer-encoding; bh=kzGmbAP3nCqIN04JtPNqqbZijwaKOikjSbmQ33aVxJM=; b=KgbB4w+ZeEOMrPDaDcgymnBtcFRRXs00l6vhcIQt03+SArc0gKlnkNeHlozTznp3fz a366YHW0HxdA66w0Xp3QGdGb7moxOLeigjM2S7MDgXwl/I0z4gA1U8gNVv9Ngbga3Rlx TILHll1RreAZYwsfJH9zjR3djQsDKahMCgu4M= 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:content-transfer-encoding; bh=kzGmbAP3nCqIN04JtPNqqbZijwaKOikjSbmQ33aVxJM=; b=WiiQ/nVUy9GKj4TMdVLCrteoREcK1q9eVNBl7Sg25Fwtw96KZmiLzMvhC8IAfYjp2R zo/yfR/12j23SfCRUPtT05SHVo7U9PJshPMXUNTp7C249xAzuWugK5NIdsWbBlSK7EZ7 7X0lDNZCmGfUjtkjt9jgxIjVtbzjmP5WFR6JlowKSePzO22T0XqUNjOSSF9IJaNjj9zL CUwhOYxzRIDD0U1wn2+/0wWxsuENGjtn1WsbZrrP4xTVYBFzxYWxAANs3v3c1xE+YF7s 9BVJXBBnoUHPHF3dgTXd5MQ3XIdfFB1mOQaNHXCDKRkk5sJlDx9alLKJymh+6Cd2Lp+g /CvA== X-Gm-Message-State: APjAAAUDZs5BUeeMgDHc1/H6adLGgtN6dLgkLDkKbEJqCQBk6TOiHXYC E+cY73RQVjuWu4IIZuBKsSeNLw== X-Google-Smtp-Source: APXvYqxavuD4NcTPY5W9oGJm5OeFt4/AeV1OgJXyJWuIZNRh+2YnzNWMlYNBUAcE9MdZDrqNQnODlA== X-Received: by 2002:a17:902:7c90:: with SMTP id y16mr17009505pll.238.1560757243589; Mon, 17 Jun 2019 00:40:43 -0700 (PDT) Received: from localhost.localdomain ([49.206.203.245]) by smtp.gmail.com with ESMTPSA id m41sm15205998pje.18.2019.06.17.00.40.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jun 2019 00:40:43 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , YouMin Chen , u-boot@lists.denx.de Subject: [PATCH v2 79/99] ram: rk3399: Update lpddr4 vref_mode_ac Date: Mon, 17 Jun 2019 13:02:32 +0530 Message-Id: <20190617073252.27810-80-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190617073252.27810-1-jagan@amarulasolutions.com> References: <20190617073252.27810-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190617_004044_203147_2F3A8801 X-CRM114-Status: GOOD ( 11.57 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rockchip@lists.infradead.org, gajjar04akash@gmail.com, linux-amarula@amarulasolutions.com, Jagan Teki , Manivannan Sadhasivam Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 0e98079468..e3180d0ef2 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 */