From patchwork Mon Jul 15 18:21:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 721 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 54AF73F0E1 for ; Mon, 15 Jul 2019 20:21:47 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id y66sf10703560pfb.21 for ; Mon, 15 Jul 2019 11:21:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1563214905; cv=pass; d=google.com; s=arc-20160816; b=d5hGM+qyIVjfjsI+uM5iHP/EviEOjwBXU/71YFERamm2Vm+mJgy6SONxtMMGN/55UW MF6gAHV0JDgKrTBbPtYxJ1eHFlcKkEQxOSDuGjYKMBZbOgvyDcLeCqkP2mTZ+oqnjJZx 2AZs4w7gEfLC+ySmdOQfRFtbvYcQstxcQAqVf07f8+LQrOVga8PutoJIet44LV9fSule Lj9RhBoesPVGojNdtlCMBVzsuH6ASiykbsCJNNTx1JX9MQDKNI+W5YVlPQv8ITl79jI6 pqde/XGbBR7WZ4sNZ+wUbLgQkGgpy/835eyUBFFrLYvR+kWrksFh79WIw1oRsuAFY8hb wAsw== 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=sw+4Jawy8IE5IDQ0tZtfzr+4/fLdF63QnJCRV5tRdV8=; b=KCcV3C1ZOJCLZtmmhhUeHtJNPA3DQlWX6c43VziPZ8OCbqZPV/qQ0VcYTfWo0ytm0f 1z1Euu57qr96wiDtgkOTb9UFToB7llqPrkiQJgOeDusIhzFHXp9AwGgO8Kh5vP6kbZRZ NH3ih0gZknbbT8PKrYwk68vQPd/tDO9NGDrFARk/7OMsqALdxTlSTGSf+zTehelwubmw MiKyBwUYI3+KWN7ay4PS/qhzfqfuJBnlfSyqhlQe3zw3j4+9nq5PwlJsNe2FHVTaUugJ V6cIv+zLssVBdeTZx1ms8VV0rmyhbPXdWb6DCAw3NCcIoy4ton0coZVepgddDk9JCNvS Qb6g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=WWKux90h; 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=sw+4Jawy8IE5IDQ0tZtfzr+4/fLdF63QnJCRV5tRdV8=; b=QTSj729DbLtlKtuHbPspswrZU01cpPU9s9+WE8xyQhIwltMLt3SN0gkXKuKam6GbAc lUUR07i7nsR0oIHGa6A6klfxRNEP+PvuPib1nyYszfmcFzF3NEbOyDGb2itY8BqpnqYH oE02pHiRybSXEwVCdOCzrE2jjcnyMICufXIh0= 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=sw+4Jawy8IE5IDQ0tZtfzr+4/fLdF63QnJCRV5tRdV8=; b=sEJI1/YSK1mPZjYPqv1E2D7n6c93PDgZaZogXrLg1w4nsn3JISHgUp4Nn+wmcvPxT+ rrcrq5GissQoPCrrpJuPFdKJr04+8S8ZkBj831LGVemC+RyzXYnGTOC9ehJKAFwRk9c4 78BqE50NKmCs40d68oJ5xsQIoMJx1961NLM6Q8zJOB0lMV/koqCsxUqOayCZORL4YDVl F/qij6/3GR3S+nDTGwPz8XwFte8tuRAxFCdXKND0OB6H9HBYjO3F0sPh1fugjwwjWB1B 0vuDhYg1PtVTHwK0Q3s4RtnbaPbunGnxctdKxg/VosWsAg9A3GeMUJpbMKLFa/B85t0+ nwGQ== X-Gm-Message-State: APjAAAU0f+QhjLhsIi+4tDoj06tzxqJyaQCrvd2Ae8d7+5A/CWwOKlsi DFr5W/lx9cnpVNF612Tux4PKxzoI X-Google-Smtp-Source: APXvYqw3BUGpFNV0u9UUR0P5cBErQBgJptB+FCDH+TdtiotgaJrHNaK6q0LoS9J9vF4JdUnhofUX2Q== X-Received: by 2002:a63:2004:: with SMTP id g4mr27156856pgg.97.1563214905793; Mon, 15 Jul 2019 11:21:45 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:b21:: with SMTP id 33ls2982112pgl.1.gmail; Mon, 15 Jul 2019 11:21:45 -0700 (PDT) X-Received: by 2002:a63:205f:: with SMTP id r31mr28363892pgm.159.1563214905357; Mon, 15 Jul 2019 11:21:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563214905; cv=none; d=google.com; s=arc-20160816; b=idiUDWnjIFgt+hE8b90aClPueHiHtvFThMjOCt2EigI5XCHXGnImXCGisBIoJlWehz SE310BQ+JKbSHpmqWZ6eXsgZMwDFqJd6PONUll8jQqBGg7dShc5ejXCEdXoE8eqnUW0/ zFre5o1E358hvU3L6XGvJjFf44JLm6y99FCD3Zfmu4zdJgnhgpzERuhW7g0iW3rMf2tQ cocYW2kTXxgxPWociP15iRJAOyewBhh3Evaj/719IYftNA5loh4WTg8qz/EsHev8g+x0 gxXEZowmD5ovnY6DWt03J1poGx5LVhaqvAu9cJt/+/GBNSkZeEsZXX9iCoBFmN68ams4 wk5Q== 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=eYOvN0Xd3Hh0f6x0tsIZeUhFC5PjypbYAEBgDLIMbqc=; b=AOmfh5ffYm5IBKccjVxyJQ1rsei6koSeK5Iz0Gx04p5NdR+WQE1Vuw6fhq9wHbA+PK Oh8bFBg/Xg/Hm+wK+bMEEIaFqbd6DSPaLIK96Ym6WKNBIufRAEdlxvyoLtDdXM6rb9/C XGnYGhyTvhLVTSv9zW0ccsNnFCb9nD/rI1Yq8dE1xvr0Vkt+bBMyDcx+gI1Qi1oPBNTz vScmQoAwleSNTX+AnMIg8QWoWzm4JEFxVpgU8Ks2svV2W9w8+vAcDYrEInhaizlkm1sv 0sP99aQGoHNnGVWEq52uNYvp17ZIeik837WFc8Rfuwp+ehcJyqVpThUQIeafF8QeQD2j zuLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=WWKux90h; 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 x129sor9556317pfb.58.2019.07.15.11.21.45 for (Google Transport Security); Mon, 15 Jul 2019 11:21:45 -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:51c1:: with SMTP id i1mr6888627pgq.417.1563214905009; Mon, 15 Jul 2019 11:21:45 -0700 (PDT) Received: from localhost.localdomain ([49.206.201.107]) by smtp.gmail.com with ESMTPSA id l15sm18152405pgf.5.2019.07.15.11.21.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jul 2019 11:21:44 -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 07/15] ram: rk3399: s/ca_tsel_wr_select_n/tsel_wr_select_ca_n Date: Mon, 15 Jul 2019 23:51:02 +0530 Message-Id: <20190715182110.21336-8-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=WWKux90h; 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_n to tsel_wr_select_ca_n 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 3ec32bdbc0..bdb46a0128 100644 --- a/drivers/ram/rockchip/sdram_rk3399.c +++ b/drivers/ram/rockchip/sdram_rk3399.c @@ -160,7 +160,7 @@ 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, ca_tsel_wr_select_n; + u32 ca_tsel_wr_select_p, tsel_wr_select_ca_n; u32 tsel_idle_select_n, tsel_wr_select_dq_n, tsel_rd_select_n; u32 reg_value; @@ -172,7 +172,7 @@ static void set_ds_odt(const struct chan_info *chan, tsel_rd_select_n = PHY_DRV_ODT_240; tsel_wr_select_dq_n = PHY_DRV_ODT_40; - ca_tsel_wr_select_n = PHY_DRV_ODT_40; + tsel_wr_select_ca_n = PHY_DRV_ODT_40; tsel_idle_select_n = PHY_DRV_ODT_240; } else if (params->base.dramtype == LPDDR3) { tsel_rd_select_p = PHY_DRV_ODT_240; @@ -182,7 +182,7 @@ static void set_ds_odt(const struct chan_info *chan, tsel_rd_select_n = PHY_DRV_ODT_HI_Z; tsel_wr_select_dq_n = PHY_DRV_ODT_34_3; - ca_tsel_wr_select_n = PHY_DRV_ODT_48; + tsel_wr_select_ca_n = PHY_DRV_ODT_48; tsel_idle_select_n = PHY_DRV_ODT_HI_Z; } else { tsel_rd_select_p = PHY_DRV_ODT_240; @@ -192,7 +192,7 @@ static void set_ds_odt(const struct chan_info *chan, tsel_rd_select_n = PHY_DRV_ODT_240; tsel_wr_select_dq_n = PHY_DRV_ODT_34_3; - ca_tsel_wr_select_n = PHY_DRV_ODT_34_3; + tsel_wr_select_ca_n = PHY_DRV_ODT_34_3; tsel_idle_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 = ca_tsel_wr_select_n | (ca_tsel_wr_select_p << 0x4); + reg_value = tsel_wr_select_ca_n | (ca_tsel_wr_select_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);