From patchwork Wed Aug 27 09:48:06 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: 4787141 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 ADA6E9F2A9 for ; Wed, 27 Aug 2014 09:56:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CF8F320145 for ; Wed, 27 Aug 2014 09:56:49 +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 F04CC20123 for ; Wed, 27 Aug 2014 09:56:48 +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 1XMZuY-0001HB-5n; Wed, 27 Aug 2014 09:53:02 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XMZuU-000122-Cx for linux-arm-kernel@lists.infradead.org; Wed, 27 Aug 2014 09:52:59 +0000 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NAY006CSM3NOQ90@mailout4.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 27 Aug 2014 18:52:36 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.124]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id F0.EC.04442.36AADF35; Wed, 27 Aug 2014 18:52:35 +0900 (KST) X-AuditID: cbfee690-f79ce6d00000115a-c5-53fdaa63c882 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id A5.90.04943.36AADF35; Wed, 27 Aug 2014 18:52:35 +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 <0NAY001Q2M382M10@mmp1.samsung.com>; Wed, 27 Aug 2014 18:52:35 +0900 (KST) From: Naveen Krishna Chatradhi To: Subject: [PATCH 03/14] clk: samsung: Add fixed_factor_clocks field to struct exynos_cmu_info Date: Wed, 27 Aug 2014 15:18:06 +0530 Message-id: <1409132889-2080-3-git-send-email-ch.naveen@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1409132889-2080-1-git-send-email-ch.naveen@samsung.com> References: <1409132889-2080-1-git-send-email-ch.naveen@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrBLMWRmVeSWpSXmKPExsWyRsSkRjd51d9gg0edFhYvD2labHp8jdVi xvl9TBZPJ1xks1i07T+zxfoZr1ksOpYxOrB77Jx1l93jzrU9bB6bl9R79G1ZxejxeZNcAGsU l01Kak5mWWqRvl0CV8aNtTPZCtbwVvzYNZOxgXEddxcjJ4eEgInE7lvX2CFsMYkL99azdTFy cQgJLGWUOL74HTNM0Z3Vb5ghEosYJe40HWCEcPqZJN6372AEqWITMJM4uGg12CgRAWaJBVPP gxUxC3xklLh+/iRYkbBAnMTis4uAijg4WARUJbo+goV5BVwk3q++zQwSlhBQkJgzyQYkzCng KnHj9HpWEFsIqOTY0jNgIyUEprNLfDu6C+w6FgEBiW+TD7FA9MpKbDoAdbSkxMEVN1gmMAov YGRYxSiaWpBcUJyUXmSiV5yYW1yal66XnJ+7iREY4Kf/PZuwg/HeAetDjAIcjEo8vB8W/AkW Yk0sK67MP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MybfGYt/lT0aaLZ9Ku Rl6dGnB4ekz6KempxmL7nIXXbX50Y0rnY7uY1zzuscWsl5VYijMSDbWYi4oTASl0POa1AgAA 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-20140827_025258_573859_79279A83 X-CRM114-Status: UNSURE ( 9.90 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.0 (-----) Cc: linux-samsung-soc@vger.kernel.org, Mike Turquette , Tomasz Figa , Thomas Abraham , cpgs@samsung.com, naveenkrishna.ch@gmail.com, linux-arm-kernel@lists.infradead.org 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=-1.9 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 This patch adds the needed fields "fixed_factor_clks" and "nr_fixed_factor_clks" to "struct exynos_cmu_info" The same fields are used in the function exynos_cmu_register_one() for registering the fixed factor clocks. Signed-off-by: Naveen Krishna Chatradhi Cc: Tomasz Figa Cc: Mike Turquette Cc: Thomas Abraham --- 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 ef73edf..ed907cf 100644 --- a/drivers/clk/samsung/clk.c +++ b/drivers/clk/samsung/clk.c @@ -408,6 +408,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;