From patchwork Thu Dec 29 13:36:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 9491225 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 924E662AB9 for ; Thu, 29 Dec 2016 13:41:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 878D51FF1D for ; Thu, 29 Dec 2016 13:41:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7247025E13; Thu, 29 Dec 2016 13:41:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0CF391FFD6 for ; Thu, 29 Dec 2016 13:41:51 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cMauF-0001Gg-6d; Thu, 29 Dec 2016 13:38:07 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cMau1-0001AM-5Q for linux-arm-kernel@lists.infradead.org; Thu, 29 Dec 2016 13:37:54 +0000 Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OIY023848IIIF00@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 29 Dec 2016 22:37:30 +0900 (KST) Received: from epsmges5p1.samsung.com (unknown [182.195.42.44]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20161229133729epcas5p2816ee776132952bab6a3ccb190947baf~UvZrQpxBN0142901429epcas5p2O; Thu, 29 Dec 2016 13:37:29 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p1.samsung.com (EPCPMTA) with SMTP id F7.5A.31243.99115685; Thu, 29 Dec 2016 22:37:29 +0900 (KST) Received: from epcpsbgm2new.samsung.com (u27.gpu120.samsung.co.kr [203.254.230.27]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20161229133728epcas5p1e7d700c4404684f9574e2251d836061c~UvZqDjWNI2067320673epcas5p12; Thu, 29 Dec 2016 13:37:28 +0000 (GMT) X-AuditID: b6c32a2c-f79ad6d000007a0b-0a-5865119958b8 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 09.DB.28332.89115685; Thu, 29 Dec 2016 22:37:28 +0900 (KST) Received: from AMDC3058.DIGITAL.local ([106.120.53.102]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OIY00AMG8HZWM40@mmp2.samsung.com>; Thu, 29 Dec 2016 22:37:28 +0900 (KST) From: Bartlomiej Zolnierkiewicz To: Sylwester Nawrocki , Tomasz Figa , Chanwoo Choi , Michael Turquette , Stephen Boyd , Kukjin Kim , Kukjin Kim , Krzysztof Kozlowski , Javier Martinez Canillas Subject: [PATCH 1/2] clk: samsung: exynos4412: add cpu clock configuration data for Exynos4412 Prime Date: Thu, 29 Dec 2016 14:36:50 +0100 Message-id: <1483018611-27998-2-git-send-email-b.zolnierkie@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1483018611-27998-1-git-send-email-b.zolnierkie@samsung.com> X-Br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SXmKPExsVy+t9jQd0ZgqkRBpOPqlg0byq22DhjPavF rPl3WSyuf3nOanF22UE2izdv1zBZ9C64ymbR//g1s8X58xvYLTY9vsZq8bHnHqvF5V1z2Cw+ 9x5htJhxfh+TxcVTrhaH37SzWvw4081i0bGM0aJt9QdWi1W7/jA6iHi8v9HK7jG74SKLx+W+ XiaPnbPusntsWtXJ5rF5Sb3Hv2PsHlv6gSJ9W1Yxepz57eyx+XS1x+dNcgE8UW42GamJKalF Cql5yfkpmXnptkqhIW66FkoKeYm5qbZKEbq+IUFKCmWJOaVAnpEBGnBwDnAPVtK3S3DLmLnl AlPBVd6KWRcsGhiPc3cxcnJICJhITD+7gQ3CFpO4cG89mC0kMItRYsF29i5GLiD7F6PE7cXz GUESbAJWEhPbVzGCJEQEPjNJvDn/mw3EYRboZJa42TqJBaRKWCBN4vnnC6wgNouAqsTD9Y/B bF4BD4m1fw6yQKyTkzh5bDJYnFPAU+LM9z/sEKs9JF6c3s42gZF3ASPDKkaJ1ILkguKk9Fyj vNRyveLE3OLSvHS95PzcTYzgeHwmvYPx8C73Q4wCHIxKPLwnFFIihFgTy4orcw8xSnAwK4nw 6vKnRgjxpiRWVqUW5ccXleakFh9iNAU6bCKzlGhyPjBV5JXEG5qYm5gbG1iYW1qaGCmJ8zbO fhYuJJCeWJKanZpakFoE08fEwSnVwGjyTvDtJzO2kvUbGE9ELCw9Hikq6bPjCGeR05VlDbM7 cq2W7mlIPNn5UvzS9b2Hrt9dteTjXfty7oyGVpncWRw1lxi69K+ey5jtXvnjp++rhdNnyD1f sbOpMULPzULYJun6r5i/27SShLl+n/c+7m1ksOdbB9sXL6MXW1v9Ms1ld5fn3Ur29FdiKc5I NNRiLipOBAAHSjY73QIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20161229133728epcas5p1e7d700c4404684f9574e2251d836061c X-Msg-Generator: CA X-Sender-IP: 203.254.230.27 X-Local-Sender: =?UTF-8?B?QmFydGxvbWllaiBab2xuaWVya2lld2ljehtTUlBPTC1LZXJu?= =?UTF-8?B?ZWwgKFRQKRvsgrzshLHsoITsnpAbU2VuaW9yIFNvZnR3YXJlIEVuZ2luZWVy?= X-Global-Sender: =?UTF-8?B?QmFydGxvbWllaiBab2xuaWVya2lld2ljehtTUlBPTC1LZXJu?= =?UTF-8?B?ZWwgKFRQKRtTYW1zdW5nIEVsZWN0cm9uaWNzG1NlbmlvciBTb2Z0d2FyZSBF?= =?UTF-8?B?bmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTI=?= CMS-TYPE: 105P X-HopCount: 7 X-CMS-RootMailID: 20161229133728epcas5p1e7d700c4404684f9574e2251d836061c X-RootMTR: 20161229133728epcas5p1e7d700c4404684f9574e2251d836061c References: <1483018611-27998-1-git-send-email-b.zolnierkie@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161229_053753_406279_F4DD0345 X-CRM114-Status: GOOD ( 11.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org, Ben Gamari , linux-kernel@vger.kernel.org, b.zolnierkie@samsung.com, Doug Anderson , linux-clk@vger.kernel.org, Tobias Jakobi , Thomas Abraham , Andreas Faerber , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add cpu clock configuration data for Exynos4412 Prime SoC (it supports additional PLL rates & CPU frequencies). Based on Hardkernel's kernel for ODROID-X2/U2/U3 boards. Cc: Doug Anderson Cc: Andreas Faerber Cc: Thomas Abraham Cc: Tobias Jakobi Cc: Ben Gamari Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/clk/samsung/clk-exynos4.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/clk/samsung/clk-exynos4.c b/drivers/clk/samsung/clk-exynos4.c index faab9b3..e40b775 100644 --- a/drivers/clk/samsung/clk-exynos4.c +++ b/drivers/clk/samsung/clk-exynos4.c @@ -1298,6 +1298,8 @@ static void __init exynos4_clk_register_finpll(struct samsung_clk_provider *ctx) }; static const struct samsung_pll_rate_table exynos4x12_apll_rates[] __initconst = { + PLL_35XX_RATE(1704000000, 213, 3, 0), + PLL_35XX_RATE(1600000000, 200, 3, 0), PLL_35XX_RATE(1500000000, 250, 4, 0), PLL_35XX_RATE(1400000000, 175, 3, 0), PLL_35XX_RATE(1300000000, 325, 6, 0), @@ -1421,6 +1423,8 @@ static void __init exynos4x12_core_down_clock(void) (((cores) << 8) | ((hpm) << 4) | ((copy) << 0)) static const struct exynos_cpuclk_cfg_data e4412_armclk_d[] __initconst = { + { 1704000, E4210_CPU_DIV0(2, 1, 6, 0, 7, 3), E4412_CPU_DIV1(7, 0, 7), }, + { 1600000, E4210_CPU_DIV0(2, 1, 6, 0, 7, 3), E4412_CPU_DIV1(7, 0, 6), }, { 1500000, E4210_CPU_DIV0(2, 1, 6, 0, 7, 3), E4412_CPU_DIV1(7, 0, 6), }, { 1400000, E4210_CPU_DIV0(2, 1, 6, 0, 7, 3), E4412_CPU_DIV1(6, 0, 6), }, { 1300000, E4210_CPU_DIV0(2, 1, 5, 0, 7, 3), E4412_CPU_DIV1(6, 0, 5), },