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: 4895991 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 0258BBEEA5 for ; Fri, 12 Sep 2014 15:33:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CDD392017A for ; Fri, 12 Sep 2014 15:33:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D6D91202E9 for ; Fri, 12 Sep 2014 15:33:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751742AbaILPdP (ORCPT ); Fri, 12 Sep 2014 11:33:15 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:16289 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751682AbaILPdO (ORCPT ); Fri, 12 Sep 2014 11:33:14 -0400 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>; 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 Cc: naveenkrishna.ch@gmail.com, linux-samsung-soc@vger.kernel.org, catalin.marinas@arm.com, robh@kernel.org, devicetree@vger.kernel.org, tomasz.figa@gmail.com, kgene.kim@samsung.com, gregkh@linuxfoundation.org, Mike Turquette 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+BNUpK7HpADNEiaTEwRU3WCYwCi9gZFjFKJpak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/jugyyfqyMKnXU+Cy NHdO7QGJ2w94fvR8D+Op/lJX9tz0dFOQncOD9Te0dGYqbZt+/lhg5LujPb6WB97GlT+xUPBo kRZ91aHloyO759XOxzxLL7prX0i93NPAnct2P1Dtouw95/+5NXp/ukwyNZvWz/OVfN8YZfo/ 5VD3uY+sR9NEn701VWIpzkg01GIuKk4EAAjsJYDVAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected 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=-9.1 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 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;