Message ID | 20190716115745.12585-38-jagan@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBD7MFH7A7EEBBSHYW3UQKGQEWPNUROI@amarulasolutions.com> 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 2B80F3F08F for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 16 Jul 2019 14:00:10 +0200 (CEST) Received: by mail-pl1-f199.google.com with SMTP id 91sf10052766pla.7 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 16 Jul 2019 05:00:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1563278409; cv=pass; d=google.com; s=arc-20160816; b=PwS1b9MCojIxDv8DYk36tK8bG5x4Y8g9RQTQhrYtClYm7gma80ew9ajzO2HooOVFIs RMNEDj8EwEVa0aHcuuT2l6pe2rube1nGSa+rEb5K0P2oHMlKkESuK5pVdUJ4coiEZSBh op+O3IeIzJLQfKl9/yajM962EmNIlbnHc+lNWiO4FOzqBBXkeHF7aKju5DDuUt4Hl4mk aImwD2ZKWRr2kGMMV0Y6dGXWYubyqdhvJt2j2jA/CYkq4YiX9mTji06xS2Mnk5PYqUkE dIqJjPk4tl3sYO6oLvcDZU3RnkrmOwfLMpMiNpOAn3E44zSGbbNa2NJXDuXYovB9H6Tt R5Tw== 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=vH9uZ9g8BsVTpw55n03iOXtyS0j9FmBIzW8VrSXJXPM=; b=07xvE1bOVBkFbTQF4zEoP5/EM0JpRbnUQcksiQ4qCvuzF/WIhToxJwlNGhPZN66kMd X4u7Dt5JC45Vd4q/mJL6OkCCueVwuF5Bt29ItsdSpRklJl3ZB2zHEvD7lL3GHj+CTll/ la7pZ1djTfA5PmVwtmUT+QtwvA+Xr/TjUE0++mb3upAk6aBtHfSVpE5MZ2PyD5hf0Riq 9+ultQK3o8y/Ypll34y2Oi8iHpfezgWAfFbRPnEyXF2ZEBvbcbaDnncOI+mjmW1mFd3V 0BwJPKflzhTlSauEW6WZ8dqPqCAONSTgqIxI2LXYFLQw5jmpBXEuWYTB1MuAWYZ5GpJi UH7w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=jVR8wFlm; 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=vH9uZ9g8BsVTpw55n03iOXtyS0j9FmBIzW8VrSXJXPM=; b=cM6BqOYBVCqhT6Pur7v5zkNNaBvMapzZnC3p7Z9QEPvmkzTBNH1Wh1Mg0iyV6XMAVh HbJ94dHGlP5qN0Vi6Ik7ry9x3In4slFMDPpx76xhtSXoPQgnPQgdl+RjWZ74awu9C5eG Hui5Vwy61aslGomAY1xCabmW+M0F4ABsAspxc= 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=vH9uZ9g8BsVTpw55n03iOXtyS0j9FmBIzW8VrSXJXPM=; b=To0BYNq9/gRyq1F6e216LxaNYOgBWOdqO8UbEWQGOquurACenrVHUvopkHBw5wqWQu 6RCRK6br3thvg9hyq1QrUxawzf5VZaWtujgdaoUP+hCAnMEzTkLqyzKFcO0vrUTRb0dl /hsu6/krnarf2zt/npRE7R91IZHubgTooae1kGxT4nSXzMkvpSSPOe1oVUoGm4HfIXxJ O9Cy5qhTklJfR95WT+IcZX3UXnXgqI5PveVkMk3iTiniuG0KmEF+mL8TEPYkTYGIgEqa zrYZKZLkGc1qVbrXp8aDIt7ZFFN16FI7VNgGP5vWXHDlCUMA/D9ncexeXXCFo8SJiU4p LPhA== X-Gm-Message-State: APjAAAWEM/RuUoJO58s7fzDTKsGB06ihfhRHk7X4JBl+z1+3VO4OU/ii v6QKH3t64laUd5MIGNrxA90pnWNk X-Google-Smtp-Source: APXvYqyc3Jk3QVCnAKgTzpDrVaVtSiurjfrdT2iALsuiX2UzLJpzTl4l+65uRbqK861yvsl+nzN+PQ== X-Received: by 2002:a17:902:724c:: with SMTP id c12mr34179917pll.219.1563278408961; Tue, 16 Jul 2019 05:00:08 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:31c5:: with SMTP id x188ls1131114pfx.7.gmail; Tue, 16 Jul 2019 05:00:08 -0700 (PDT) X-Received: by 2002:a63:db45:: with SMTP id x5mr21340649pgi.293.1563278408454; Tue, 16 Jul 2019 05:00:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563278408; cv=none; d=google.com; s=arc-20160816; b=chdQGtj7e8d2METZAON2dZfEGuhQ3OSPDSGOF9e0cRUOnnkeVXaWNxvE832LlF/ZCg vmoIjADyYqxIsaCQFFGVONaEW6gNAZ4AvvyuN/kzOte9A8+sOAfNrTVNY2dr1FRjH34e kjd1q4BO8xlEl/su9oW3KdE6MDc9KMnShN+3fg9aJApXnTu+Fzx8DRxFx0DMc2Jecy5s dlcSpvrsj26Z6mXGbErC5V56YaQ+ZC7mg/rI4N+6xZMgtbzjBMWzY1EKl0OxgIoV31JZ 7szgh0AKzIejiEP1/B7wEb1ZquPF9staiUo4aaCayv+MlSXK1LFN51jXMFEnI406o8NC m22g== 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=58XLNuDyUTU9lKLmcFIrRJzh/d2o9C03p3D5LTCflwA=; b=xc6RZcENrxww8Zo4nZ9AzB4WgmsMO78UfJ62XR6MQ1MNf6NBrPT/iplZkrw+uGz+DQ r1X476+NePgyEEdV+t4uRIuEObP6FD/iYCFLknj/JZ42FnxDCq2rlaeXsNsO5YwYwq4w 9AzgDWZEuw137eR3Rh5GesvzorKfRirVpd/WPtUOpe++4FFYvJrHxrxyIUY3VNihemlH DPtVRjY01oqIAhkGrNsFiflLMzEoan1oNA3R7ardDZeGxSqTngUcZtyAc0EMKyknORwi ZiCtgjyJOxbXqPmLYGjod6Lfhbs2vmRy4BKKYtiLWA+oC6Oq0T/gQQx6Q3m8DpekReFh 2hYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=jVR8wFlm; 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 b9sor24631697plb.21.2019.07.16.05.00.08 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Tue, 16 Jul 2019 05:00:08 -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:902:8509:: with SMTP id bj9mr35076461plb.79.1563278408205; Tue, 16 Jul 2019 05:00:08 -0700 (PDT) Received: from localhost.localdomain ([49.206.201.107]) by smtp.gmail.com with ESMTPSA id z24sm36269566pfr.51.2019.07.16.05.00.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jul 2019 05:00:07 -0700 (PDT) From: Jagan Teki <jagan@amarulasolutions.com> To: Simon Glass <sjg@chromium.org>, Philipp Tomsich <philipp.tomsich@theobroma-systems.com>, Kever Yang <kever.yang@rock-chips.com>, YouMin Chen <cym@rock-chips.com>, u-boot@lists.denx.de Cc: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>, gajjar04akash@gmail.com, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki <jagan@amarulasolutions.com> Subject: [PATCH v3 37/57] ram: rk3399: Get lpddr4 tsel_rd_en from io settings Date: Tue, 16 Jul 2019 17:27:25 +0530 Message-Id: <20190716115745.12585-38-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190716115745.12585-1-jagan@amarulasolutions.com> References: <20190716115745.12585-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=jVR8wFlm; 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: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related |
show
|
On 2019/7/16 下午7:57, Jagan Teki wrote: > For base.odt 1 the lpddr4 tsel_rd_en value is depending > on IO settings of rd_odt_en. > > Add support for it. > > Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> > Signed-off-by: YouMin Chen <cym@rock-chips.com> Reviewed-by: Kever Yang <Kever.yang@rock-chips.com> Thanks, - Kever > --- > drivers/ram/rockchip/sdram_rk3399.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c > index e0be9d2485..9e40880835 100644 > --- a/drivers/ram/rockchip/sdram_rk3399.c > +++ b/drivers/ram/rockchip/sdram_rk3399.c > @@ -645,10 +645,14 @@ static void set_ds_odt(const struct chan_info *chan, > tsel_ckcs_select_n = PHY_DRV_ODT_34_3; > } > > - if (params->base.odt == 1) > + if (params->base.odt == 1) { > tsel_rd_en = 1; > - else > + > + if (params->base.dramtype == LPDDR4) > + tsel_rd_en = io->rd_odt_en; > + } else { > tsel_rd_en = 0; > + } > > tsel_wr_en = 0; > tsel_idle_en = 0;
diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c index e0be9d2485..9e40880835 100644 --- a/drivers/ram/rockchip/sdram_rk3399.c +++ b/drivers/ram/rockchip/sdram_rk3399.c @@ -645,10 +645,14 @@ static void set_ds_odt(const struct chan_info *chan, tsel_ckcs_select_n = PHY_DRV_ODT_34_3; } - if (params->base.odt == 1) + if (params->base.odt == 1) { tsel_rd_en = 1; - else + + if (params->base.dramtype == LPDDR4) + tsel_rd_en = io->rd_odt_en; + } else { tsel_rd_en = 0; + } tsel_wr_en = 0; tsel_idle_en = 0;