Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2577380yba; Mon, 6 May 2019 08:14:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqygWL5HsEY+SwQaSd93EgJfZ3atebXYQeM2nzLwMrBg2I9aOef7G/+sh4WCg646OmAlBOZJ X-Received: by 2002:a17:902:e393:: with SMTP id ch19mr8490347plb.300.1557155689912; Mon, 06 May 2019 08:14:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557155689; cv=none; d=google.com; s=arc-20160816; b=kDKmXvVIBScaBuTe4CIBwy9Ua7283cUnuOWPwx8Qz9teJdVA/jxyzabJjJZDHGZo+V sILp8YxqzOWqAftsYNgv2uULZn5gXgm5ubdkwR8uxMspo5Gt+Op74u5cGzdHpNbT3bVF 048KZmhfnwU3S38ZtRkJTZyhLaGUO/1JUDCJFyqlLjMRuRPhDRtntv/xNiswKdF1eCqh Dj8SpwCW2y+bF9gTGKoU1RNrvtJ6irl+Q5QBbCnNMmWhPaiq9dmeTz5RFUuHQ+vKmm7c FTkQdlg8TF6V4lpBq3Mhz7dr+4TnpoNCB6alTQjR/Q8QciTus+w+uB+xNoLzjqR6VtZ/ IKdQ== 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=hPNvzPLxEElWXeyVcdLNco7UTtzNFFZJYf9Hjs/r5uY=; b=ch3cIrzceEB4JJ3ynoRJswvchPKzgdZw8fPxybt0EYCIF+V8KYdp6cjbs778JJrou5 L7Zd0lR4hNzVZPwewT0VBFU3Tj9a5xJThXOhZL3+7bIFGwDBy2dl+nVF0xZ7DBbbk4hI IyM3M9jTRq2Jfa6yBcp++XF29bJs6Ky9R8saXXrK+vJrbV/Zx0Hp5fDIeAK+8uBctAUX tsx1Dsj0E3fAbWHDYoRHEAC2i815fO2vh76WhBI/zcWooaL/DQh2/IiHHBZohG7k0DvD jJ6q1usi84r1g5iplm2TqvAn4oLk2K1u3APsvm05l7q9fXQBs7P4rwJlKMcrVl1kqObD 6s3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=U26zmtyp; 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 p85si15359149pfi.27.2019.05.06.08.14.29; Mon, 06 May 2019 08:14:49 -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=U26zmtyp; 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 S1726787AbfEFPNc (ORCPT + 99 others); Mon, 6 May 2019 11:13:32 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:49987 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726602AbfEFPMQ (ORCPT ); Mon, 6 May 2019 11:12:16 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190506151214euoutp027e947e002ad8f7c3bb6fcd49d25d998c~cILVnP4DL3068630686euoutp02L for ; Mon, 6 May 2019 15:12:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190506151214euoutp027e947e002ad8f7c3bb6fcd49d25d998c~cILVnP4DL3068630686euoutp02L DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1557155534; bh=hPNvzPLxEElWXeyVcdLNco7UTtzNFFZJYf9Hjs/r5uY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U26zmtypdYZIIOwIzr0twW0btjUJdwBEaGqs8JmYMokClZ4hUz1MtOtC25LSNj+Dr 17LrVjgE/bbNanouDL3gRHop3oSkDaTETYzX/cGD558TXomU76ReltJDPNToiunYOJ 9lKZQqdP8/Wf1+YlGQKdVRJSsCHt3e1ZDXAh88wQ= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190506151213eucas1p1a0a14760fcc1d30dd7499712a8bfdc7b~cILUwXjuS1902819028eucas1p1n; Mon, 6 May 2019 15:12:13 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 37.E1.04325.DCE40DC5; Mon, 6 May 2019 16:12:13 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190506151212eucas1p24110f75fa6ed945f9ae7614fbb8aa13d~cILTwiXvi1039910399eucas1p27; Mon, 6 May 2019 15:12:12 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190506151212eusmtrp2c4603c7dc1bc97f5ec8aef608ba9cb4a~cILTig_Wk0409004090eusmtrp2M; Mon, 6 May 2019 15:12:12 +0000 (GMT) X-AuditID: cbfec7f5-b8fff700000010e5-75-5cd04ecd9585 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id E9.5D.04146.CCE40DC5; Mon, 6 May 2019 16:12:12 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190506151211eusmtip1f08905385bac1e46c15540d1ed08a3a7~cILSsOB4H3138931389eusmtip1z; Mon, 6 May 2019 15:12:11 +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 v7 03/13] clk: samsung: add BPLL rate table for Exynos 5422 SoC Date: Mon, 6 May 2019 17:11:51 +0200 Message-Id: <1557155521-30949-4-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1557155521-30949-1-git-send-email-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSe0hTURzHPbu72500OV1Df9gyHAQVNIsijvQgI+KmGWWPP0qoVTeV3Kxd LU2FqfgsU5ReavmI0pZRmY0smzRHWurcKlKzVWoYmEmhadnTeRf99znfx+93OByGYlvoACZW n8Ab9No4tcxban783b6kc4sjammdBcjt8zdp0j3+gSYVNjtNrn8ZRKTk6UUJ6TipI4WDHynS 1XVLTjozRuTklVFFnt8vl5GxAhsi57ssEnLD5pKTvvRaGWkZyaFJ84sw0vfDh0y0DaB1vtzE 12IpV2Z0SrnGUpecqzflybiCzFEZ92i0ScKdbjAh7k57CjdWH7hVsdt79UE+LvYYbwheu887 xuUyS49k4qThz3m0EfUq85GCAbwCCieGJPnIm2FxLQJzmVnuNlg8juBlR7jIYwiyXkf+K2Q0 ujyFGgRORzYlHqYLw/250w7DyLAG7pmOugtzcAq87m6eyVB4RAKdU9+kbsMXbwPn0MAMS/EC KK/+MLNZicMg50mlTN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iqSWFuem5xYb6hUn5haX5qXrJefnbmIExtG2Yz83 72C8tDH4EKMAB6MSD+8D2wsxQqyJZcWVuYcYJTiYlUR4E5+dixHiTUmsrEotyo8vKs1JLT7E aAp01ERmKdHkfGCM55XEG5oamltYGpobmxubWSiJ83YIHIwREkhPLEnNTk0tSC2C6WPi4JRq YCy3cD4dUXEvsnTqS9/nd0UPPj+87MfVxB8y5sesZ8tdZSjZVs7Nxvtyqhhv6UvmruU61uvb Z/693mJy7kZK9ETVN2c+HewOm8m7/fiDgzEfP25zmvrg5gp9j08XLU9f72wJ/XBxQZ7Vw/zu fRc2n2ATK9mk+CNiwRXmT4sTP+8XqvP+8eBotWSMEktxRqKhFnNRcSIAt2X4ibkCAAA= X-CMS-MailID: 20190506151212eucas1p24110f75fa6ed945f9ae7614fbb8aa13d X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190506151212eucas1p24110f75fa6ed945f9ae7614fbb8aa13d X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190506151212eucas1p24110f75fa6ed945f9ae7614fbb8aa13d References: <1557155521-30949-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. 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 af62b6d..23c60a5 100644 --- a/drivers/clk/samsung/clk-exynos5420.c +++ b/drivers/clk/samsung/clk-exynos5420.c @@ -1335,6 +1335,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), @@ -1477,9 +1488,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.7.4