Message ID | 20190617073252.27810-10-jagan@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBD7MFH7A7EEBBE4GTXUAKGQEFXXSXMI@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 BCAB53F072 for <linux-amarula@patchwork.amarulasolutions.com>; Mon, 17 Jun 2019 09:36:52 +0200 (CEST) Received: by mail-pl1-f198.google.com with SMTP id b24sf5510421plz.20 for <linux-amarula@patchwork.amarulasolutions.com>; Mon, 17 Jun 2019 00:36:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1560757011; cv=pass; d=google.com; s=arc-20160816; b=AylUbYUa14dEJSr1cxG4i9paCgwi4ml4rHYyZ3DPJyTI/yjIM7ZH6Jzw1TGN7hokv/ sfXbU5Q48p77WtQ1eD23W5O+kdZEUclVN10hvK0+EccpEyqmszZmHrsbrW36OpuPvu0u QwY06DqA2q4uD2Vlv/HsSD5aVnByC5y1NCU6a7FbtLdk3C+BMGt6ixRq766c9isH2DSh znu1zse3HZJOL88liP6zm0JLg+iL4bshef0nrZP53HDgmLdjY3wo4/beRSu5WUGVNGAp ijI/1F6cD1mBhzg40FfCqIZNCJFwoqrhvvYSVUYEbWV+iQb2u+B+NUGhAiDLwQfRP2VZ d/xA== 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=K/z8U8/V7XuKP1M9P4tN2TeEhanHNpNcPEjDz6P07Kw=; b=R406IFeeOWCa6IbRn6RhdLzqepik8CGRQC5IAWjTcdIVDOwFr63WgDnG9Zm/NQYSA4 IBZqyJSVnjywPLOPbRBiO81Cjhi7VX4W17NAAuOfv+VCFxMp4aOJ+Ojds2L+vwXjhyd6 v1xrTkQzq01gLkE9fS3rO5wu7CNMfSyzH2hyUK1BlTafehi7i8yW2I/tPWERbculMrS5 jQovkkL52wBaCNKcoQJolEAsXbhg9q/WqT3kB9nnhsxDqSFNNQvUTu99Dw/0YYHznOzT kGBM/qTJxRBX4QO4hHWgmW3fOInqJSLS1u6Lhslb2rzxptV9+OJiomghq5LSS/oE1Fez /ggQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=gWQaAEoa; 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=K/z8U8/V7XuKP1M9P4tN2TeEhanHNpNcPEjDz6P07Kw=; b=nQ8HA55h6QbDBnBcox2lkW66Mp1GRUB6xavjy8+k2lZg2ACSxr73JpSSobYRCptea+ gjqhLzYMmUvJvs7QCeXYrCUVX27zi6sIXuOsYa6gN+iABcdszjnMU1aW0vH+QbSssfAi vWo3e68Jf4U2ZBZCO9AP4XtIb5ZgtSxuj1E6g= 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=K/z8U8/V7XuKP1M9P4tN2TeEhanHNpNcPEjDz6P07Kw=; b=nzJeC70hLg5yXIeDBnvwMglpUTex2I0R8d8g77nytvmN5EBE/0TCuk3s/+g7HPQU9J lVKQHbrK7JiaJcsOB5NJ3ZiP9yKO7W/0LMwrjCCUBgFEUBzJkGu1argfzWop58+uY4Gb TGrWy5vroA0cEdyTJXM38A3pwpn19HVhII9mgoti5A3P3vFN/EVJU8W95JKDlbPzoSGQ 8tYnT+vlwJDLAhYGCsCMZg6ODwocSwb39yS/coAF6EulbGX3cYpRsq6QvtDUpRVUCABN FDcrxcLZH5BDMT+jkriYQpnrMnyCwtrPJDHLgeEzQr358U55TCtDOUo4lus1jf9fdlxz xagg== X-Gm-Message-State: APjAAAVPgbXMPv1wLsBFO5QNo2C/rtp/3v8UyD49qVWovGaywUdyhMR+ SeuOcYQJ8UWVJUT+hH9elleBcouq X-Google-Smtp-Source: APXvYqxQ+ynkGVAhuzZBvlfmwYv+pmDsVN8IcVgGYO+l5rt6Uf/+e41HERJIWA2pfPvlOj92iKTimw== X-Received: by 2002:a17:90a:eb08:: with SMTP id j8mr6069966pjz.72.1560757011621; Mon, 17 Jun 2019 00:36:51 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:b21:: with SMTP id 33ls3590158pgl.1.gmail; Mon, 17 Jun 2019 00:36:51 -0700 (PDT) X-Received: by 2002:a63:f510:: with SMTP id w16mr45335129pgh.0.1560757011124; Mon, 17 Jun 2019 00:36:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560757011; cv=none; d=google.com; s=arc-20160816; b=uwR2sejJC0TKwONQ4OP/o71GQWUxxzUA98iyGbQRvAPBnNhvVTWKBeAqAWp//ecPSr q1sLrhNRCz8+Vuag1LdaFDy84LF8rKgoNP+kRd2bRzEvyNp3LWzBVZc+mYxEipT7o8wX 9EOo7QaA7GRIEWAMb1rtMFxYP7pbYvNw28b77QEVR6Qp656Dibv+m+5Vh3DRNIfoyvFW /OnVXeZpW0E3fjWNrhM7XZSG2KNtrYCOLOe74s+U/WPU/xGqU6/kvQE36vKVmaesRnUg CyekyUzLtSdAG8HV30Zm1azHAyMRmU/zIUlG5m9zmdtmEC4I8K1uPY9DzqeGvZMqm2nR 9Yig== 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=nC9utFX1vjOeZbcwhD/GIiCBQyEPpB/2j7MOLoKj7SM=; b=aWHEOvMLJV7PGh+MK8LSFP4eWHb1YYmQG8FKXGBApZmYeH0rNYKobaOu7gwxNkIvtq 74D/y8uO6l737oQd2qcmQEtzNfHarEC8qXU4E7F3BZmdooIJe8BZEH/GI7Gs46eYbxDs UZ8+Vk8wpFajRpd0W3NeW65S/rFmES/y4QOPKNzbU1GrHjmHT8qYey1RCDiX82Z6uLrh pu2OOgRfmJTpsLqt4Krl9l5y7hAdXrzFU1eGr0bB0VUXqsud39PDkkDmcktpbSCuQ65c x8T8zCkyfscGKfrutxr0WW++9xyV0gR2/QUc+RP38qUEkigtiMCdA6BzvI3fcjzDuaoR Invg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=gWQaAEoa; 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 a8sor12585969ple.44.2019.06.17.00.36.51 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Mon, 17 Jun 2019 00:36:51 -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:2884:: with SMTP id f4mr19883748plb.286.1560757010822; Mon, 17 Jun 2019 00:36:50 -0700 (PDT) Received: from localhost.localdomain ([49.206.203.245]) by smtp.gmail.com with ESMTPSA id m41sm15205998pje.18.2019.06.17.00.36.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jun 2019 00:36:50 -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 v2 09/99] ram: rk3399: Use rank mask in ca data training Date: Mon, 17 Jun 2019 13:01:22 +0530 Message-Id: <20190617073252.27810-10-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190617073252.27810-1-jagan@amarulasolutions.com> References: <20190617073252.27810-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=gWQaAEoa; 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 1898466b4c..76d6440f9a 100644 --- a/drivers/ram/rockchip/sdram_rk3399.c +++ b/drivers/ram/rockchip/sdram_rk3399.c @@ -616,11 +616,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 = 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 */