Message ID | 20190611145135.21399-10-jagan@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBD7MFH7A7EEBBK4A77TQKGQEB2HLZCA@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E56743F08F for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 11 Jun 2019 16:52:28 +0200 (CEST) Received: by mail-pl1-f198.google.com with SMTP id 91sf7895376pla.7 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 11 Jun 2019 07:52:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1560264747; cv=pass; d=google.com; s=arc-20160816; b=FsmBzf35b+Km9RS8SMDKxp1L5Sc5g1NPRvGy/WyddahdEBhTN17pD23ZJxNsXEVF76 2AwytWhwAXRRWram4LCWiZNvi7DeUpWEstIcV+miOszImhFgoZfF6HIcX+cEWNPvImj3 V5LSZYJ34bFCEKJzqQyFVi9c5IobUrBMdXlr8bBgtqk0fDjkKxPNxM7S0qavr3Stiwno +y5yUaZR5eirYkFWxfG3KGzK99Lvv3puF1yE3otvhmShcsEzT3XabNPjQ/2q4kcCxpKu EvQnRWeP/GFQUATsl2MHBZ94CHqsJSgxoIxUQRfHh67OOoOEo677xYC5mMuzCvC05FKp SIuQ== 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=Uc9t7akX2cDSbZqyqFlgyYoSx3ubtUpj9n/sxXzuVKU=; b=wujIS3QYTy5D67dmqhd8PXuaodzbunkPPXF/vmcHZFLBsdNj1bCjk1dbR+QbGROuIm KH0DH6XTlyElaMXsLc2O/Reh1Fepi4RdpMxWNFWSE/X/mlsC0KdhVpIeJrL/ylXXpMPR yujMK8H90NT9xnNOIhyYE/4/uaHYsE1a8IDCcJqb7deS1VEQ9DfEhinomF3uQrxEP1Sf 3PAKUGj8pyHTetMsAeeJrMxRlL40rp81D3i15GFqyekFyadkmk9m/1qfO7825HPzTbT+ bR+JQ86LGPW2QGflxYlcrY6aJWZi9aFoZVh+LWTczROZrWtlUNeafcisofPlJx9vOS/p 0HOA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mAlzsXU1; 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=Uc9t7akX2cDSbZqyqFlgyYoSx3ubtUpj9n/sxXzuVKU=; b=RFH8aG06ZuP07DdGTSsX6SX6lZFKcJ4Pt2wq9fryIYMkX7veTeKqf9Mi+2VhUcgTrM 1tZiBqxSJ0yxuF2NK/4EierPetAimcugRR/7ho5jWycZ2VhqO3GBI58OYFe5Oq3sKl8j qKSIhFTYjnUVzxwT8H6DA2LMb+zgAWDW5yuPY= 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=Uc9t7akX2cDSbZqyqFlgyYoSx3ubtUpj9n/sxXzuVKU=; b=B+8oyIiw7Vvj0EE+e2kXrQkJrChx3/ryBCCMLidRqjLqIplKUV5rFsqfAIiOhLDyVZ ncQyIW7WPEghryyKh0F40mMk9oHKfBYPvFkMElhur0cWD6mM6xJlrIlyhJMQyDMypP6v ol5FJyoc8KoaosLksCLrtOo+v1ml0kXplpDUZFEROhNzrAc/mGcUts7sqcU1teQTvqI5 /hkQUG/6xeM37F32gzXGVhOW27N8f79W90p2MhAW3PnbzGStz1dU+02ZtrgT1hXifqiM 6jyuTyzIK4F4qWFzYIkbXJnQ8pMBqdn0JVnrK6/d2WKIRHDEVdy8CXSQJNZbM47K44eW MM8g== X-Gm-Message-State: APjAAAUAKhmHm+7qF5x+pcYKxTqBXzLtGGZ/vk3dZJMovqsx7oJEgUTS ZIJlIzHXjJJhEof97XVvFcAWNIKE X-Google-Smtp-Source: APXvYqxkzTQV5LeDQqjmNWiaVEMOltyifr2NuUJhjahLydztldVNCUiwAS7YDhZNQZOYxYeE4nHjdg== X-Received: by 2002:a65:530d:: with SMTP id m13mr21073551pgq.68.1560264747619; Tue, 11 Jun 2019 07:52:27 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:8211:: with SMTP id k17ls4498704pfi.5.gmail; Tue, 11 Jun 2019 07:52:27 -0700 (PDT) X-Received: by 2002:a62:2cc2:: with SMTP id s185mr79390200pfs.106.1560264747282; Tue, 11 Jun 2019 07:52:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560264747; cv=none; d=google.com; s=arc-20160816; b=E/Oa1SLW0RmLX6wN5UprCsxoo3bVBuRQqwT4WcWleG+sM5O70Rs6cDN7wdvNUfmj6d 3t7HU+I6jLikEjVEhXEvlLLrp8bq1gfU4ivG35sRVvE/81NfkFvGIyDQnoIal6OKrEX6 fmOVUM+6BT8R0mHtAw/ZUTsFs7k8VzZjrbXac0pqkSVIfKwlWHzYx2G7SyvkDab5HKoa 7hNRv3EQNvPzZseWwZR6ICvYFgTx6tnbgAhslKjwyHQoaeGZUpaiLLCgI7mgntdFf20e MKvTWQc5Cm5CH4R6XcodA6ggUcIEgMSVDksfrqDUTHFzhLIAfsmJ4BcIk6DospNxKXle T8JA== 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=X2Tg3fSi1tlmN05lpvTCv2jc3ixEGMinJbElbSaFifU=; b=n6efV2DIn2Bi6yob5cxrLkSzoNpN4VOHG4+BoyOFRiVhiaQfIe9slbQP0dYP8QRuD5 VEFxn56An868QlRA4g0p3QZuto9OuF8Rg4+pUKzM2sFZNc4mlFvC1hbmNerQZEx6sIxb 6DOENdUFqS/GmFK4cNAidsnB9hjwrEMrGDpNvH/5fNA/X9j6CtsdzStPs7m6ONTV45K6 moKyZOpzxpKWyDDW0v4RNNYAMlX70gPfZrCY0myc3zloNSYUMxY1N0mr35GlYSOTz/qE BMOIydZ2KZKWKZGKbAYmSd0QrTovaZ1m61SAamGfKDRcgKtjnFQb7NfvdoDyqgqVQ27/ l4uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mAlzsXU1; 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 q17sor5277010pff.71.2019.06.11.07.52.27 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Tue, 11 Jun 2019 07:52:27 -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:a62:5587:: with SMTP id j129mr80331322pfb.45.1560264747011; Tue, 11 Jun 2019 07:52:27 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.18]) by smtp.gmail.com with ESMTPSA id e9sm16206208pfn.154.2019.06.11.07.52.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Jun 2019 07:52:26 -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: gajjar04akash@gmail.com, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki <jagan@amarulasolutions.com> Subject: [PATCH 09/92] ram: rk3399: Use rank mask in wdql data training Date: Tue, 11 Jun 2019 20:20:12 +0530 Message-Id: <20190611145135.21399-10-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=mAlzsXU1; 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
|
diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c index 312d19f95f..1541b34a7d 100644 --- a/drivers/ram/rockchip/sdram_rk3399.c +++ b/drivers/ram/rockchip/sdram_rk3399.c @@ -852,11 +852,17 @@ static int data_training_wdql(const struct chan_info *chan, u32 channel, u32 *denali_pi = chan->pi->denali_pi; u32 i, tmp; u32 rank = sdram_params->ch[channel].rank; + u32 rank_mask; /* clear interrupt,PI_175 PI_INT_ACK:WR:0:17 */ writel(0x00003f7c, (&denali_pi[175])); - for (i = 0; i < rank; i++) { + rank_mask = (rank == 1) ? 0x1 : 0x3; + + for (i = 0; i < 4; i++) { + if (!(rank_mask & (1 << i))) + continue; + select_per_cs_training_index(chan, i); /*