From patchwork Mon Jul 15 18:21:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 722 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 850883F0E1 for ; Mon, 15 Jul 2019 20:21:50 +0200 (CEST) Received: by mail-pf1-f199.google.com with SMTP id i26sf10682017pfo.22 for ; Mon, 15 Jul 2019 11:21:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1563214909; cv=pass; d=google.com; s=arc-20160816; b=BHvcmO7UyClv9OSNzUmIxVhk3ZxcNijab4QJwGsKWLg2+5GcfhCaqADghpPfSl7Ws3 m6scL07DL61ISEVIRRlfhkQcPQPTgTWcnTfrAv/gbs/fZgeBHtiT1iNMTQbqI1kqBe5d Z2fPdMgnbtty/8+gihrkYx90v/6FfpEPE4aJDbKkpRymQV2tiPTnkE0f/oh+6AvV1KFw qeN3FYa7dMg//wNmFcyD6imQjHCnJGXnL7vsjoN21VotfyaJ2tCoeTJfEVrTpXYaIHZz /yMC4m9ZIyeHvtHWU1tiJT8CLRqMkw5Iksvn9i0F/8zKjP2n9vA2NpIcqcdRLjH5FMe8 eRxQ== 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=9lo5rYCHGQP07P9jN44jxafqpIdB4xO91gjsg2Nj1LY=; b=xemMR9InCMUCvuIkDPsTKNm/t8b47Lnb1qbODRHqav/YEiR69Iq2VES4uqUpzYJXO5 ErlcAZMqIULP410WJYg7BFa5BGuPbuUtMe8/vADjiG7Po4ggrmrfVxbnkZIcTEtwR79A HC9on6SU+bFGNoMPWBEFN3Qx0T+GYOLyZqZzxBt1iOQ/jJENuM+eJ3MIfoJbvNV7Flvh HHZyFspoTihSJrJJgx41iIKAFDZ2WgXsqOHPZRI36YKxXFJVl5WICZHisD0sZiaAYl60 6f8M5ZUzzrunG0qLVcJItRcCJ95oAp0Ldsdh2kZc1g+ZnahkQGDoYF8Wn5TXh2hxRNDS mRow== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bZMfoeuf; 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=9lo5rYCHGQP07P9jN44jxafqpIdB4xO91gjsg2Nj1LY=; b=Pw9cYU+DK0OsrVe+mdwFhvlI6DNe3JTbjGeVHRe+YzEAvF+FCQcHjIwQbdBdmw9iZp 4Q6l/KFqV60FEXF/y/LxCyfyBQ9jjlp7iz0Ptj9xDwuyyc2mRChi9KC5Y/dYuHJL8/1s X36UZFV9HeLpuWmsIuacFjXKS9rnSHrFp+AWg= 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=9lo5rYCHGQP07P9jN44jxafqpIdB4xO91gjsg2Nj1LY=; b=MwVOlYg7oiAe2H0C9+jpjSYlDu1qXXqF0JOtPiWAgp1g6AXkm9krjYq35jcZeN6yq7 WECItGIgBDfkZo8u3xjXyYdB7gS0I0oH//eDmE3h5s3TQW+kVXE9aAkSp8uDrq4HO9Px G0dUwxS0cOMBUmmd/ve1lQh07CzFmBEryF+db+O/6wErbCQMk7wiU5ZzemQk/buZMEQ0 L7Be/di7p3TmjToBHqGm0BIRlTjjdZUrj2eu70SFjqCkeVJnlYxyIe1CT9AvqKJsh1XV LYM/0oeM7oaHSMfLpu3H1aq+yo+EGOjEC0dcGuvl9QKqVOWDKRTKpNlIamQEvE3+sQbB wRTw== X-Gm-Message-State: APjAAAUCDqM+5LlAOo22yBkuwJ6UzVNvhNM9Hhc5xzqc7z9cTDTZDvl+ 69y6xFlS3MLGVBVOyTqsKUUXv5CK X-Google-Smtp-Source: APXvYqxxyeyLn8avGrUs5FB/d8To8nmhK8mQuwJgKuB8FDy+b9dsETuBPPji2BXmT6vCIpqFYvxPBQ== X-Received: by 2002:a63:2784:: with SMTP id n126mr27441926pgn.92.1563214909276; Mon, 15 Jul 2019 11:21:49 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:9406:: with SMTP id x6ls2993188pfo.16.gmail; Mon, 15 Jul 2019 11:21:49 -0700 (PDT) X-Received: by 2002:a63:5452:: with SMTP id e18mr11891242pgm.232.1563214908834; Mon, 15 Jul 2019 11:21:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563214908; cv=none; d=google.com; s=arc-20160816; b=WvlVCezDr1apUuhqibiidbp63rw090NtC4S+ZdhRnbOw1Z8otxAOLORFMVWfCf98GN CQgpRVJUFsKV75wJ28rejXQgBfF5MO3BZk0P4gxlKX+yWreScZkpDShZXGtx/7FrVUkT V3Yh6txlJDKGR7BuSvTkzecpFwMzjm0wwZJ3zgM3kIauTGs0b9IzvDWt1DtiZ464njlm 150EnoAKnABz8zVVQ56AiNJkVntwpAbzpXzyyGUgyIpea+gcY9oeqxSV5yT4FIlD7g3u ZrfNgbX9NJsYKq1rIspcpvDlImTuiHdlVwPoCCgMd1WLi9IRAYJEODdbCNs7qPfiXHHk jBrQ== 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=bP5RUNOPzdBiXN4Wuu7IIKjZLRMU38B7qIBozOuu1g8=; b=RymfgiWCaDKIvqO/zP96TfXR5x5Wqp9/XmrClWSq/gn+z7Qxzf1Y3zs1fLv/4L2IAT 8PQYCAMCYVH8vntEqORIIHQqEVsNJNLHNKG0QzvIeMD5i1s+DwiyiBa8bVX+A+nmoAsM w4D199nDgmUfEUSIJO7/Lvvou6rJn/MxswVAfKcttatXaO1FfLR9XA2yWcUjIKh+6s5k XxmGF6ZKVwxU5SjBdQHKuDrbWJqKK0aH8NXe73ApG7+uW9cWz3EBEnbns50uzDXf3yKZ 2pJxp1cQmYUBSiiog4Z9SGX5K0uYqsCe21Q4B/XNgFsgB8TjBgBD/Sc78hYSKdjSNOTl snWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bZMfoeuf; 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 i13sor9326703pgr.87.2019.07.15.11.21.48 for (Google Transport Security); Mon, 15 Jul 2019 11:21:48 -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:a65:5c0a:: with SMTP id u10mr28580554pgr.410.1563214908423; Mon, 15 Jul 2019 11:21:48 -0700 (PDT) Received: from localhost.localdomain ([49.206.201.107]) by smtp.gmail.com with ESMTPSA id l15sm18152405pgf.5.2019.07.15.11.21.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jul 2019 11:21:47 -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 08/15] ram: rk3399: s/ca_tsel_wr_select_p/tsel_wr_select_ca_p Date: Mon, 15 Jul 2019 23:51:03 +0530 Message-Id: <20190715182110.21336-9-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190715182110.21336-1-jagan@amarulasolutions.com> References: <20190715182110.21336-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=bZMfoeuf; 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 ca_tsel_wr_select_p to tsel_wr_select_ca_p based on the bsp code. No functionality change. Signed-off-by: Jagan Teki Signed-off-by: YouMin Chen Reviewed-by: Kever Yang --- drivers/ram/rockchip/sdram_rk3399.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c index bdb46a0128..8a983f9bb1 100644 --- a/drivers/ram/rockchip/sdram_rk3399.c +++ b/drivers/ram/rockchip/sdram_rk3399.c @@ -160,14 +160,14 @@ static void set_ds_odt(const struct chan_info *chan, u32 tsel_idle_en, tsel_wr_en, tsel_rd_en; u32 tsel_idle_select_p, tsel_wr_select_dq_p, tsel_rd_select_p; - u32 ca_tsel_wr_select_p, tsel_wr_select_ca_n; + u32 tsel_wr_select_ca_p, tsel_wr_select_ca_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_dq_p = PHY_DRV_ODT_40; - ca_tsel_wr_select_p = PHY_DRV_ODT_40; + tsel_wr_select_ca_p = PHY_DRV_ODT_40; tsel_idle_select_p = PHY_DRV_ODT_HI_Z; tsel_rd_select_n = PHY_DRV_ODT_240; @@ -177,7 +177,7 @@ static void set_ds_odt(const struct chan_info *chan, } else if (params->base.dramtype == LPDDR3) { tsel_rd_select_p = PHY_DRV_ODT_240; tsel_wr_select_dq_p = PHY_DRV_ODT_34_3; - ca_tsel_wr_select_p = PHY_DRV_ODT_48; + tsel_wr_select_ca_p = PHY_DRV_ODT_48; tsel_idle_select_p = PHY_DRV_ODT_240; tsel_rd_select_n = PHY_DRV_ODT_HI_Z; @@ -187,7 +187,7 @@ static void set_ds_odt(const struct chan_info *chan, } else { tsel_rd_select_p = PHY_DRV_ODT_240; tsel_wr_select_dq_p = PHY_DRV_ODT_34_3; - ca_tsel_wr_select_p = PHY_DRV_ODT_34_3; + tsel_wr_select_ca_p = PHY_DRV_ODT_34_3; tsel_idle_select_p = PHY_DRV_ODT_240; tsel_rd_select_n = PHY_DRV_ODT_240; @@ -228,7 +228,7 @@ static void set_ds_odt(const struct chan_info *chan, clrsetbits_le32(&denali_phy[391], 0xffffff, reg_value); /* phy_adr_tsel_select_ 8bits DENALI_PHY_544/672/800 offset_0 */ - reg_value = tsel_wr_select_ca_n | (ca_tsel_wr_select_p << 0x4); + reg_value = tsel_wr_select_ca_n | (tsel_wr_select_ca_p << 0x4); clrsetbits_le32(&denali_phy[544], 0xff, reg_value); clrsetbits_le32(&denali_phy[672], 0xff, reg_value); clrsetbits_le32(&denali_phy[800], 0xff, reg_value);