Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3820503imu; Mon, 28 Jan 2019 11:23:31 -0800 (PST) X-Google-Smtp-Source: ALg8bN5AsCT5BWPIj9yJ5WNZTHLD5t0uXjcefU4H/gV6gMS8KeLbOeBDnTsZgoYEOAFtgXv1lhet X-Received: by 2002:a17:902:a58c:: with SMTP id az12mr16850156plb.299.1548703410945; Mon, 28 Jan 2019 11:23:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548703410; cv=none; d=google.com; s=arc-20160816; b=xAX7wpWrIAoq278LEqEJCF99757Axms1gI/lhGPtgk1TvQmz7awYDHVQyM2dtX+RJr M2pZjYwtxufSt00wH+sKv9fRtVtIAhZs/BV4ojN1JykeDR4/E1UAeEJNEs96sluiBMMD BcocwbKqXFszM0IM33thVkZC5Kb+sq/ypHyCqPoCS/JWhl2VL6Q5kBfuANw7/5kvna6R IrcsxAXe5yBTTIVYRmFKmER786FlK9kNuNGIfa8RdycaLnFQpjrhMhYHBWIYzKiQNpRD IPjVDl9c8gI1AIQ10HIpYQfhco3zL/qBDQyyTtqJk66m0HCkch+kaAV53E9snu7dLPoE 1pmQ== 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=gAM5TRktEeGRdR7DfQ1QhDkjvwroBHzBH5M4lKDBh1Q=; b=D19h+RqFtXO++p+6BJMuxX5kGgAlx7QibJwlcezfN/iZn/L8uw6BjJZ+bKMQ5qnyvV GTgpDpo50LHzL38aXG0K7cU23OOhVS8KwWxrcPt2sVe8LxeBLl7ZMMoSrN49ofv9/tt1 aKnU7WYk03iGJbLEMYvjlkmeX95ArkHtCIsVgdeGW4165mMqX4kTGnQMoHjTFQXN/jaj UMPkyIjPeF4jdEKx8+3T8Y7RWTj0Rd4SVoqkV+3fT1kyW5FqZBL+dcalbc1UeoPwDKTN L90dhsvGFnSTtGTf/S/BHBGESfxSfmz4Sn+Kp4IvYsQGhnhbY3IVZMSUM2R0ai1hNGbe 21eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="E/hMusRn"; 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 l61si21317233plb.6.2019.01.28.11.23.15; Mon, 28 Jan 2019 11:23:30 -0800 (PST) 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="E/hMusRn"; 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 S1728088AbfA1TWe (ORCPT + 99 others); Mon, 28 Jan 2019 14:22:34 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:58484 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727000AbfA1TVz (ORCPT ); Mon, 28 Jan 2019 14:21:55 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190128192154euoutp01c81b9f28be00acb17b1d57313500a609~_GXV4gJKk2889728897euoutp01K for ; Mon, 28 Jan 2019 19:21:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190128192154euoutp01c81b9f28be00acb17b1d57313500a609~_GXV4gJKk2889728897euoutp01K DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1548703314; bh=gAM5TRktEeGRdR7DfQ1QhDkjvwroBHzBH5M4lKDBh1Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E/hMusRn6d63qIyeL+c78l1V1kk4tS0OSuIiejZnpUIuRGcDdArf1bisMHAjY4w0m 1qOpQAq5cLqRXL4nGY3hDW4tIXuXMRFclXOW4DANggtCdEjp0TBuorbqEBkKk6Ue00 TlFaeoxTjTgUorTBfQEaqbb5MmhFQ++D6c7/jFxM= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190128192153eucas1p1474757b8d86fd1b0ad21385942c04a9d~_GXVHWmEb0389603896eucas1p1O; Mon, 28 Jan 2019 19:21:53 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 3A.0F.04441.0565F4C5; Mon, 28 Jan 2019 19:21:53 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190128192152eucas1p118c23cce7c1f6d9a961cba8ae8304318~_GXUNph8e1734117341eucas1p1k; Mon, 28 Jan 2019 19:21:52 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190128192152eusmtrp1c36f8112cd44652755dddf07f4d4230e~_GXT_cToi2976329763eusmtrp1M; Mon, 28 Jan 2019 19:21:52 +0000 (GMT) X-AuditID: cbfec7f2-5c9ff70000001159-9d-5c4f565019b8 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 99.F8.04284.0565F4C5; Mon, 28 Jan 2019 19:21:52 +0000 (GMT) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190128192151eusmtip1687df5aacacd72b7b4eb354b6d839eae~_GXTV7cV50041400414eusmtip1P; Mon, 28 Jan 2019 19:21:51 +0000 (GMT) From: Lukasz Luba To: devicetree@vger.kernel.org Cc: b.zolnierkie@samsung.com, myungjoo.ham@samsung.com, krzk@kernel.org, Lukasz Luba , Sylwester Nawrocki , Chanwoo Choi , Michael Turquette , Stephen Boyd , Kukjin Kim , linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/8] clk: samsung: add BPLL rate table for Exynos 5422 SoC Date: Mon, 28 Jan 2019 20:21:34 +0100 Message-Id: <1548703299-15806-4-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548703299-15806-1-git-send-email-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprPKsWRmVeSWpSXmKPExsWy7djP87qBYf4xBgtWMFpsnLGe1eL6l+es FvOPnGO16H/8mtni/PkN7Ba3GmQsNj2+xmrxseceq8XlXXPYLGac38dkcfGUq8XtxhVsFoff tLNa/Lu2kcWBz+P9jVZ2j02rOtk8Ni+p9zj4bg+TR9+WVYwenzfJBbBFcdmkpOZklqUW6dsl cGXs3f2HpWCHUMWGXS3sDYwf+LsYOTkkBEwkJn2dydLFyMUhJLCCUWLdqSfMEM4XRontj5cy QTifGSU2bOkAynCAtcz+IQURX84osa/3BCtcx6uuJUwgRWwCehI7VhWCrBARkJO4+fUuG0gN s8B+Zon9syexgCSEBbwk7k17xghiswioSjQcegEW5wWKr29dyQ5xH1DzuU5mEJtTwFvidN8C RpBBEgLL2CXetv6AKnKRWH3pCRuELSzx6vgWqLiMxOnJPSwQdrHE2Y5VUDU1Eu0nd0DVWEsc Pn6RFeRoZgFNifW79CHCjhKbp69hg3iYT+LGW0GQMDOQOWnbdGg48Ep0tAlBVGtIbOm5wARh i0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ampBahFMHxMHp1QD48TaE3bXLh7gEDOZ1P809fatqweZaqJrEz5qn1rUo3xtW+1h4cee uStbTCfZSQrVbN6Q/l7vgx1fgbu645VXtVYW7Bpn2Df0eqbLtR4oMBdp2CxY7H+QMfVp2vw0 m5cuZyQ6LCI5T5w02X5dxivq0439U7wEZus//aV78/qVxIc/HdbHqDAsVWIpzkg01GIuKk4E AAxFRQmTAgAA X-CMS-MailID: 20190128192152eucas1p118c23cce7c1f6d9a961cba8ae8304318 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190128192152eucas1p118c23cce7c1f6d9a961cba8ae8304318 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190128192152eucas1p118c23cce7c1f6d9a961cba8ae8304318 References: <1548703299-15806-1-git-send-email-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. CC: Sylwester Nawrocki CC: Chanwoo Choi CC: Michael Turquette CC: Stephen Boyd CC: Kukjin Kim CC: Krzysztof Kozlowski CC: linux-samsung-soc@vger.kernel.org CC: linux-clk@vger.kernel.org CC: linux-arm-kernel@lists.infradead.org CC: linux-kernel@vger.kernel.org Signed-off-by: Lukasz Luba --- drivers/clk/samsung/clk-exynos5420.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/drivers/clk/samsung/clk-exynos5420.c b/drivers/clk/samsung/clk-exynos5420.c index 3e87421..8bf9579 100644 --- a/drivers/clk/samsung/clk-exynos5420.c +++ b/drivers/clk/samsung/clk-exynos5420.c @@ -1325,6 +1325,19 @@ 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, 933000000, 311, 4, 1), + 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), + PLL_35XX_RATE(24 * MHZ, 138000000, 184, 2, 4), +}; + 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), @@ -1467,7 +1480,7 @@ 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; + exynos5x_plls[bpll].rate_table = exynos5422_bpll_rate_table; } samsung_clk_register_pll(ctx, exynos5x_plls, ARRAY_SIZE(exynos5x_plls), -- 2.7.4