From patchwork Tue Sep 2 15:35:39 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: 4826851 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 E8F609F32F for ; Tue, 2 Sep 2014 15:44:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 268432017E for ; Tue, 2 Sep 2014 15:44:39 +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 4E9162017D for ; Tue, 2 Sep 2014 15:44:38 +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 1XOqEK-0006pN-ND; Tue, 02 Sep 2014 15:42:48 +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 1XOqEH-0006cE-Oa for linux-arm-kernel@lists.infradead.org; Tue, 02 Sep 2014 15:42:46 +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 <0NBA00FXM6ANQV80@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 03 Sep 2014 00:42:23 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.124]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id EA.A0.04442.F55E5045; Wed, 03 Sep 2014 00:42:23 +0900 (KST) X-AuditID: cbfee690-f79ce6d00000115a-09-5405e55ff006 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id F4.EA.04943.E55E5045; Wed, 03 Sep 2014 00:42:23 +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 <0NBA002I96728OC0@mmp1.samsung.com>; Wed, 03 Sep 2014 00:42:22 +0900 (KST) From: Naveen Krishna Chatradhi To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 3/7] clk: samsung: Add fixed_factor_clocks field to struct exynos_cmu_info Date: Tue, 02 Sep 2014 21:05:39 +0530 Message-id: <1409672143-8574-4-git-send-email-ch.naveen@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1409672143-8574-1-git-send-email-ch.naveen@samsung.com> References: <1409672143-8574-1-git-send-email-ch.naveen@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrNLMWRmVeSWpSXmKPExsWyRsSkRjf+KWuIQV87v8X7ZT2MFvOPnGO1 6F1wlc1i0+NrrBYzzu9jsng64SKbxaJt/5kt/u/ZwW6xfsZrFgdOjzXz1jB67Jx1l91j06pO No871/aweWxeUu/Rt2UVo8fnTXIB7FFcNimpOZllqUX6dglcGS8uOxdc4qmYcbSXuYHxMVcX IyeHhICJxNG1x1ggbDGJC/fWs3UxcnEICSxllGg+eIAZpqhhzkOoxCJGidX/FrFDOP1MEvuu HmIHqWITMJM4uGg1mC0ioCExpesxWBGzwANGicZjV4B2cHAIC8RLLHmuDlLDIqAq8eTBOTaQ MK+Ai8TVyQ4gpoSAgsScSTYgFZwCrhJLHmwDqxACqjhxyhxkoITANnaJE3dPMENMEZD4NvkQ C0SrrMQmmJMlJQ6uuMEygVF4ASPDKkbR1ILkguKk9CITveLE3OLSvHS95PzcTY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Z6 S+9dI1328S9LlgLj4t/f29IYT0hXXA4/1/lPQbFw9Wnz38tFSyNFty/g+8thu/Jmuc/n21fm JArs7fy6/PhWL1+vA3vnrzBk7YxasyL/w5GMLse7G9T+11u5V95Z/7bFwMr224PyKLZUb1sh JZbijERDLeai4kQAhNnP6MgCAAA= 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-20140902_084245_962277_A6969734 X-CRM114-Status: UNSURE ( 8.56 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -6.7 (------) Cc: devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Mike Turquette , robh@kernel.org, catalin.marinas@arm.com, t.figa@samsung.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=-3.6 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;