From patchwork Thu Sep 11 10:20:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naveen Krishna Chatradhi X-Patchwork-Id: 4884521 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id AAE2AC0338 for ; Thu, 11 Sep 2014 10:28:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 923F62022D for ; Thu, 11 Sep 2014 10:28:29 +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 9A85720108 for ; Thu, 11 Sep 2014 10:28:28 +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 1XS1aI-0007lh-Da; Thu, 11 Sep 2014 10:26:38 +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 1XS1a1-0007NH-Bh for linux-arm-kernel@lists.infradead.org; Thu, 11 Sep 2014 10:26:22 +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 <0NBQ00D46FNBS4C0@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 11 Sep 2014 19:25:59 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.122]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 9E.00.04442.7B871145; Thu, 11 Sep 2014 19:25:59 +0900 (KST) X-AuditID: cbfee690-f79ce6d00000115a-f3-541178b722f8 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id C9.8D.05196.7B871145; Thu, 11 Sep 2014 19:25:59 +0900 (KST) Received: from chnaveen-ubuntu.sisodomain.com ([107.108.83.161]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NBQ00IEPFMF1D80@mmp1.samsung.com>; Thu, 11 Sep 2014 19:25:59 +0900 (KST) From: Naveen Krishna Chatradhi To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 3/8] clk: samsung: Add fixed_factor_clocks field to struct exynos_cmu_info Date: Thu, 11 Sep 2014 15:50:47 +0530 Message-id: <1410430852-3491-4-git-send-email-ch.naveen@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1410430852-3491-1-git-send-email-ch.naveen@samsung.com> References: <1410430852-3491-1-git-send-email-ch.naveen@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrHLMWRmVeSWpSXmKPExsWyRsSkSnd7hWCIwbNdxhbvl/UwWsw/co7V onfBVTaLTY+vsVrMOL+PyeLphItsFou2/We2+L9nB7vFql1/GB04PdbMW8PosXPWXXaPTas6 2TzuXNvD5rF5Sb1H35ZVjB6fN8kFsEdx2aSk5mSWpRbp2yVwZdy5+46x4CpPRf+O52wNjM+4 uhg5OCQETCRajqR2MXICmWISF+6tZ+ti5OIQEljKKDH7xQNmiISJxMLv+1khEosYJe5sngxV 1c8ksfFiBytIFZuAmcTBRavZQWwRAQ2JKV2P2UGKmAUeM0p8a9nJCJIQFoiXuHZ5PthYFgFV if5zO8EaeAVcJC62NLFDnKQgMWeSDUiYU8BV4v/ftWDzhYBKGt/OAlssIbCNXaKlbz8rxBwB iW+TD7FA9MpKbDoAdbWkxMEVN1gmMAovYGRYxSiaWpBcUJyUXmSiV5y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eubbrkLc2 /6zXD6slVIR/3JHJvGtQPO3IYV3G7xsiloX5399gqnXP61rH71tLCm7Vr2jf91lzt7aghMZW ZtfN4al/7h2NuHDuwJHz95dGzV33J5//8GQOvWsmJvm9O83LTsjtzI1vVjVYUv9t1WkJtg1X lViKMxINtZiLihMB72mUicwCAAA= 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-20140911_032621_553436_0090F81D X-CRM114-Status: UNSURE ( 8.60 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -7.5 (-------) Cc: devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Mike Turquette , robh@kernel.org, catalin.marinas@arm.com, tomasz.figa@gmail.com, kgene.kim@samsung.com, naveenkrishna.ch@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=-4.4 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 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 Chatradhi 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 a043654..4b31267 100644 --- a/drivers/clk/samsung/clk.c +++ b/drivers/clk/samsung/clk.c @@ -402,6 +402,9 @@ void __init exynos_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) exynos_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 552d155..993b51c 100644 --- a/drivers/clk/samsung/clk.h +++ b/drivers/clk/samsung/clk.h @@ -347,6 +347,9 @@ struct exynos_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;