Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4935145imu; Tue, 29 Jan 2019 09:57:12 -0800 (PST) X-Google-Smtp-Source: ALg8bN6U82LLCFz5y3XRCPkUrucRUH6/sQadd+RqjhBAqYGBVlTw/1PCQMyKJZPIBJ3cTp4sLAIu X-Received: by 2002:a63:d10:: with SMTP id c16mr24668401pgl.382.1548784632656; Tue, 29 Jan 2019 09:57:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548784632; cv=none; d=google.com; s=arc-20160816; b=FYpGD3lc3UrTRr7z80jRzULv1wizl0DFqQ83/Tv8ry37Jxfs71Xw3zb5iOoOOez6eJ mkfWvvd+pVZbHsR5zH25KsmyOXUNMBY89oxV+xfiUntCdYzrZgadpg3WBqNK/nrewPnx JXq/7wqtXdKWw044qyZYj971onHJ2J9ymm2xAbkCVwz+EwqWSmWJ7JVCWDvraNo5DvhJ ILItQqCjQF6+p/NQ+OfYxdHb7VLaHkBF1IjG17htrpguaU9PjNNRD/XWuMOsvkn9d9LN lCfFPta8HO2cj6dS7gvMeMz3mtE7B3i7vrFEJC0qsKZevGUl6y4zD0S+/9RW3flPcL1k iXcg== 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=j8iUHxyYkZqb7Uhj9RPxRnOnvo0bo3ayFm6SF05VDFDumMVTANKfAyzLmv16tdIO0B isUeJ4zvQTckY9AFB5S/0w1ylWAIo5L153Y+ApiXIsKiH5zSRvNoh+m24eJJhowjnGc2 kGTB2Y3tue8sPp2HKCy1hNfGT7DSdewVgdZF527M+08XKsxOszvJqaQQ2B7e2+q9OdF8 sadD8OHkcjEgFQNmOVoAYBbw+EfKEuRiJ7rezzR5r7BJpGQbXjsJMpQNsCigD56HPwlB voZ7MjmtfaZj7g+JBB86rHEC8iQnT+CSsCYlm9sVwG3uCzLHwv5XxjQX4kyUaqIRwdzJ 43rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=bEzq6B3D; 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 b10si35510043plz.233.2019.01.29.09.56.56; Tue, 29 Jan 2019 09:57:12 -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=bEzq6B3D; 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 S1729102AbfA2R4N (ORCPT + 99 others); Tue, 29 Jan 2019 12:56:13 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:45679 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727492AbfA2Rz1 (ORCPT ); Tue, 29 Jan 2019 12:55:27 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190129175526euoutp012a41f5856b58cc0cd5139874dc49c58e~_Y1I5j8DI0797207972euoutp01C for ; Tue, 29 Jan 2019 17:55:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190129175526euoutp012a41f5856b58cc0cd5139874dc49c58e~_Y1I5j8DI0797207972euoutp01C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1548784526; bh=gAM5TRktEeGRdR7DfQ1QhDkjvwroBHzBH5M4lKDBh1Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bEzq6B3DmqMsZEnRRl7lguHVZlTesLuoR6aefyjzNzBPXHcqtAWkR+JVMQuw3N7Zs A4tscuZqM36hiiyC5XlfAvlL+WXe4rCgpZZFJVV03DG5tlpQfy6AiDdYL+8zxiYcY2 3WxycELe37dPBcrMaRbw6Bju4rK4BQRjFpIjlnQM= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190129175525eucas1p289d4501ce42aa2c37b6a93ec07a0d52c~_Y1IGlY7s2879728797eucas1p2p; Tue, 29 Jan 2019 17:55:25 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 99.44.04806.D83905C5; Tue, 29 Jan 2019 17:55:25 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190129175524eucas1p1ead98a852f002461984b9b99c5b5b7e4~_Y1HRQhfr2162921629eucas1p1s; Tue, 29 Jan 2019 17:55:24 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190129175524eusmtrp28592a47ced23435297f3449e94bf5e52~_Y1HCT9Y60424104241eusmtrp2Y; Tue, 29 Jan 2019 17:55:24 +0000 (GMT) X-AuditID: cbfec7f5-34dff700000012c6-2b-5c50938db44e Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id F5.EE.04128.C83905C5; Tue, 29 Jan 2019 17:55:24 +0000 (GMT) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190129175523eusmtip198cda2cb230269cc0b4d2d7659406751~_Y1GUpRX52139021390eusmtip1G; Tue, 29 Jan 2019 17:55:23 +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, Lukasz Luba , Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 3/8] clk: samsung: add BPLL rate table for Exynos 5422 SoC Date: Tue, 29 Jan 2019 18:55:09 +0100 Message-Id: <1548784514-26649-4-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548784514-26649-1-git-send-email-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0VSa0hTYRj22zlnOw6Xx2n5eUlhFF7AqUzoA0UKioZCDu2XCXbKg4pu2o6X vEAqlbo0rShNRUsDZWTqElve8r4snIrLWxallJJahkqEpjnPrH/P91ze5+XlIzHxM8KZjFel MGoVnSjhC/G2od9Gn+J7iii/6jIJailvItDUxiKBagaMBCpZWMbQ6GizAI3krQjQbI4r0i1M Euhn0UcCTbRX8dF68QBA5aPdPNQ48EGAxt+cQe9zG/iofyWfQDuTLfhJO/mP6RsCuU5byJc/ f3JN3vu9kye/3aoF8nWdm4IfKQyKYRLj0xi1b/BFYVxXxzaerBdfbW6/LsgBa7YaYE1CKgAO P+zCNUBIiqkGAA26aoJ7bAD4or/SoqwDuLR4Bz+IDOY3W4R6AKcrNfi/SN/jDb4GkCSfkkK9 9oo54EBlwbmpV5jZg1E5GNTnle5PsqfC4LvdzX0/Th2Hf36lm2kRFQIHvxRjXJkbnDEW7mNr KhQW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HGAU4GJV4eBmCA2KEWBPL iitzDzFKcDArifAa/vaPEeJNSaysSi3Kjy8qzUktPsRoCnTTRGYp0eR8YNTmlcQbmhqaW1ga mhubG5tZKInznjeojBISSE8sSc1OTS1ILYLpY+LglGpg1FH0nmIdd2fm2XhelfPbH3m/2v9h l0RoXZPE5KX3BK8+KHCNVYk9utzg4p2vwQmv3mmGqqv/aZl448fBRYH2vJnf93N+rj386eXR hdnfbVzuc1cvWGyg9eCLZWV5jKPyw/KvofWLlhimVewxbjG5sM0p1SL2Ur+YeO28pJ2zAmbd lFhewC8bocRSnJFoqMVcVJwIAPbT0eSiAgAA X-CMS-MailID: 20190129175524eucas1p1ead98a852f002461984b9b99c5b5b7e4 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190129175524eucas1p1ead98a852f002461984b9b99c5b5b7e4 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190129175524eucas1p1ead98a852f002461984b9b99c5b5b7e4 References: <1548784514-26649-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