From patchwork Wed Mar 12 07:08:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 3815771 Return-Path: X-Original-To: patchwork-linux-arm@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 CD221BF540 for ; Wed, 12 Mar 2014 07:14:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F1FD9201D5 for ; Wed, 12 Mar 2014 07:14:38 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (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 7988B201F0 for ; Wed, 12 Mar 2014 07:14:37 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WNdMs-0004Qg-3r; Wed, 12 Mar 2014 07:14:22 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WNdI0-00005T-6L; Wed, 12 Mar 2014 07:09:20 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WNdHv-0008WO-RE for linux-arm-kernel@lists.infradead.org; Wed, 12 Mar 2014 07:09:17 +0000 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N2B002V8AHS7990@mailout3.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 12 Mar 2014 16:08:16 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.115]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id E3.FC.10364.FD700235; Wed, 12 Mar 2014 16:08:16 +0900 (KST) X-AuditID: cbfee690-b7f266d00000287c-6b-532007df1c30 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 0D.7F.28157.FD700235; Wed, 12 Mar 2014 16:08:15 +0900 (KST) Received: from chan.10.32.193.11 ([10.252.75.48]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N2B00I8MAHRJP20@mmp2.samsung.com>; Wed, 12 Mar 2014 16:08:15 +0900 (KST) From: Chanwoo Choi To: t.figa@samsung.com, a.hajda@samsung.com, mturquette@linaro.org, kgene.kim@samsung.com Subject: [PATCH] clk: exynos4: Add clock ID for ppmuleft/right Date: Wed, 12 Mar 2014 16:08:10 +0900 Message-id: <1394608090-25362-1-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuphkeLIzCtJLcpLzFFi42JZI2JSrPuAXSHY4McpZotb686xWlz/8pzV Yv4RIKv/zUJWi3OvVjJa9C64ymZxtukNu8Wmx9dYLS7vmsNmMeP8PiaLpdcvMlk8nXCRzWLC 9LUsFutnvGZx4PNYM28No8flvl4mj5XLv7B53Lm2h81j85J6j74tqxg9Pm+SC2CP4rJJSc3J LEst0rdL4Mr4vuIke8EhoYp/zx4yNTCe5u9i5OSQEDCR2LzpHSOELSZx4d56ti5GLg4hgaWM Env+7WGEKdq+bAYjRGI6o8Ss9lusEE4jk8SMWdfAqtgEtCT2v7jBBmKLCERLnJp7DayIWWAt k8SLuzPBioQF7CT2T+sEs1kEVCWmzH3AAmLzCrhK3Pj9nwlinZzEhz2P2EGaJQT2sUtM27eM CaJBQOLb5ENADRxACVmJTQeYIeolJQ6uuMEygVFwAS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TVXPozx4K03Nocv FwidnZfGqXlG2buJt133f1ze9Sl+1l9e63zKeGP38v9XSf/P3pcCj07ONhbl7dUNKWFP/ZWd dkj1z437HyZLz5196GdcUTOT734z8ZwK5gJepyj3j0krXB7H+ChvVPlwrfPfffbWqOld15d+ 6lbNUrzlpMRSnJFoqMVcVJwIAH1NQ9f8AgAA 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-20140312_030916_101285_DA184021 X-CRM114-Status: UNSURE ( 8.72 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -6.9 (------) Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, linux-kernel@vger.kernel.org, Chanwoo Choi , kyungmin.park@samsung.com, galak@codeaurora.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 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.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_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 There is no gate for the PPMU Left/Right to the LEFT/RIGHTBUS block. So, this patch add ppmuleft/right clock which is used to calculate memory bus utilization by using PPMU(Performance Profiling Monitoring Unit). Signed-off-by: Chanwoo Choi Signed-off-by: Kyungmin Park --- drivers/clk/samsung/clk-exynos4.c | 2 ++ include/dt-bindings/clock/exynos4.h | 26 ++++++++++++++------------ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/drivers/clk/samsung/clk-exynos4.c b/drivers/clk/samsung/clk-exynos4.c index 010f071..3819485 100644 --- a/drivers/clk/samsung/clk-exynos4.c +++ b/drivers/clk/samsung/clk-exynos4.c @@ -717,6 +717,8 @@ static struct samsung_gate_clock exynos4_gate_clks[] __initdata = { 0, 0), GATE(CLK_AC97, "ac97", "aclk100", GATE_IP_PERIL, 27, 0, 0), + GATE(CLK_PPMULEFT, "ppmuleft", "aclk200", GATE_IP_LEFTBUS, 1, 0, 0), + GATE(CLK_PPMURIGHT, "ppmuright", "aclk200", GATE_IP_RIGHTBUS, 1, 0, 0), }; /* list of gate clocks supported in exynos4210 soc */ diff --git a/include/dt-bindings/clock/exynos4.h b/include/dt-bindings/clock/exynos4.h index 75aff33..cd7fecf 100644 --- a/include/dt-bindings/clock/exynos4.h +++ b/include/dt-bindings/clock/exynos4.h @@ -215,20 +215,22 @@ #define CLK_SPI1_ISP_SCLK 381 /* Exynos4x12 only */ #define CLK_UART_ISP_SCLK 382 /* Exynos4x12 only */ #define CLK_TMU_APBIF 383 +#define CLK_PPMULEFT 384 +#define CLK_PPMURIGHT 385 /* mux clocks */ -#define CLK_MOUT_FIMC0 384 -#define CLK_MOUT_FIMC1 385 -#define CLK_MOUT_FIMC2 386 -#define CLK_MOUT_FIMC3 387 -#define CLK_MOUT_CAM0 388 -#define CLK_MOUT_CAM1 389 -#define CLK_MOUT_CSIS0 390 -#define CLK_MOUT_CSIS1 391 -#define CLK_MOUT_G3D0 392 -#define CLK_MOUT_G3D1 393 -#define CLK_MOUT_G3D 394 -#define CLK_ACLK400_MCUISP 395 /* Exynos4x12 only */ +#define CLK_MOUT_FIMC0 386 +#define CLK_MOUT_FIMC1 387 +#define CLK_MOUT_FIMC2 388 +#define CLK_MOUT_FIMC3 389 +#define CLK_MOUT_CAM0 390 +#define CLK_MOUT_CAM1 391 +#define CLK_MOUT_CSIS0 392 +#define CLK_MOUT_CSIS1 393 +#define CLK_MOUT_G3D0 394 +#define CLK_MOUT_G3D1 395 +#define CLK_MOUT_G3D 396 +#define CLK_ACLK400_MCUISP 397 /* Exynos4x12 only */ /* div clocks */ #define CLK_DIV_ISP0 450 /* Exynos4x12 only */