From patchwork Wed Nov 14 22:07:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Abraham X-Patchwork-Id: 1744261 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 647153FC64 for ; Wed, 14 Nov 2012 22:15:46 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TYlBr-0006tp-Iy; Wed, 14 Nov 2012 22:12:11 +0000 Received: from mail-pa0-f49.google.com ([209.85.220.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TYl9M-00058E-Vb for linux-arm-kernel@lists.infradead.org; Wed, 14 Nov 2012 22:09:38 +0000 Received: by mail-pa0-f49.google.com with SMTP id bi5so575769pad.36 for ; Wed, 14 Nov 2012 14:09:36 -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=xdpcTKadjsvfdO5wzGpLz3DOqcVKSr/P2q7x1Z5rfSY=; b=I5GwGWPlXOKokaDzJ7KSp0j3YJ7r5yCoFNoq+bmzli0j3YDZaSpXDl3KbDtI9uIIFH rOfsLnA+W7AuBa4II7l9yc+N87ZDSNlOk4NmhueaIEY/IPoCdTw1Hi+PYpLOgGYLUnki W8Z+2K14upbXP3z0NBdHf66BXxRQnHpjOc9zpkBJHMWrVYLv6AdtRW4XoCpzfHpLpzeD ixoz8Po+y2rxtND2jKphvQoOvAkOTsSVPRihjslxYZmnpjMrCWGX80pThhs3Fd7dmrZW ng7ORzT5d1A5woRtN68MShMsqN5/h5iv+YQAeP39vedDTFMPdHp29tOw5G9nHr7dUap9 SotA== Received: by 10.68.197.101 with SMTP id it5mr1934216pbc.91.1352930976682; Wed, 14 Nov 2012 14:09:36 -0800 (PST) Received: from localhost.localdomain ([117.230.47.254]) by mx.google.com with ESMTPS id ix9sm8340673pbc.7.2012.11.14.14.09.30 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 14 Nov 2012 14:09:35 -0800 (PST) From: Thomas Abraham To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH v3 11/11] ARM: Exynos: add support for mct clock setup Date: Thu, 15 Nov 2012 03:37:33 +0530 Message-Id: <1352930853-12268-12-git-send-email-thomas.abraham@linaro.org> X-Mailer: git-send-email 1.7.4.4 In-Reply-To: <1352930853-12268-1-git-send-email-thomas.abraham@linaro.org> References: <1352930853-12268-1-git-send-email-thomas.abraham@linaro.org> X-Gm-Message-State: ALoCoQny/kZoA8dcVqeCBeGFj5sK0GWPbG9GJ6h1uZ47/X5grj4kjt8PjX4x1MLfkvGM001qPQso X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121114_170937_993785_7A6B70ED X-CRM114-Status: GOOD ( 12.88 ) 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.220.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 47bc6b35..09815a9 100644 --- a/arch/arm/mach-exynos/mct.c +++ b/arch/arm/mach-exynos/mct.c @@ -489,7 +489,12 @@ static struct local_timer_ops exynos4_mct_tick_ops __cpuinitdata = { static void __init exynos4_timer_resources(struct device_node *np) { - 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))