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: 4786971 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 4B2019F383 for ; Wed, 27 Aug 2014 09:52:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6C07020123 for ; Wed, 27 Aug 2014 09:52:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 87383200F4 for ; Wed, 27 Aug 2014 09:52:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933164AbaH0Jwi (ORCPT ); Wed, 27 Aug 2014 05:52:38 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:20506 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933090AbaH0Jwh (ORCPT ); Wed, 27 Aug 2014 05:52:37 -0400 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-samsung-soc@vger.kernel.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 Cc: naveenkrishna.ch@gmail.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, cpgs@samsung.com, Tomasz Figa , Mike Turquette , Thomas Abraham 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 Yk0sK67MPcR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fGYt/lT0aaLZ9Ku Rl6dGnB4ekz6KempxmL7nIXXbX50Y0rnY7uY1zzuscWsl5VYijMSDbWYi4oTASl0POa1AgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected To: unlisted-recipients:; (no To-header on input) Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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;