Message ID | 20190611145135.21399-63-jagan@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBD7MFH7A7EEBB7UB77TQKGQE5KWKISA@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 04DC23F08A for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 11 Jun 2019 16:56:00 +0200 (CEST) Received: by mail-pg1-f197.google.com with SMTP id d3sf6360283pgc.9 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 11 Jun 2019 07:55:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1560264958; cv=pass; d=google.com; s=arc-20160816; b=n4KQ3qkiGa496vLfHem6Ntjjq9mywnhmoVKJoU5v77tXAxttvdqvgPf9g5w/NO5TOQ uO0LdYeHPZDyv+boic83o0O6Z+vVC45hjGijIYfilOz9frMxHC33LBN1hhUfmQLuX9Mf iEmtwOF+L4EwqXULSDqbea8PzUQKYhRbsXmlus/2DupmntYfn+muYN/9WiQYLPYjFLN8 cHgvJE+Aujbg6gnWYSu8H8oVhkUmPxE9cFsLyctiOGN4zTqpBxGiC0ihyFpg7ZE0aXCb vJGMuDBtGT7g8kc3nZgTCAAVOdqEqkaZBb4lpVW7/LJJvStouCQvq8tQM6wucZzeMwRL Dqkw== 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=0HR1aRfWemY4Bv4UDrHX1DffExcS1DJCA/FSESkJ6n4=; b=GY34PPvZYE8dLnNb/nTmfsPXrl4iQWrvuh3dvQqwKzo/F+9ownH0I96eK5ZrYaxwGY wDFB6r4VL100LTZlOdkVeyLCvs5b2yGXM+EX1c+u9EjSnlzMlEdK8oXHASsHcXSOWPXz TpUKGPwIrS0w6FVdA/rYyKrbWI03lhRBlCYIgwhY88b4Kz37mzx38zglRbaCrM3kh96w UlkFk0O+YJyoG/ftFSPT8ce6YAR+5N6sy+8sQfo3sq8nnNXE4Hq1v3uLeNRPLAbJzITq cm6mgNH9smsx8iKqbx8YJChhGYHmHO412JI8HVTpdzGrG/Sel4AyiWQiMd4M4C7xY7B0 bPXw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Wug8ICFZ; 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=0HR1aRfWemY4Bv4UDrHX1DffExcS1DJCA/FSESkJ6n4=; b=UKhLjzVqowL9C/cj5Fs//MarTKbzPAwtYHxCe5WQ3zVEuTU6+zjDKvB+Zj2Bi95yPY bFeil7kcXY4DkABj1ef/5KycO6GdOfKt2wqc/J8wCLIPmUjcFNa1n+eBsRosFHGK7vjB C17oOD4vQDzuFxsV06hxQ1ECApE+isahyyGgA= 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=0HR1aRfWemY4Bv4UDrHX1DffExcS1DJCA/FSESkJ6n4=; b=RgfQvTolmALjMw3wTlaLwiSPIu1Kyg84+3PkhiXNeSPfAlhOiGHyQCzDU9uzSa6s0N DFBVaKcA5D5q6ILtbhme6bG5AuXWcpWWU/Z2MtY7b5AMwnzzOos2AxUjrNZIRvDRCOfc fIhIWi8vRl8HZHc8VrzL+NBRVGO5/FMueqa0S2L7o2QVKiI1bkabMB96t7OtEE8ZIXxe 066a2sipfiPvATy/8cxo74GT1fZeYjS5UEMRC2kar8I1cVFVyakmvjMLfkX17xZu0Cax fw0K1+zIqmmRPSxJBzL5aj/7XZhWzvZ9HH/SovqhtocHUepiRzxW2zNBqL6FqS6sjCik Jp0Q== X-Gm-Message-State: APjAAAWw1LIXSsAU44O7pDOiWrNQXzKtZT/zi5V6rwpkcaf2I693jqwb xS5jPCiT1zpgtriInFWFOGZa5CAN X-Google-Smtp-Source: APXvYqzAUZ0gl2orHg12VnLaDq2p1R/Hp77SByctpkrB72AHgXUY1gM6ymhbOpXdDjngko5BD50rfQ== X-Received: by 2002:a65:5302:: with SMTP id m2mr20355408pgq.266.1560264958714; Tue, 11 Jun 2019 07:55:58 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:8609:: with SMTP id f9ls4897878plo.7.gmail; Tue, 11 Jun 2019 07:55:58 -0700 (PDT) X-Received: by 2002:a17:902:9004:: with SMTP id a4mr4407157plp.109.1560264958333; Tue, 11 Jun 2019 07:55:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560264958; cv=none; d=google.com; s=arc-20160816; b=qw5IlG36DoKk6JHcpeQ266XTNEaqk3sx1A0mZrrBR9KMEQQ8eEqjRx8C2MBs9rTera 6kclPdJmLepTWujaIzEPzjWGBHLKFjz+dAvQ5cQ4SOoULGc5KsxwUic7PyBiZhkjO4ok iDG7MMkcfDONy460xHwAPIZ8q+l9paTGEO4HE8JA2a5T9DgVJZkkCM3ZiKCNxANLrMmS C+JeYBqXFK5tORUXg6858JsOgfoEsZGS39iFuN51BVvppvTQh0mJzKhWMJ5m4m0xJRIQ r3CM4yxSNiPyJZ881pfRiDziug97LYeoETvKN887VCyGqR6e9cxGNWmdd+OJW8YSszq1 G4UQ== 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=C3pvVFe0j7lJkswUINInjiKgniwvXCUL5KajZ1QFEME=; b=U0YsFopay9ugPCQtHXGijSqbHl1pGzSSpPnGXZKPz4O1iqeiAJN1SRVXnug4GzxNgu b0e7EZKzw+XRDrOnTitLGInQf+hBhiTFKZ12pDKejQQAhSg46XMKVfbwp8jQ4Bcdo31U E5yyqZmoHx1YT+dqOZ3GbZ0W8S4c4RHpc9gVRDZJzm1/CpsMlNVLG5A15dz6LfQyVlAy KhL45o1IZPnWN3m6LrdbovD6T8WvxXItENUymDbNne0JL/uv84Z1v4YFQtvD3+xgqeH+ xIIPsIrx6hfZquNcEnRh1KiEMAWRPTopbfPXIP6BiBJ/pZAIk6Ap9MWIazKxSuYPaeE6 /18A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Wug8ICFZ; 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 ce3sor3187521pjb.12.2019.06.11.07.55.58 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Tue, 11 Jun 2019 07:55:58 -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:2244:: with SMTP id c62mr11228065pje.29.1560264957974; Tue, 11 Jun 2019 07:55:57 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.18]) by smtp.gmail.com with ESMTPSA id e9sm16206208pfn.154.2019.06.11.07.55.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Jun 2019 07:55:57 -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 62/92] ram: rk3399: Avoid two channel ZQ Cal Start at the same time Date: Tue, 11 Jun 2019 20:21:05 +0530 Message-Id: <20190611145135.21399-63-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=Wug8ICFZ; 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 3d26cede77..1abeee7198 100644 --- a/drivers/ram/rockchip/sdram_rk3399.c +++ b/drivers/ram/rockchip/sdram_rk3399.c @@ -555,6 +555,20 @@ static int pctl_cfg(struct dram_info *dram, const struct chan_info *chan, sizeof(struct rk3399_ddr_pctl_regs) - 4); writel(params_ctl[0], &denali_ctl[0]); + /* + * two channel init at the same time, then ZQ Cal Start + * at the same time, it will use the same RZQ, but cannot + * start at the same time. + * + * So, increase tINIT3 for channel 1, will avoid two + * channel ZQ Cal Start at the same time + */ + if (sdram_params->base.dramtype == LPDDR4 && channel == 1) { + tmp = ((sdram_params->base.ddr_freq * MHz + 999) / 1000); + tmp1 = readl(&denali_ctl[14]); + writel(tmp + tmp1, &denali_ctl[14]); + } + copy_to_reg(denali_pi, &sdram_params->pi_regs.denali_pi[0], sizeof(struct rk3399_ddr_pi_regs));