From patchwork Fri Sep 12 15:26:27 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: 4896061 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 2892F9F537 for ; Fri, 12 Sep 2014 15:30:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0DF0F202EC for ; Fri, 12 Sep 2014 15:35:50 +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 7F77E2028D for ; Fri, 12 Sep 2014 15:35:47 +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 1XSSqn-00026u-Vx; Fri, 12 Sep 2014 15:33:29 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XSSqc-0001oa-5T for linux-arm-kernel@lists.infradead.org; Fri, 12 Sep 2014 15:33:18 +0000 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NBS0033XOJCTH70@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Sat, 13 Sep 2014 00:33:13 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.123]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 55.F7.04049.83213145; Sat, 13 Sep 2014 00:33:12 +0900 (KST) X-AuditID: cbfee68e-f79536d000000fd1-5e-54131238f8cf Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id F7.62.04943.83213145; Sat, 13 Sep 2014 00:33:12 +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 <0NBS00BEMOFWGJ70@mmp1.samsung.com>; Sat, 13 Sep 2014 00:33:12 +0900 (KST) From: Naveen Krishna Chatradhi To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 3/8] clk: samsung: Add fixed_factor_clocks field to struct exynos_cmu_info Date: Fri, 12 Sep 2014 20:56:27 +0530 Message-id: <1410535592-5782-5-git-send-email-ch.naveen@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1410535592-5782-1-git-send-email-ch.naveen@samsung.com> References: <1410535592-5782-1-git-send-email-ch.naveen@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrOLMWRmVeSWpSXmKPExsWyRsSkWtdCSDjEYPc8K4v3y3oYLeYfOcdq 0bx4PZtF74KrbBabHl9jtZhxfh+TxdMJF9ksFm37z2zxf88OdotVu/4wOnB5rJm3htFj56y7 7B6bVnWyedy5tofNY//cNewem5fUe/RtWcXo8XmTXABHFJdNSmpOZllqkb5dAlfGnbvvGAuu 8lT073jO1sD4jKuLkZNDQsBEYuvp36wQtpjEhXvr2boYuTiEBJYySmx50s8GU3Tz0SNmiMQi Rokbq78wQjj9TBInJ55gAaliEzCTOLhoNTuILSKgITGl6zE7SBGzwH9GiWMT9jKDJIQF4iUe 9HeANbAIqEqsnrSDCcTmFXCROLhyA1CcA2idgsScSTYgYU4BV4n3O6+wg4SFgEqW3hSHOOgY u8TrT5oQUwQkvk0+BNUpK7HpADNEiaTEwRU3WCYwCi9gZFjFKJpakFxQnJReZKRX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nXU+Cy NHdO7QGJ2w94fvR8D+Op/lJX9tz0dFOQncOD9Te0dGYqbZt+/lhg5LujPb6WB97GlT+xUPBo kRZ91aHloyO759XOxzxLL7prX0i93NPAnct2P1Dtouw95/+5NXp/ukwyNZvWz/OVfN8YZfo/ 5VD3uY+sR9NEn701VWIpzkg01GIuKk4EAAjsJYDVAgAA 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-20140912_083318_342802_748FD694 X-CRM114-Status: UNSURE ( 8.47 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -7.2 (-------) 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, gregkh@linuxfoundation.org, 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.1 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;