Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7021189ybi; Wed, 5 Jun 2019 09:56:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLUs+3/+jjbeOME1sblGWJxWdgGUM59ZIXBCA/Q14HXXTSzQe3o+8qy0tKuT9cDeaKW6kM X-Received: by 2002:a17:90a:a608:: with SMTP id c8mr43992785pjq.37.1559753763583; Wed, 05 Jun 2019 09:56:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559753763; cv=none; d=google.com; s=arc-20160816; b=rLsVRxJcI2NyP27LKyFEjQ1hQI1k/H0GRU0K+aLENAJDI3aW2N+pzEBJ7Jd0+Aj2GL 8PLWwIcxjUg6jumL9nbCv34Rb50ziz7mNp8/CsVT/V54zcgitF2ZSdvF17oM1gsGwo1g bd7S8kPegDiTMUHhudSCb62J+A4I2/0ITJuTWjpuM4AfScqb9344ZxilG43zfEWnoABo CiWrZVvJ3h20xaM3gNMSK6pWDWYbBEyrw5lMNXPLG7K/3b8dU6JB8geAAVYEh8vU7DfF 1dhNlXZ2YsX0Xs+CviuE89mrRZ+hDdvJKkkE9OsqSyEhmfCXAyZPhrEfjvseASe9WSXu h3cg== 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=XyFjfR/cYrCTH0M0iV/FnYwEiiDKK2JrkvAOocEhoto=; b=w+uOvF77EBd+pGJKuCxij896JkwCTkJjxpNE+AQaXD5G94lD61AI1pDwBNWJnAWKJT GT5FAWjKuXmLroGWpJVD/HxkmTVaPniISY1HgFCLricLMY22y711b4AW/xa+rQCzxiU1 bwPpVnnaM5Fcj6OMAQE51qSdY7kqMJLPSQvMvErwZt6mZAByagHG7LgM5bR96FSbmTKj TJjrMCC8rOpwzyl/UZ6SzHrrbdehJZ9fd3PtILgrxdwZZJIzGCBvAcTwgCPJ8LswV8eb f14sdJHt07z77Ihhfg7kgQJDlK9+lEVpCi2AUJpOfuJVJAwwIopA3IBDw2+S4fdAZD3m 3Fdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=ij9ydd0q; 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 q2si28065035pll.76.2019.06.05.09.55.47; Wed, 05 Jun 2019 09:56:03 -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=ij9ydd0q; 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 S1728846AbfFEQye (ORCPT + 99 others); Wed, 5 Jun 2019 12:54:34 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:32891 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728818AbfFEQyc (ORCPT ); Wed, 5 Jun 2019 12:54:32 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190605165431euoutp0103d11df6be3ec82c9eaece6784bd8f7a~lW7M__hZE3068430684euoutp01C for ; Wed, 5 Jun 2019 16:54:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190605165431euoutp0103d11df6be3ec82c9eaece6784bd8f7a~lW7M__hZE3068430684euoutp01C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1559753671; bh=XyFjfR/cYrCTH0M0iV/FnYwEiiDKK2JrkvAOocEhoto=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ij9ydd0qVzUnA9Ek+gtYZMA1yelJGFZS8tI46bKppto8Hh4KoJxG4xNuyBbBI9AbG 1McVhaul9Mtwhzu5Q2lCY3eQf1TXs0dq4UrcFOE5CcfSjB2EJM9VJtpCMQd7ehQ9s8 quBsTsf03hZnX35+mLAIQsdmAmH1fvG5gX3l8HOQ= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190605165430eucas1p1bb87fda58806139834a725083dcb83c6~lW7MB787E0347003470eucas1p1X; Wed, 5 Jun 2019 16:54:30 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 59.A9.04298.6C3F7FC5; Wed, 5 Jun 2019 17:54:30 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190605165429eucas1p224e803c851c9fd28e3d8737392a8a5c3~lW7LOTs910084800848eucas1p2T; Wed, 5 Jun 2019 16:54:29 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190605165429eusmtrp2781ed2becf57084265aed84a55b7bdfb~lW7K_vRo92868028680eusmtrp2K; Wed, 5 Jun 2019 16:54:29 +0000 (GMT) X-AuditID: cbfec7f2-f13ff700000010ca-06-5cf7f3c6fb52 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id A3.B2.04146.5C3F7FC5; Wed, 5 Jun 2019 17:54:29 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190605165428eusmtip117ed547712691d0faf5bfeff28c39383~lW7KEMtIF0289902899eusmtip1Q; Wed, 5 Jun 2019 16:54:28 +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 Cc: 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, willy.mh.wolff.ml@gmail.com, Lukasz Luba Subject: [PATCH v8 03/13] clk: samsung: add BPLL rate table for Exynos 5422 SoC Date: Wed, 5 Jun 2019 18:54:00 +0200 Message-Id: <20190605165410.14606-4-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190605165410.14606-1-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSa0gUURTHuzszO6O1Mq2aB5MeG0EPfJXBDaOSxCZBKkKEknTLQSVXbUdN 0w9rhpVlG0lZpqQYKGvis8VHaLniSqVWmlYqlRuEpmbuqD1Mc5utvv3Ouf/H5XIZQmmi3JnY +CReG6+OU8kdSWPH927PDutcuM90JYFrblVReED8ROG77d0UrvhqQTjvSZEMP7uswXrLZwL3 9FTTuOvcOI3f6jxwb1OhHFtz2xG+1dMiw5XtwzQezCyXY9P4BQq39gXjwZ9OeLZzBO115mZn rpPcHd0LkmssGKa5WsMlOZebNSnnHk8+lHFX6w2Iq3uazllr1xxyOOq4K4qPi03htd67Ix1j JusekIktbGr/jSFKh/ROOciBAdYPMosGUQ5yZJRsOYKZ5mZaGkQEJks7JQ1WBD39euKv5Y65 za4qQ9BsnSb+WVrm3yyFMYyc9YIGw2mbwYVNh6GB1j8agh2XQdePb6RN48weBnEq2KYh2Y1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MERr4FjAyrGEVSS4tz03OLDfWKE3OLS/PS9ZLzczcxAmNp 27Gfm3cwXtoYfIhRgINRiYdXYuP3GCHWxLLiytxDjBIczEoivIm3v8QI8aYkVlalFuXHF5Xm pBYfYjQFOmois5Rocj4wzvNK4g1NDc0tLA3Njc2NzSyUxHk7BA7GCAmkJ5akZqemFqQWwfQx cXBKNTDy3zlwPz7kVUrq1pqFz62qWQQtevm4XGwZyr+sqww/qnUm9eDmo8aFkrF+ezyWxnyr dxE4wrVLpE6DxfF2+uWTXbKTJTaH7G0stpO59iDJu/Fhho7tilXZmp6TFFuleWLuyMYkzt+/ 95/7pLAZW/co7rjgqaPjYLbF9ab4gzdCYccWGl7TFVViKc5INNRiLipOBAC5c6XEuwIAAA== X-CMS-MailID: 20190605165429eucas1p224e803c851c9fd28e3d8737392a8a5c3 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190605165429eucas1p224e803c851c9fd28e3d8737392a8a5c3 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190605165429eucas1p224e803c851c9fd28e3d8737392a8a5c3 References: <20190605165410.14606-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 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 eecbfcc6b3cf..7ba6bf6700b2 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