Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp759055ybi; Fri, 14 Jun 2019 02:55:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxM8N8c/D9JpZJbQS8yWHIyYVGdsZCmrUu2aeaLBuuJgTaZxPteI+z4b4VObF4odJBXmtl8 X-Received: by 2002:a17:90a:a10f:: with SMTP id s15mr10397728pjp.30.1560506120726; Fri, 14 Jun 2019 02:55:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560506120; cv=none; d=google.com; s=arc-20160816; b=oyKt6MGnbQpVg8ena9IOpqTk3eungIIM61g6T/tbjYfirooBOyZllaXSAy8GTpFlNP Btz1JwpDb2vQtrfecoB4IK3dD5DVaP53Ia+br4+ubrN9+lB+xMFzM+SMViFEhOxSV3SO SLK93racJ1Ue/mV58VZOX8jN49AQilYVYs93v9XqwQL01ntk8QZ2CBOZw6KlEGZrGv9Y TxL9NWY7STdZhbRmD2l8iyu1c/8ySfdpQuH3b28x02qYiMCn1fQD3rn46qyCPIAUP5YD nPXRyX4clGTp12LbE7F7qcrku1x/9nicSzFn+tebvCcwl4F78iPkb6SCUlcYd+FhC2BA qi8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=3H94DwFFG3R37/yu4OYC3ESOKXTLkDswHp/nkojvINE=; b=YCC7wYKn7UWdFidn6J/FRd8eVgXg1xKm+BP0PDuGR0rx/gPnDnTmQXlY9nPA8oe6r5 C4V6CSGQWeyh3NAm45STeCsTc3XkIwpM9wVbj+gvDNkJakMEMlCCXXmhUnWalQt6VkD1 A0luQiYEV+S9tnn5QkfF5j0+EwkfdiyU00yktIsC1DwISEnZsYU4BgYeCv7KTx7Zr+Cn fveOEw9SpSHawIKSDiZ5Er2jSy2iqNNr8TRa/7IpLb7Q2UkT2H4BdkR2etKTKMay9/QU XWiJ4s/liEBjXUXt0Ari/T8s9C+EvE9nOzS+7g3Uq0kpwgunGshRmHUSyI9zIGIDmwIL j30Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Y0ErruPK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t18si1977239pfh.29.2019.06.14.02.55.04; Fri, 14 Jun 2019 02:55:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Y0ErruPK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727575AbfFNJyZ (ORCPT + 99 others); Fri, 14 Jun 2019 05:54:25 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:54512 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727290AbfFNJx0 (ORCPT ); Fri, 14 Jun 2019 05:53:26 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190614095325euoutp02d2988950a12c5f19b678299db4b8ad77~oB-GYizaK1768017680euoutp02G for ; Fri, 14 Jun 2019 09:53:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190614095325euoutp02d2988950a12c5f19b678299db4b8ad77~oB-GYizaK1768017680euoutp02G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1560506005; bh=3H94DwFFG3R37/yu4OYC3ESOKXTLkDswHp/nkojvINE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y0ErruPK/0zY/0G95uBIcx12PNzMgv27m2YL5aDCMOMpLn5+Apcd+OoSE6br7Dswk LFwzo0wbsYbpn7qN9WBe58ntn7f3mcwk4ubnZTJ7nJgJsza2O+WV8WRt7XDdomtpyu rWtn5C787cwBlzDCvsahGsTWwP56lqwfr6AGQjRM= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190614095323eucas1p2877af9f0d86c307e99f8f608cdefecf5~oB-FVuVhO0491904919eucas1p2z; Fri, 14 Jun 2019 09:53:23 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id F6.A5.04298.39E630D5; Fri, 14 Jun 2019 10:53:23 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190614095323eucas1p1312dd7bcc5a25cbb3af28ed0f52dc7a6~oB-Eb0Dy01136111361eucas1p1P; Fri, 14 Jun 2019 09:53:23 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190614095322eusmtrp2027306f4afec6a1e88d57f67596639b3~oB-EMLNI32148621486eusmtrp20; Fri, 14 Jun 2019 09:53:22 +0000 (GMT) X-AuditID: cbfec7f2-f2dff700000010ca-29-5d036e93987c Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id ED.30.04146.29E630D5; Fri, 14 Jun 2019 10:53:22 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190614095321eusmtip2e7b6374b4493d1a4e3d17450e10c6cb5~oB-DRv6gO2247122471eusmtip2V; Fri, 14 Jun 2019 09:53:21 +0000 (GMT) From: Lukasz Luba To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org Cc: mturquette@baylibre.com, sboyd@kernel.org, b.zolnierkie@samsung.com, krzk@kernel.org, kgene@kernel.org, cw00.choi@samsung.com, kyungmin.park@samsung.com, m.szyprowski@samsung.com, s.nawrocki@samsung.com, myungjoo.ham@samsung.com, keescook@chromium.org, tony@atomide.com, jroedel@suse.de, treding@nvidia.com, digetx@gmail.com, gregkh@linuxfoundation.org, willy.mh.wolff.ml@gmail.com, Lukasz Luba Subject: [PATCH v10 03/13] clk: samsung: add BPLL rate table for Exynos 5422 SoC Date: Fri, 14 Jun 2019 11:52:59 +0200 Message-Id: <20190614095309.24100-4-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190614095309.24100-1-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSf0zMYRzHe+77s+PydbV6JLKLoVEasweNGm1f/EP+sKFx9N2J7qr7Vn5k c7Tq0IkaWnWq2apdUZ2WLlGuCKmUUiS7OjuNZLpwMtL5Xvz3ej6f949nzx4ak1oIXzpGlcip VfJYGSnGax/96FiZo8KiVr1LXYqqcysJ1DfxnkCFLR0EKv9iBSj1RiWJcp7qRejZBSXKsn7E UGdnFYXaz45S6LXGD33JfEugF/UFJLLrWgDK7bwvQjdbBinU9TQCDZwpI1HzaAaBfr+sxlFj zzY08NMDfXs8DMJ82G9fs3H2c38axeZrunDWlDdIsUbDOZJt1FdQrC51jGQfjDWI2Is1BsDe bkth7caFO2btEYdGc7ExyZw6eOMB8eGSBi0e/5k5XlHXLtKAux7ngTsNmTXwyt0h6jwQ01Km DEBTdhouHCYANIw3kk6VlLEDWNy3YMYx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d8I5HBwsAnoSexYVQgSFxGYwyjxs2sbI4jDLHCWWWL3ijdMIN3CAgES R/atZwWxWQRUJZ5s+8EMYvMK2EtMvn2SEWKDvMTqDQfA4pwCDhJH578BWyAEVPN9Bv8ERr4F jAyrGEVSS4tz03OLDfWKE3OLS/PS9ZLzczcxAmNw27Gfm3cwXtoYfIhRgINRiYf3gBVTrBBr YllxZe4hRgkOZiUR3nnWzLFCvCmJlVWpRfnxRaU5qcWHGE2BbprILCWanA9MD3kl8YamhuYW lobmxubGZhZK4rwdAgdjhATSE0tSs1NTC1KLYPqYODilGhjn991ZwuLT4FEZLmGbfDBk8+qF 7Fvczm7dvG2Kdod9uQT7tCqGZbadm789rLEI4rrs23jzyyxXU14W01/sEyV2WhxPKfvwUf79 lDrPmXqrdcVSt4YF1389+k5O6pD2s/cZVxzkJkw4N83pkWif0ZkmEQZJ40qPyOZSpc7jAprP 7kj5zDWdZajEUpyRaKjFXFScCACc0kpD1wIAAA== X-CMS-MailID: 20190614095323eucas1p1312dd7bcc5a25cbb3af28ed0f52dc7a6 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190614095323eucas1p1312dd7bcc5a25cbb3af28ed0f52dc7a6 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190614095323eucas1p1312dd7bcc5a25cbb3af28ed0f52dc7a6 References: <20190614095309.24100-1-l.luba@partner.samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add new table rate for BPLL for Exynos5422 SoC supporting Dynamic Memory Controller frequencies for driver's DRAM timings. Acked-by: Chanwoo Choi Acked-by: Krzysztof Kozlowski Signed-off-by: Lukasz Luba --- drivers/clk/samsung/clk-exynos5420.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/clk/samsung/clk-exynos5420.c b/drivers/clk/samsung/clk-exynos5420.c index 514e16310227..16ad498e3f3f 100644 --- a/drivers/clk/samsung/clk-exynos5420.c +++ b/drivers/clk/samsung/clk-exynos5420.c @@ -1334,6 +1334,17 @@ static const struct samsung_pll_rate_table exynos5420_pll2550x_24mhz_tbl[] __ini PLL_35XX_RATE(24 * MHZ, 200000000, 200, 3, 3), }; +static const struct samsung_pll_rate_table exynos5422_bpll_rate_table[] = { + PLL_35XX_RATE(24 * MHZ, 825000000, 275, 4, 1), + PLL_35XX_RATE(24 * MHZ, 728000000, 182, 3, 1), + PLL_35XX_RATE(24 * MHZ, 633000000, 211, 4, 1), + PLL_35XX_RATE(24 * MHZ, 543000000, 181, 2, 2), + PLL_35XX_RATE(24 * MHZ, 413000000, 413, 6, 2), + PLL_35XX_RATE(24 * MHZ, 275000000, 275, 3, 3), + PLL_35XX_RATE(24 * MHZ, 206000000, 206, 3, 3), + PLL_35XX_RATE(24 * MHZ, 165000000, 110, 2, 3), +}; + static const struct samsung_pll_rate_table exynos5420_epll_24mhz_tbl[] = { PLL_36XX_RATE(24 * MHZ, 600000000U, 100, 2, 1, 0), PLL_36XX_RATE(24 * MHZ, 400000000U, 200, 3, 2, 0), @@ -1476,9 +1487,13 @@ static void __init exynos5x_clk_init(struct device_node *np, exynos5x_plls[apll].rate_table = exynos5420_pll2550x_24mhz_tbl; exynos5x_plls[epll].rate_table = exynos5420_epll_24mhz_tbl; exynos5x_plls[kpll].rate_table = exynos5420_pll2550x_24mhz_tbl; - exynos5x_plls[bpll].rate_table = exynos5420_pll2550x_24mhz_tbl; } + if (soc == EXYNOS5420) + exynos5x_plls[bpll].rate_table = exynos5420_pll2550x_24mhz_tbl; + else + exynos5x_plls[bpll].rate_table = exynos5422_bpll_rate_table; + samsung_clk_register_pll(ctx, exynos5x_plls, ARRAY_SIZE(exynos5x_plls), reg_base); samsung_clk_register_fixed_rate(ctx, exynos5x_fixed_rate_clks, -- 2.17.1