From patchwork Mon Jul 15 18:21:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 719 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 3E8643F0E1 for ; Mon, 15 Jul 2019 20:21:40 +0200 (CEST) Received: by mail-pl1-f199.google.com with SMTP id n1sf8681232plk.11 for ; Mon, 15 Jul 2019 11:21:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1563214899; cv=pass; d=google.com; s=arc-20160816; b=cevXlQQcrGHl5+QPfXSS3AWlwT1PLXb6/JdLP7ALyK2T1b1Ly7JcL7pHX+jKUQHXSf pp4prfo4Qd12bsO1tjXsYJL/ZJPaocHkrKoq/35xxHEvRDBDE5uenZIlsHAxhEiFlAkc s4lZ9yGWeY5y4YdNoaEuw3QU7Zks9jWp0spblX5SuSo/gJKzWLPaPVOjChJyKU+vnTMO wRVyqgR0J375AY3s0TlQKBDLBpXIgMg2ES5vPjQ1hQxabRgcCMsx74BwFhY5OAO5vd6e Yq3d8rTdV2jP9ep0ZE6GeOAYeg2tOTn1yxJ6HsF73q1xN14aeSzjmkzpl2tLmzf/gB35 Ib9w== 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=vKZvHLWgdgduHXOwn6HCX00nwtw0TNZIW6MbbCNSjE8=; b=vbxoabnj8VkD6jDcRRMQT8SoOlWKzzD86lVqQOlR8/nFfeUDhUUs49DlL8Gs8cvSkT ntfTOgmvsQaPNGS/UA29oCOThGw9OQWRlKqXX8o2TgUZJv7C9dfq3JU69aoi1rvzJSLI Ia81iY4xJDE4sSCU9ksbkMSOa5ZFQO9PJAuJ+n4eui5WrWbqXLkQJcqcVlOEDcReiWg2 o4daWshnf1jloQF9dkX9EERsRiNHCmcC1wVNDmvdAe9pQHi4oJRQuyjfwE4xbuA3/kty is2cEvL19kBYydZdIDPOkOE28XhthgGSy7lhaWj3QePGUcU4UBPyZdl1uVMh3OgP5DJy Omsw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=NneR+4kE; 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=vKZvHLWgdgduHXOwn6HCX00nwtw0TNZIW6MbbCNSjE8=; b=raHHi2WvH9Brn6o5WOIr/KKzQyIMNqbxRHSk+MmkyHBsag9CLUc0ZKnj5gxMetzNDz LraoYNRo0guJnYYkFswma2+gTtMopOiPcZ0kYksHpQMGCisDKac9WkFOF6v/9qjYkmrA 35dljZoqgWRFG0vO9c51ybVQMg4/kBJTEiHIU= 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=vKZvHLWgdgduHXOwn6HCX00nwtw0TNZIW6MbbCNSjE8=; b=B90xLJFsra94OUz9j74QPKo4PVLZAaiUjEit47dI3oPTfwd9GU3lT+eM/6ceEr3JDj yBog1z8LiCQCoXiwxM5FIXvCrAOlw3SOHPtYkCjDAAapOYr3sF/zrcM9rza23jvhysFE oKAf+RrWiXHfK8YsdLf394jo137b1PVu4lQDMNjtubIxBIYoixQl/odpPOn9jXcDZjZL 2oMev8Qay5f+TLd2lXRNpXUGSiR/OCELPnXZ4m4wOp4NEYCC4ywjGfgBUfGK1AnCBs/X ixgKYOCxnawkYAEn+2MU1AyWs9uoO71m3Ak4X5lmYcb3lYqwzIvEdWkvjBZcFGkEQChj 7b4g== X-Gm-Message-State: APjAAAXWzHPr2yPfu9xa0BAi02Qhak2eckLkLo6BrQylKr6MzZQjs6pd ui0ZNTL/8vfcd8HCqAtT+EgWLzuX X-Google-Smtp-Source: APXvYqxRokqpSj7NRPO0qp29RSvED/EZmu7shx5M0GwhXakEm80qx1olKLLPhZUugc9UnakmZBMq4A== X-Received: by 2002:a63:5452:: with SMTP id e18mr11890475pgm.232.1563214899019; Mon, 15 Jul 2019 11:21:39 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:ca05:: with SMTP id x5ls6188248pjt.3.canary-gmail; Mon, 15 Jul 2019 11:21:38 -0700 (PDT) X-Received: by 2002:a17:902:6ac6:: with SMTP id i6mr30074692plt.233.1563214898663; Mon, 15 Jul 2019 11:21:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563214898; cv=none; d=google.com; s=arc-20160816; b=A2xeewyxH66GIJ+/WhBUX47pBuji4bQdF62XFp/oCjJQ0vgoKQKIR/A/d6jrhvZpMI semlPEhu1Z1Z1xfBqsLDwrL3tL44y564aOUCCXip7KxVKotIRNlVlP5y8HlVay8HT6go P36d8VAkcUqSDV5J/illRuevRhxwD3KDBcFfoB2Oj8xHLzwhJjkr57JZ6st+vXNiucW2 KTbO8M/e6F8W917N7NF6EuyuvldE/CLn7Qg7uCVTZiRAhVnv+gl3sNxFxrKvEgzfLZ+k gaucRxnXaQrg6IlFGduIrXyTKcfdELP29ysxeOFcq8pu9ykxZeiiVpAIA/LXjt+YnX53 6Bsg== 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=CH7kXC/55njW0bSaZl2qK2J6bkupjI9qTVeY0Js/mVA=; b=FKz+zqNmw4bkVrxT3s/FqAOMc0kQaxeGKFsSjZEuo+7fdwxnJ0wl+89I/k3z/SGEGI VkgMJFzJh0K8xMv8SlFqqPWzFNdxPABtoGSfyQ5vPMWimDciOqL/UVvZc9ewYoIwCXSI L/SqnmQhbPh9+Y3bdTaFbv3O6NnVqqh0wVy5X4VIqHYvEK+8ZJ38RUYmnplXKWOmkrxj NJQM2wAIVqoxMRbsqKJKO4Xlzk8NWi9xe61hSYqcITgJDT1DUhkH/34oTimP5lBaANku TyelC2izKp4jpGhvhpHkxS8p9S3frvXKfJb2Dl73C7UWthGBPOX50wDK9n/s1L0oTFCh CPeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=NneR+4kE; 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 l4sor9514977pgj.48.2019.07.15.11.21.38 for (Google Transport Security); Mon, 15 Jul 2019 11:21:38 -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:a63:4e60:: with SMTP id o32mr28875943pgl.68.1563214898284; Mon, 15 Jul 2019 11:21:38 -0700 (PDT) Received: from localhost.localdomain ([49.206.201.107]) by smtp.gmail.com with ESMTPSA id l15sm18152405pgf.5.2019.07.15.11.21.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jul 2019 11:21:37 -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 05/15] ram: rk3399: s/tsel_wr_select_n/tsel_wr_select_dq_n Date: Mon, 15 Jul 2019 23:51:00 +0530 Message-Id: <20190715182110.21336-6-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=NneR+4kE; 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. 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 de5d8c1b5f..85ff47f133 100644 --- a/drivers/ram/rockchip/sdram_rk3399.c +++ b/drivers/ram/rockchip/sdram_rk3399.c @@ -161,7 +161,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 (params->base.dramtype == LPDDR4) { @@ -171,7 +171,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 (params->base.dramtype == LPDDR3) { @@ -181,7 +181,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 { @@ -191,7 +191,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; } @@ -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_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); @@ -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_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));