From patchwork Mon Jul 15 18:21:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 720 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 C6F233F0E1 for ; Mon, 15 Jul 2019 20:21:43 +0200 (CEST) Received: by mail-pl1-f200.google.com with SMTP id q11sf8667465pll.22 for ; Mon, 15 Jul 2019 11:21:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1563214902; cv=pass; d=google.com; s=arc-20160816; b=hR/YM9Z6HfINKr3i0yLG99Xtqx40+PQp7c0I5rOBqDpgXTcJHQBYhnwbR18XekZkSC BIv/B6k6t86qPuw0s83i6c1XOBG889Vmx9GHfyQfcOws05N3+jbh3Y2PVfYUr/z2uf42 X7lAyl8PrIRuUQryWn/0LL5H1bKg3Y/m6+d2H1FY2CCAWHNUgBCZfMtJxA8URIneMAx5 eIFehr+7b1H/mQeWMuWg01AmTFo2l03kjlzxXGyHz0lIkniNxKpxB4wDhGkhtP1ZVn1M 9aLFhzGRRuxRxvEsBrGdAjb2r/7ZUk+n3Z6JA4ylRoNV/IESouSN9QphXmSgotjwBrU/ BynQ== 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=q+O7iO565t55okf1lqALAD+m34hDDvuHNsBNntw+1ls=; b=QbwUes7wKq10wUt4gOxLkVPWES6wMcOwey1TKqGj/RYgOc2iQOS2x1AB0iYcBvZggu 0iBMnjskKxCwAMSh0STsZVOMgXIFsC658JZbE4UkW0l3eGmXykj/qlmKhioNvEj1mKM+ qwljob5aUhA2I5JCL7r9Q+jdfRpcvvhU7EnlrlStGl6xXYL46n6wJaptV9tG5y2w/FPJ RJAc8pUWMbeVTK3AuQQmsPKtUm9+QsvRkaSOItzI1z96CvOCa1d8GuTcHNexYAwzQ6Ur V0R5MDM/gsPVSxRlQQ1ivzuQs0CZfRPSTaqetWrQ1ARIjyct80VZnSAxIVmRrMikzQoe OVlA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XGDF2bjF; 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=q+O7iO565t55okf1lqALAD+m34hDDvuHNsBNntw+1ls=; b=qUysdBWT9be9ZY1F5hRWBZcy6qyjvPdsWaUpBRBzk+FEUrMZIn8uj/Eo0XLbeJfD28 8Uwocwcof7IpVvwp7pEOaehlqcnYpPxP/YUZZEDtpBPGR2V+m3snlh12elpFcRmwFve9 qDs2t6Vh/NPif6IWk+vfyKdQ4fry3Ft8FUkJw= 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=q+O7iO565t55okf1lqALAD+m34hDDvuHNsBNntw+1ls=; b=URzBIDEYeGu2n9v88aDOmNiRq9iQZceThoeWkEX9OZhA1/+Nnhbr25duE3GlZWH8pO k0X1gODyQc3pgPQrJTz95NN3PJVbb2QLFnxNsNwa1tAbXin4vB4pFgeG4a9tMKNtpglM Xcw4lcLDnDxuP8Fyo2zOJTSxIPLZTaXeCLmRjI2a3w6s2wbiZjLfy2m6w1ZCSWaEfKUR 5ZlR1AaZ8E3eN+w5j/BgSOjgdqgkemh9ZM74/sYOF8yM9SJOsPw8+mQMKtbVZW7yPkIa 1NBMixt4oeUJBFO/FlQjY/LbKNatEqYR1xyJ6rRjgNKFpxBb+abz57fV+bKtqIXB6sqv /lSQ== X-Gm-Message-State: APjAAAXS0Lpwgpj2c4WFzqIrnSxh1Chc5VORSkQI7+ZK+pJUzVJBR7Nq +6xwS8kKr6lLEnKTYVMrAWfEnM9k X-Google-Smtp-Source: APXvYqypXOhjklZVMlphpKMavCndTKIrtEuzEpilOVxbBGYBK+Sv7YI1piroBwuDR34kRNk0KyLk9w== X-Received: by 2002:a63:6fc9:: with SMTP id k192mr28043913pgc.20.1563214902494; Mon, 15 Jul 2019 11:21:42 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:5f87:: with SMTP id t129ls2999777pfb.8.gmail; Mon, 15 Jul 2019 11:21:42 -0700 (PDT) X-Received: by 2002:a65:4808:: with SMTP id h8mr28039619pgs.22.1563214902071; Mon, 15 Jul 2019 11:21:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563214902; cv=none; d=google.com; s=arc-20160816; b=BlmxyL97LV5Rnur3pCZKXLOvOeABLzdq52nQzdguEN1FtFuzH/wZcorvkgI6j63i8l NmTLZUK8JJ55kgILwBjbZSkUY+m5A9X8KAqwVWIq5qlPv0/VhFDKBUhmUJrdFOE1umIp bKz8YfDnvgg4lztcl2n1eVyOkWJQoD5555xEiuuDPvqp3MgXYOljcYy4XxpuETLyV9ro PhiOd2PiEmR57rltgJwEVgtG2MnjijzwXyMJwleP35RcU4R+z7mqKasB9SRrm4aEuEc1 EqVHWYzGEwBSpTtqbRJ/E3Ysk8pTvogrM1qXAArb2h6VLkTaxl31O+MbqfYfhBKQX2Qa kp1Q== 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=mAq8wnGC/zrJTe+0GXuXV5LHXLk5FFdePopy2DicZZs=; b=Lssv+aJX978858LYmxjwuXgo3sO4485YehtUr9Cx7pmnwp3C6ZHbcCg6mVlfURsUmZ /K6dToJYeUJBA/hwzdNog7PgJ/Slqf+VsSiGhRv520GMORC/mzmAO4GPJygIth8p8Dh4 c8C0veIjY5vaBFeSOpV2dw2sLdJYooDrtFrLTgqVO/pY6b9YLgJixw5ffdH1r22Pgu6E DMUJdDCmppdewCaxBjKDypWBJxWyUfwjK66BW4gBeHCv4pa1/UM9CAAp+ELoHzvvy+ek OhsKzsbEDwxfgGh377L4eh4hE+RkTpai8BOQ2AI5G9no0xiqYwUOQmJzFMdgQDtxCBED +cJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XGDF2bjF; 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 h4sor21835266pji.23.2019.07.15.11.21.42 for (Google Transport Security); Mon, 15 Jul 2019 11:21:42 -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:90a:2385:: with SMTP id g5mr31489416pje.12.1563214901730; Mon, 15 Jul 2019 11:21:41 -0700 (PDT) Received: from localhost.localdomain ([49.206.201.107]) by smtp.gmail.com with ESMTPSA id l15sm18152405pgf.5.2019.07.15.11.21.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jul 2019 11:21:41 -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 06/15] ram: rk3399: s/tsel_wr_select_p/tsel_wr_select_dq_p Date: Mon, 15 Jul 2019 23:51:01 +0530 Message-Id: <20190715182110.21336-7-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=XGDF2bjF; 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 Reviewed-by: Kever Yang --- 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 85ff47f133..3ec32bdbc0 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));