From patchwork Mon Jun 17 07:31:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 602 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id BCB623F353 for ; Mon, 17 Jun 2019 09:38:06 +0200 (CEST) Received: by mail-pl1-f197.google.com with SMTP id 65sf2492462plf.16 for ; Mon, 17 Jun 2019 00:38:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1560757085; cv=pass; d=google.com; s=arc-20160816; b=Wt1HpZaBqex0HsGM0DQFvu5oHe0qedMWtEgu2LHygprRyWBnreRMVGYpEW+fv/SdMu Bm0jTRswk6YSHTFTUKc4OAmDHwvi1H3hgMJ98PE37EppzZTsY9aiPoZyi81LPqhFyhjE Nn7YPS8SXNRijTMZUFzbEtuyAeQi6vudDCXqfuUTHdscea56340F8iOR6ea6eXo8X6tn 09ufyLz9onCe5jrGVkZh12AYL9cJUXiU4oyWoVmzzQPyCE19rJUJJmc1F/KZzHakjKrI 6yuTqjTTWGNOhWV1SkigiIup1qXn3QjRtzu+J1exeylLHj9uflBrx+hlmZGL+8ccpLUr MMDQ== 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=+K9zGAl+ePjD2aZVN9Tx5zuyO+ebLCrYpDs5JgssPVA=; b=M65iejwmD4u49yrAvqrI5st4RJC/F1ekgpsxQqDtP6nKhlRIQwc13vSV1WPnTsH2Sr 3geGZ2eMi6umDLObthxi/Ts/UlsYzFcgUt4ZWNz9tJCCTpJO7DdbBiddSeD2Qlhrdb76 2zTCRjGYHp42H728ixYeCjAaijs61knsMiWd14AJXZnLbeQAqF02zjDbQWbvThPfFBtG JIZm0IXbwZG+N2OQT01k+1pmA/erPKwqAEMwmMM6I5fnJLVLR37BfO9NiuO4d4dGQIOg 2KUMVxI+lvT5wY2vNAgjc8XwDXcItz14nU8kdqjX9SadZbo0k8x3VHgywi2UF3hhzOqH 0C1g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=e+tsvS6u; 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=+K9zGAl+ePjD2aZVN9Tx5zuyO+ebLCrYpDs5JgssPVA=; b=acKzWbhco+gN5I+mgd3ms7BIuFuQ+zt9BB0kJgf1e0wSAKfOiEAs4JJ2N8QVE1yImh +094NzKjfa7zQdZT46SHNRJufSvKGP4q6qbi/IbFwA6yj2KpK3PP7d9YbE3OFVLRguRz IJnNVAwhbPJztMn15dNBgaK1s8s4C3WAOw24E= 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=+K9zGAl+ePjD2aZVN9Tx5zuyO+ebLCrYpDs5JgssPVA=; b=YwNa86Gc/nBMn6sq6lIq9Vv9lOEtNvPD96j1tFkhgVEKKFJdUexoymUhQe/Q8EOmQL IGGMiLs/cOmSwKn/BiFrgV/SzsvsJtLfX2+YlVweadcM6B7z1BUfVvrkGqIDJHIWr6BS qh8uNB22YiJ+l078mVzaK36t6jt47EQHz20LMCUqpYIMaJz3JneH451q1Xq2FyFYJ0ed igTeLumQBt1A746Rr3s7vns0KwiYxHuzETegME6oQ25tNtjr0kyFS6G98shcKUQJDovv iq1SfGBuwQhK/3t1nVXYowOYA+HYTFF9G/TzcJfO/QdbCZsAqUtFNzqluvexui/xKy3G EqYw== X-Gm-Message-State: APjAAAX+P8HoC08rBp6YEW2YS6eaU5aId3BPqvsLAZ1N7InUAorrcaEn EoMOq8TkCDUXLLob3nJ5a3FoMz6D X-Google-Smtp-Source: APXvYqzf6lXFgfnThx5Wiz0s3GWz0mUHZ/hoekRXIxbDE0mGpFMowaMZVR3SDyb1MYgULHTPsSmhrQ== X-Received: by 2002:a62:ed0a:: with SMTP id u10mr78011122pfh.243.1560757085581; Mon, 17 Jun 2019 00:38:05 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:2ac2:: with SMTP id q185ls97324pgq.11.gmail; Mon, 17 Jun 2019 00:38:05 -0700 (PDT) X-Received: by 2002:aa7:9f8b:: with SMTP id z11mr46559857pfr.121.1560757085248; Mon, 17 Jun 2019 00:38:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560757085; cv=none; d=google.com; s=arc-20160816; b=n7JdizvkkRIlNtBsZBfyjSj+t30xjlhbVWOXUbsIoBP98HlwCuQoiupK1vcIOzVpAY z7bvk4kFIIWioEBusqWbk9kazEJno+LuFRTDTAn3k7juWYz3OvGLTGe847DEZKs4yqu0 ndJOfKn6JPzDNGTSz2PU/w3vQNX082clBz7g5Tf7iRNai2f8D/dzzGwd/PC2lyggqJpL WnEeGWURRzwIB7Vhem2KKOtV0vsYCUGs6HdJTpUFdsoBYAAHq/MNR0aec++izWTv3adh lHPOXRHRuoE96UHeLNRP1bErc/lUAuER4TEztIKFXPhGhqrlqBhK6fImeyXbeAPvxpPG F/SQ== 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=uPBg6ri3qz20FwKqK3hpb/fSKDP5UpyuWYEvwU399gE=; b=Egus4GZIgjP2wVQAR+RC6AmqGuMxWvpRmAn+skn+fixKQTmr8S9CteFeDj8Zmx8Bu3 3NX8+RYRipOsPHDkihEfowgXH2Jb0U/pXXUZrgzb3oYz/jgnoCGbJWrytSt32taKn9j6 xlECWSQwDXdVI8IieRz/T+f2j+WN8YlE4XcyvcHlNUwDbggFQ17f7GdRqGcY6yEu57kl nKPYUAHjday4Eq1q1yC3Gvr9BOncaNcucexa4Pf+pwGHcHWNbdsGKA4KXuDmOS+qrdYe VmMHYHXSOd2jfpEk4cCV8KY67uV6Qd9TteYfAYO3OVAogXl1Ym07980rZckevMc/eT9/ NOkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=e+tsvS6u; 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 i9sor12774229plb.11.2019.06.17.00.38.05 for (Google Transport Security); Mon, 17 Jun 2019 00:38:05 -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:902:6b44:: with SMTP id g4mr13541017plt.152.1560757084971; Mon, 17 Jun 2019 00:38:04 -0700 (PDT) Received: from localhost.localdomain ([49.206.203.245]) by smtp.gmail.com with ESMTPSA id m41sm15205998pje.18.2019.06.17.00.38.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jun 2019 00:38:04 -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 v2 31/99] ram: rk3399: s/tsel_wr_select_p/tsel_wr_select_dq_p Date: Mon, 17 Jun 2019 13:01:44 +0530 Message-Id: <20190617073252.27810-32-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-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=e+tsvS6u; 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: , Rename tsel_wr_select_p to tsel_wr_select_dq_p based on the bsp code. No functionality change. Signed-off-by: Jagan Teki Signed-off-by: YouMin Chen --- drivers/ram/rockchip/sdram_rk3399.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c index 1747ae12a3..172703ea86 100644 --- a/drivers/ram/rockchip/sdram_rk3399.c +++ b/drivers/ram/rockchip/sdram_rk3399.c @@ -159,14 +159,14 @@ static void set_ds_odt(const struct chan_info *chan, u32 *denali_phy = chan->publ->denali_phy; u32 tsel_idle_en, tsel_wr_en, tsel_rd_en; - u32 tsel_idle_select_p, tsel_wr_select_p, tsel_rd_select_p; + u32 tsel_idle_select_p, tsel_wr_select_dq_p, tsel_rd_select_p; u32 ca_tsel_wr_select_p, ca_tsel_wr_select_n; u32 tsel_idle_select_n, tsel_wr_select_dq_n, tsel_rd_select_n; u32 reg_value; if (params->base.dramtype == LPDDR4) { tsel_rd_select_p = PHY_DRV_ODT_HI_Z; - tsel_wr_select_p = PHY_DRV_ODT_40; + tsel_wr_select_dq_p = PHY_DRV_ODT_40; ca_tsel_wr_select_p = PHY_DRV_ODT_40; tsel_idle_select_p = PHY_DRV_ODT_HI_Z; @@ -176,7 +176,7 @@ static void set_ds_odt(const struct chan_info *chan, tsel_idle_select_n = PHY_DRV_ODT_240; } else if (params->base.dramtype == LPDDR3) { tsel_rd_select_p = PHY_DRV_ODT_240; - tsel_wr_select_p = PHY_DRV_ODT_34_3; + tsel_wr_select_dq_p = PHY_DRV_ODT_34_3; ca_tsel_wr_select_p = PHY_DRV_ODT_48; tsel_idle_select_p = PHY_DRV_ODT_240; @@ -186,7 +186,7 @@ static void set_ds_odt(const struct chan_info *chan, tsel_idle_select_n = PHY_DRV_ODT_HI_Z; } else { tsel_rd_select_p = PHY_DRV_ODT_240; - tsel_wr_select_p = PHY_DRV_ODT_34_3; + tsel_wr_select_dq_p = PHY_DRV_ODT_34_3; ca_tsel_wr_select_p = PHY_DRV_ODT_34_3; tsel_idle_select_p = PHY_DRV_ODT_240; @@ -210,7 +210,7 @@ static void set_ds_odt(const struct chan_info *chan, * for write cycles for DQ/DM */ reg_value = tsel_rd_select_n | (tsel_rd_select_p << 0x4) | - (tsel_wr_select_dq_n << 8) | (tsel_wr_select_p << 12) | + (tsel_wr_select_dq_n << 8) | (tsel_wr_select_dq_p << 12) | (tsel_idle_select_n << 16) | (tsel_idle_select_p << 20); clrsetbits_le32(&denali_phy[6], 0xffffff, reg_value); clrsetbits_le32(&denali_phy[134], 0xffffff, reg_value); @@ -250,7 +250,7 @@ static void set_ds_odt(const struct chan_info *chan, /* phy_pad_fdbk_drive 23bit DENALI_PHY_924/925 */ clrsetbits_le32(&denali_phy[924], 0xff, - tsel_wr_select_dq_n | (tsel_wr_select_p << 4)); + tsel_wr_select_dq_n | (tsel_wr_select_dq_p << 4)); clrsetbits_le32(&denali_phy[925], 0xff, tsel_rd_select_n | (tsel_rd_select_p << 4));