From patchwork Tue Jun 11 14:50: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: 480 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 A80F53F08F for ; Tue, 11 Jun 2019 16:53:48 +0200 (CEST) Received: by mail-pl1-f197.google.com with SMTP id g11sf7881774plt.23 for ; Tue, 11 Jun 2019 07:53:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1560264827; cv=pass; d=google.com; s=arc-20160816; b=wZHxz0+duH9+Mn0IQyODFB/6CaB9WaqdKhtQISaWxNvKyvOTusx+/Nf0cOkFC/LmQu S73N+bGJQIBYusQGBOLIB5DMbUOlAyECaRGvDJ55dEQObCz5vhMIFbY5JJhz91IOb4aj n8QjEThI25HAek1K+Nv/gtS4WLLNniCmlnNrHxRM4W2c4yMvIF00+U34coVM0W8B2LUU W0dxdafcN0OlGE/Lr4oPgmWF8MkC3VZTLXosrg4zowjcMF42A+14wzkA59bkVwcIXWoH hwCaB6HZyYekKA9ZAq0e3iriceKOiiU8Ekk7D782tukExnCfLc3/CHe2oETLe/x32Eru MO9Q== 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=s0SOLPbLeSgGEVmVcNRpckO3MnK8EU2OWN7b8Dlrsak=; b=EaXLtoD60JXFReRqPgpN5djnaHXxiEQlBM1VchtrUl3Rrvex9b04Mvfs3fDepYmT84 d1dVLj5JnVArai2QRMz5CDWqHEkXTXjZ9ftH60CRvpGkYEvWh0YCGXoQ0LuivPV1D8U2 pEJmUTnjN1T77WvytDC2f4Y8ZPdINHqtq9KFiyMICr4T4uhDYXa6m4snKYTlfH1VdFQG EfzALAj501VkdJDZjWzdUIhIxKsmM20vgWs2lBC5eGAmOzHG47lOgta92vRy9gfh9F6Q II790JJR5a3VWQRcxXCEbgufTqQkCrFW514wnPZzC0qNLwmmq/GZ0cSyYqSEybmpL7KY Srvw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=cvBQf2tQ; 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=s0SOLPbLeSgGEVmVcNRpckO3MnK8EU2OWN7b8Dlrsak=; b=buf8X2NB21Hi4YC4NW6jogfKcLPAoV1wHStOisbsvC7hUQuvykP7gGy4kG2+1z28pG aBh9Bnkc/fq9dfLpAcm9n75SQxOAUsVWNpBTUS/GlWL5fckTTFnUSCXMfAnJXTz4W4+R zE182riKnbEtoOSJj9UA/agjjrU2dz4Sey7lM= 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=s0SOLPbLeSgGEVmVcNRpckO3MnK8EU2OWN7b8Dlrsak=; b=QTesY/iduzePBk6JbpfwTA47xaRAgJQ2onEsLmdCz8Vs8qCNrnV88HQ0qkHo/AAaEv yOGCE6qo6brgIbdxxmOtDe/lxJ4SOIlEdnakXItFNer8YQe4AknZ5QBAj6lwahIla80D 3x6mVm7xU6hCybU8FkjOJLPM7wGZALaD30NR6prU3mQQBJdt13/VCw3oxB8/NR2FHtTj o3t7SuOWsOW9ecMesLcnVcN88dhCWHvEMaz7ItLqyMBRss2o65jXoiCPUuZ5WwLF259Q FnC8/mucVZZKtwhNaosy+7890AYVN2LifGnd06D272ARuewvS+zfbHahn8FvIZN4a13i vI5A== X-Gm-Message-State: APjAAAV0/GKaaNk/ITDHcaAKofxFZQx3lX03j8lQYGxTNj1wdVeVJOtt XrPiL+IMMGwwhrhZT2dqaVu8sgM1 X-Google-Smtp-Source: APXvYqz7t0mQSZrZzCkf91BlBYg4AL+seSUqUJYnXOudzTwmFq/CQaMCHazSUnVmZBHvvG+09Iy1xA== X-Received: by 2002:a63:6fce:: with SMTP id k197mr20846125pgc.140.1560264827402; Tue, 11 Jun 2019 07:53:47 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:28ca:: with SMTP id o193ls4495571pfo.10.gmail; Tue, 11 Jun 2019 07:53:47 -0700 (PDT) X-Received: by 2002:a62:1456:: with SMTP id 83mr29261147pfu.228.1560264827123; Tue, 11 Jun 2019 07:53:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560264827; cv=none; d=google.com; s=arc-20160816; b=PvfPqNO/KIBlDtA6nVwnZT0jMhSmX148p5yLpYvFnYkkMSgRbavtT2VnhsnS9nojBg SjyfvzKaSX/D9C9vyQG0Te1+RVQJx0+T3ivx105AI8K6m5lc4NUo8E8fMjLR7K/UHnzh SEG3zIDavmBS1uxKBgsgdzj+AKSCskwHWPVxizsQnEPXt9/7cIHH1fU7dBNsGrivNM38 VwcSMF7tiEHAlERw/NPAgTHg+eeV0NjNHB5jt+PZwrqJPygltmDeoLEo50NoarZ3rf9u lj0sEcsJiQ6fSUZSm0pyVkiq5kXAg4QI3OcLBLzxILUaNtGPTx6bPMNy0cNKEGnHnlip ntUQ== 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=w03lZucNkjUk4CFMHgUL3E0J7s2uIlvAVgDnBVNXifs=; b=sBL/56MXHTXOZgv72hpxPH6PiiVsFMkKt1HeWO0VwPL+P00Wc52yT0U9pxPwFyFBH1 Gzv5+RDvzEufIsPwopVF3/lBV9NBqpEOVRgjWKUprvRV2RhfPFaHO7Wo/htlhpAwANSO +PG/gAfDZ2ttyazuZXTNmAvYq2nFdOTgkeelZAbzN5PMcS1dpkZYhIHLPVXsbTQwxcDB 7hNB8tYy505zfz4yerEwdfNTi97KPQQIPhgRV39l4IzLogenMZh6KNwl0QOnx8teYvch MKvqdNPdI//3XPjR87rimfeG4yAgC1RolwEDSrN59M0TNGBWz4PtQ8XF4P1nKTf4z+Jo Dx1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=cvBQf2tQ; 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 x10sor2906598pjn.26.2019.06.11.07.53.47 for (Google Transport Security); Tue, 11 Jun 2019 07:53:47 -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:730b:: with SMTP id m11mr27120885pjk.89.1560264826753; Tue, 11 Jun 2019 07:53:46 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.18]) by smtp.gmail.com with ESMTPSA id e9sm16206208pfn.154.2019.06.11.07.53.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Jun 2019 07:53:46 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , YouMin Chen , u-boot@lists.denx.de Cc: gajjar04akash@gmail.com, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 29/92] ram: rk3399: s/tsel_wr_select_n/tsel_wr_select_dq_n Date: Tue, 11 Jun 2019 20:20:32 +0530 Message-Id: <20190611145135.21399-30-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190611145135.21399-1-jagan@amarulasolutions.com> References: <20190611145135.21399-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=cvBQf2tQ; 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_n to tsel_wr_select_dq_n based on the bsp code and associated datasheet. 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 fab7515b2d..7c05814f19 100644 --- a/drivers/ram/rockchip/sdram_rk3399.c +++ b/drivers/ram/rockchip/sdram_rk3399.c @@ -162,7 +162,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_p, tsel_rd_select_p; u32 ca_tsel_wr_select_p, ca_tsel_wr_select_n; - u32 tsel_idle_select_n, tsel_wr_select_n, tsel_rd_select_n; + u32 tsel_idle_select_n, tsel_wr_select_dq_n, tsel_rd_select_n; u32 reg_value; if (sdram_params->base.dramtype == LPDDR4) { @@ -172,7 +172,7 @@ static void set_ds_odt(const struct chan_info *chan, tsel_idle_select_p = PHY_DRV_ODT_HI_Z; tsel_rd_select_n = PHY_DRV_ODT_240; - tsel_wr_select_n = PHY_DRV_ODT_40; + tsel_wr_select_dq_n = PHY_DRV_ODT_40; ca_tsel_wr_select_n = PHY_DRV_ODT_40; tsel_idle_select_n = PHY_DRV_ODT_240; } else if (sdram_params->base.dramtype == LPDDR3) { @@ -182,7 +182,7 @@ static void set_ds_odt(const struct chan_info *chan, tsel_idle_select_p = PHY_DRV_ODT_240; tsel_rd_select_n = PHY_DRV_ODT_HI_Z; - tsel_wr_select_n = PHY_DRV_ODT_34_3; + tsel_wr_select_dq_n = PHY_DRV_ODT_34_3; ca_tsel_wr_select_n = PHY_DRV_ODT_48; tsel_idle_select_n = PHY_DRV_ODT_HI_Z; } else { @@ -192,7 +192,7 @@ static void set_ds_odt(const struct chan_info *chan, tsel_idle_select_p = PHY_DRV_ODT_240; tsel_rd_select_n = PHY_DRV_ODT_240; - tsel_wr_select_n = PHY_DRV_ODT_34_3; + tsel_wr_select_dq_n = PHY_DRV_ODT_34_3; ca_tsel_wr_select_n = PHY_DRV_ODT_34_3; tsel_idle_select_n = PHY_DRV_ODT_240; } @@ -211,7 +211,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_n << 8) | (tsel_wr_select_p << 12) | + (tsel_wr_select_dq_n << 8) | (tsel_wr_select_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); @@ -251,7 +251,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_n | (tsel_wr_select_p << 4)); + tsel_wr_select_dq_n | (tsel_wr_select_p << 4)); clrsetbits_le32(&denali_phy[925], 0xff, tsel_rd_select_n | (tsel_rd_select_p << 4));