Message ID | 20190611145135.21399-9-jagan@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBD7MFH7A7EEBBJ4A77TQKGQEUAND6JQ@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 5774D3F08F for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 11 Jun 2019 16:52:25 +0200 (CEST) Received: by mail-pg1-f199.google.com with SMTP id j26sf9273085pgj.6 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 11 Jun 2019 07:52:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1560264743; cv=pass; d=google.com; s=arc-20160816; b=ZPr4w2s5Z0k9nPaoacvYSO05P/rTIwAS44RjsIrBNg4gsmiteC1YhuFXVMmkMF78fD 1sSlGXH4za8LImsx9MPWYATYxNMssYzHiornF/YZPZEWQP51y6h7Dv6FIrvhdXhRNulR ANBb3aCv2bJuT9efXnsSee+GCaKdV/t1YScSQ8qw+hpwt/xHQ1NaRoocM1wV8auTvRAm sHcaE9LoVZitWSfMUmvdCfhj05PwWq4Gx0Iz8GXMm5FxD6Qr3AVuJaJsusEVn8nrWZr5 81jPK//8e9ZZMIXpuW13OChfEeTWqXrUOTuYau2htQF+/Cv0Fm0BzYWkvabtBJwRAiSZ e+yA== 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=c4ZXg3qBwoBx2uUsFpmemSRzpxFjgxVoB3eIhx3Mfec=; b=ztCXXj22k/Uh1tt6nPDybAwHhMHyfUbQwnlU+Yuxg8te+iCkuZPlBqEMnsc6A79Odo KNrC0BhghnQY3BraEuBWGxcXfQKxTXh8MXRP58KrAxyRcUjE24xMz/WCGE9fiVk6+zDZ Agp62QmjEir/GVTdWBkt1X1/QCMzE+aaFPQ1fwZwLekF6uQhZddugAkFGWzu0RzdIbEh 3KlLxBzBRS7x7NRvCduwvGufJu/2V4drf+XHnTufdyFCgzeWqLHaeYIrMlriLz7JxMov LQfzRVbL4ir+vwhIP2a2FH2D5v7boaCPuzeeuDpgZgiQWytP+fe7LnfAmU1jSBd7xIO/ PyMA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QfOlqpTu; 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=c4ZXg3qBwoBx2uUsFpmemSRzpxFjgxVoB3eIhx3Mfec=; b=IvN2St5yTCOXbzNpxRM1VxAt22xbOXhKuR4Gerz/Apvq/txonStsryE29mXfiSBZ5w Fg2R7ah+lYQ4Zvo0AEdO532Iuc++ukXFzkDx49EFtgbndqyPPIwA7wyhLMnQAlSMQ998 Y4fyS42vP6pVJ3h3DUNTdR/2UYqMmmY9mJpqc= 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=c4ZXg3qBwoBx2uUsFpmemSRzpxFjgxVoB3eIhx3Mfec=; b=f/9hc9Z8z+Ip01iUDrJ3SqhseUFLdBqUjnipbSzKJju3rZf+/23RepQsiojKghZbhm zJ+RZUDE21RqrwUbgH9uHxra4eT3n9ZxL2/10dUuAlxFZiTTRHbOc7CyDqx19sH5GH+A F06EabWIdJ+NGDGGBpywhE7BJ9V09gya0UHivz9+UQPqMeWN4xy4gBRAlZncAB/uZc0D k+wN0+KQEK8hfjf3zCQf41tTzIOKetRCwjzKL38xLIwqm6nuYJ5rwzf9x9ab60ArsF0u 5j++iBY+FjN0Yg8mXbGTmy0YLELK4J0oF0jcr5UyBxs2v2vTawYSvYS5MB2uzepB9qNF wWLA== X-Gm-Message-State: APjAAAXDpiPAIYsj1xqAFu+evL9//n1fhREFeKdW0rRO+DkX/x462+V+ 8C66tzroNvtfAVN5k1v8uFpn+aR2 X-Google-Smtp-Source: APXvYqxCA1Rk5eYkUX+/iIX/ZaO4Z5RyrLkUlFhZt3PzIKPqwPw8QL8Y0GgjpY8cXnecBFFwwU8ukg== X-Received: by 2002:a17:90b:d8b:: with SMTP id bg11mr27267871pjb.30.1560264743828; Tue, 11 Jun 2019 07:52:23 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:a986:: with SMTP id bh6ls4896860plb.8.gmail; Tue, 11 Jun 2019 07:52:23 -0700 (PDT) X-Received: by 2002:a17:90a:9b88:: with SMTP id g8mr1407755pjp.100.1560264743514; Tue, 11 Jun 2019 07:52:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560264743; cv=none; d=google.com; s=arc-20160816; b=eBBx26wRCOkmR51MmroK8fp9x9jeFdBNwRp6RBO71ekD/ahgblSYIGr9yT/Xous/oU /rlJls3NnpP3zlwYdrkjF5cpvzp6aLpp6FIdfG3XFE8ZvS7KZFu6jHjSd5gErJnOX1xE t0oLNAUfQyifOaoup1eMx7JYjaa9SSdVuwziRY4Z/jNszntZk+9iDdQUup2FlXCxZChr fkRDepqhAKRnuOuLMtKNIqfZpghrpiyNEAOZPNWVd85NDmzpaL6ilOcsEKq2URdIey99 f73idPDYue3hhUf0QXC3YHp9J66ybdAO7ruPdy9rKQSzOjMxz0laDWRrB/46BYXqMaqS 2Vkw== 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=sngFIrXhys8b3WKcTJYD5YX0xO4WB0Npd+TKfw+qcNA=; b=gSqbTNCzRocggx9X8+XXUK91xAt9LwwnaQtRJJRT1hzeHVZFJmAhYgpq+jfg5dEMmc d9nv9wZpsAhWTg388AHwNWAEc4i+mhfLhRI0PbrZeP+QF/OVKErTMa8S64HNq/laS0DC ihYvqrFvTw/pvLYdtErJII1znlLTYn/XBgjdwjoPP5kwfPmnuoupe7EnTBKXUL95Rqrs 685r1qyAe7pymIQoGsgL0UvUJoavaBWiOOl2f/4wMx0+8eDYjasn51W/zyXNNyradEmU 50tbRhjco8w+ZZsNm33QBppdwgAKZ0/VkMB9ZItB3CC8mnBbzl6OfkT/e3bU5+qZA1V+ nr+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QfOlqpTu; 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 s10sor3188971pji.2.2019.06.11.07.52.23 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Tue, 11 Jun 2019 07:52:23 -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:9a8d:: with SMTP id e13mr27627279pjp.77.1560264743166; Tue, 11 Jun 2019 07:52:23 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.18]) by smtp.gmail.com with ESMTPSA id e9sm16206208pfn.154.2019.06.11.07.52.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Jun 2019 07:52:22 -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 08/92] ram: rk3399: Use rank mask in ca data training Date: Tue, 11 Jun 2019 20:20:11 +0530 Message-Id: <20190611145135.21399-9-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=QfOlqpTu; 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 74392076f0..312d19f95f 100644 --- a/drivers/ram/rockchip/sdram_rk3399.c +++ b/drivers/ram/rockchip/sdram_rk3399.c @@ -617,11 +617,17 @@ static int data_training_ca(const struct chan_info *chan, u32 channel, u32 i, tmp; u32 obs_0, obs_1, obs_2, obs_err = 0; 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); /* PI_100 PI_CALVL_EN:RW:8:2 */