From patchwork Sat Nov 24 21:18:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Abraham X-Patchwork-Id: 1798941 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id B1B3EDFABD for ; Sat, 24 Nov 2012 21:26:11 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TcNBs-0004x4-WE; Sat, 24 Nov 2012 21:23:09 +0000 Received: from mail-pb0-f49.google.com ([209.85.160.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TcN8U-0002U3-Cr for linux-arm-kernel@lists.infradead.org; Sat, 24 Nov 2012 21:19:39 +0000 Received: by mail-pb0-f49.google.com with SMTP id un15so6487255pbc.36 for ; Sat, 24 Nov 2012 13:19:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=VJZRaHKkgPre4W/VNwDX/skrAwgQ1sByy0IHlO9qITQ=; b=jbyeUKvrFOFA4Wz1In+j8H8WVRaIyHZ2P0a5RFaTpcKKRE2Q9hOMAXukVP5NLZ3Eye sqFCxk5EdV4Y8Be44wd49WQbaPaP7zpe8I4YvBwuaZF9tJb6YbYFi71P4R5ehtVkE4Aj U0gNRLjrilem5YtKC5v55A5V/Q4EGP4mJzre9E8kkiR9LyzDuw5X+5t/e9nniM9cBRPV VCyMs0xaYgGtqSy6l3/P8wMjb1G7GPr2Vfq0w0/Vhkv3Cw6z0SXm9nCud16+SRqAf5CG vQUi5cztOh5SW4iisj4yZ1aeQoPKq55cjKESW/gY1aHYD+oqbFR51sJXGE+C38wAEa30 rqsA== Received: by 10.66.79.195 with SMTP id l3mr18543067pax.82.1353791978139; Sat, 24 Nov 2012 13:19:38 -0800 (PST) Received: from localhost.localdomain ([14.99.191.127]) by mx.google.com with ESMTPS id nf9sm5984822pbc.17.2012.11.24.13.19.32 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 24 Nov 2012 13:19:37 -0800 (PST) From: Thomas Abraham To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 12/12] ARM: Exynos: add support for mct clock setup Date: Sun, 25 Nov 2012 02:48:05 +0530 Message-Id: <1353791885-2566-13-git-send-email-thomas.abraham@linaro.org> X-Mailer: git-send-email 1.7.4.4 In-Reply-To: <1353791885-2566-1-git-send-email-thomas.abraham@linaro.org> References: <1353791885-2566-1-git-send-email-thomas.abraham@linaro.org> X-Gm-Message-State: ALoCoQkSZsh8E8MBe740ryqLi3JDx8FHMLeqXWQ6BicVfklly4YvVgrvl9h9CXSPt8wvbEA/xzW8 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121124_161938_680651_3C8DC13C X-CRM114-Status: GOOD ( 11.93 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.49 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: kgene.kim@samsung.com, mturquette@linaro.org, devicetree-discuss@lists.ozlabs.org, Thomas Abraham , sylvester.nawrocki@gmail.com, t.figa@samsung.com, mturquette@ti.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Add support for mct clock lookup and setup to ensure that the mct clock is has been turned on. Cc: Kukjin Kim Signed-off-by: Thomas Abraham --- arch/arm/mach-exynos/mct.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-exynos/mct.c b/arch/arm/mach-exynos/mct.c index 71e1502..843856f 100644 --- a/arch/arm/mach-exynos/mct.c +++ b/arch/arm/mach-exynos/mct.c @@ -488,7 +488,12 @@ static struct local_timer_ops exynos4_mct_tick_ops __cpuinitdata = { static void __init exynos4_timer_resources(struct device_node *np) { #ifdef CONFIG_COMMON_CLK - struct clk *tick_clk; + struct clk *mct_clk, *tick_clk; + + mct_clk = clk_get(NULL, "mct"); + if (IS_ERR(mct_clk)) + panic("%s: unable to retrieve mct clock instance\n", __func__); + clk_prepare_enable(mct_clk); tick_clk = clk_get(NULL, "fin_pll"); if (IS_ERR(tick_clk))