From patchwork Mon Sep 22 04:47:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhilash Kesavan X-Patchwork-Id: 4945621 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 0AF189F32F for ; Mon, 22 Sep 2014 04:50:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2F3DC20220 for ; Mon, 22 Sep 2014 04:50:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4568620221 for ; Mon, 22 Sep 2014 04:50:21 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XVvYH-0005VJ-E8; Mon, 22 Sep 2014 04:48:41 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XVvXX-0004tj-Mb for linux-arm-kernel@lists.infradead.org; Mon, 22 Sep 2014 04:47:56 +0000 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NCA00AVADBAU530@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Mon, 22 Sep 2014 13:47:34 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.124]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id FF.4A.18167.6E9AF145; Mon, 22 Sep 2014 13:47:34 +0900 (KST) X-AuditID: cbfee690-f79ab6d0000046f7-10-541fa9e6e194 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 1C.ED.09430.5E9AF145; Mon, 22 Sep 2014 13:47:34 +0900 (KST) Received: from abhilash-ubuntu.sisodomain.com ([107.108.73.92]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NCA00BJEDAQ2W10@mmp2.samsung.com>; Mon, 22 Sep 2014 13:47:33 +0900 (KST) From: Abhilash Kesavan To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, catalin.marinas@arm.com Subject: [PATCH v5 3/8] clk: samsung: Add fixed_factor_clocks field to struct exynos_cmu_info Date: Mon, 22 Sep 2014 10:17:03 +0530 Message-id: <1411361228-18279-4-git-send-email-a.kesavan@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1411361228-18279-1-git-send-email-a.kesavan@samsung.com> References: <1411361228-18279-1-git-send-email-a.kesavan@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMLMWRmVeSWpSXmKPExsWyRsSkRvfZSvkQg4fbuCzeL+thtJh/5Byr xZq/ShabHl9jtZhxfh+TxaJt/5ktVu36w+jA7rFm3hpGj52z7rJ7bF5S7/F5k1wASxSXTUpq TmZZapG+XQJXxovnp5gLlvNVTHm8nL2BcTlPFyMnh4SAicT5hk5GCFtM4sK99WxdjFwcQgJL GSUmLd/DDFPUt+01VGI6o8SM1jcsEE4fk8S28zNZQKrYBPQkFvz7ygySEBFoYpS4eGI1WDuz QLDE8g8/2EBsYYF4ic8/PoI1sAioSlx7dxHI5uDgFXCVWDFPC8SUEFCQmDPJBqSCU8BN4tWc L0wgYSGgihm300CmSwj0s0tMWNnBCDFFQOLb5EMsEK2yEpsOQN0sKXFwxQ2WCYzCCxgZVjGK phYkFxQnp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+M7HZu2i1cmeb46dabnNDf3m5VK h0ylv5tvmPxteeljm/cMXLsDOn/nsIndPJD++pJ0KcNdx+6DThH+Sc5y2WJZbBYPOOcdke92 /yp9X5CBrdP9d5jKrtCPXDvjGqv8+Hb8WjJJiaU4I9FQi7moOBEA+FjHp7ACAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140921_214755_873277_A4EE07C6 X-CRM114-Status: UNSURE ( 8.92 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.8 (-----) Cc: naveenkrishna.ch@gmail.com, kesavan.abhilash@gmail.com, tomasz.figa@gmail.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Naveen Krishna Ch Add the fields "fixed_factor_clks" and "nr_fixed_factor_clks" to "struct exynos_cmu_info" to allow registering of fixed factor clocks as well with exynos_cmu_register_one(). Signed-off-by: Naveen Krishna Ch Signed-off-by: Abhilash Kesavan Reviewed-by: Thomas Abraham Tested-by: Thomas Abraham Cc: Tomasz Figa Cc: Mike Turquette --- drivers/clk/samsung/clk.c | 3 +++ drivers/clk/samsung/clk.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers/clk/samsung/clk.c b/drivers/clk/samsung/clk.c index a648236..dd1f7c9 100644 --- a/drivers/clk/samsung/clk.c +++ b/drivers/clk/samsung/clk.c @@ -402,6 +402,9 @@ void __init samsung_cmu_register_one(struct device_node *np, if (cmu->fixed_clks) samsung_clk_register_fixed_rate(ctx, cmu->fixed_clks, cmu->nr_fixed_clks); + if (cmu->fixed_factor_clks) + samsung_clk_register_fixed_factor(ctx, cmu->fixed_factor_clks, + cmu->nr_fixed_factor_clks); if (cmu->clk_regs) samsung_clk_sleep_init(reg_base, cmu->clk_regs, cmu->nr_clk_regs); diff --git a/drivers/clk/samsung/clk.h b/drivers/clk/samsung/clk.h index b3d0f4d..3f471e9 100644 --- a/drivers/clk/samsung/clk.h +++ b/drivers/clk/samsung/clk.h @@ -347,6 +347,9 @@ struct samsung_cmu_info { /* list of fixed clocks and respective count */ struct samsung_fixed_rate_clock *fixed_clks; unsigned int nr_fixed_clks; + /* list of fixed factor clocks and respective count */ + struct samsung_fixed_factor_clock *fixed_factor_clks; + unsigned int nr_fixed_factor_clks; /* total number of clocks with IDs assigned*/ unsigned int nr_clk_ids;