From patchwork Thu Sep 5 09:24:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 2853988 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 D7807C0AB5 for ; Thu, 5 Sep 2013 09:26:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C7FB42021A for ; Thu, 5 Sep 2013 09:26:11 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9413220177 for ; Thu, 5 Sep 2013 09:26:10 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VHVos-0007sU-6x; Thu, 05 Sep 2013 09:25:42 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VHVoj-0004lD-LC; Thu, 05 Sep 2013 09:25:33 +0000 Received: from mail-pb0-f50.google.com ([209.85.160.50]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VHVoc-0004ix-Lj for linux-arm-kernel@lists.infradead.org; Thu, 05 Sep 2013 09:25:27 +0000 Received: by mail-pb0-f50.google.com with SMTP id uo5so1549577pbc.37 for ; Thu, 05 Sep 2013 02:25:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=s2rdQw2anwTZBdT/H4eddSvo+3+EVjVabMu3wHZx9zw=; b=VZ/9bERJLsKJrXDh1LXHnhO6cUCJmzD2BvO0T711Q25W83WTcFNDKgP9gfugLSCm2L T6aaFkWi6tnG4HfQbzJ0haTgpCk5Eu09pha/sziuMt4+8t4UAAS8o71rDDn2hDJDvjnT G3v6f+SX8b64kaly7t3fX3f0NEQscpPCR2qcdot8AFJ6gXCZrrPeOEl1P9yb8OT5j0GE LzxNmEzx3ClRBTrsxLsbZw6az7eZdKaxVx/4CHf9IlphGS2shX1ZD/fnfEaFjF+ugAzF RTjNH36UMlZB5IDzxWv3VvN6xkO55yKFK3p82dlJ76zNzI3YyIxFQ/daIh9/+LVbQSC7 LD7Q== X-Gm-Message-State: ALoCoQkpjA5/qTOQ+7Im2QgConcDXJR8BXdb4YPutn21wlba7yQcjGlMkONCskXRym7XmjurrD2S X-Received: by 10.68.210.103 with SMTP id mt7mr8019008pbc.179.1378373102617; Thu, 05 Sep 2013 02:25:02 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPSA id xs1sm36650304pac.7.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 05 Sep 2013 02:25:02 -0700 (PDT) From: Chander Kashyap To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 1/2] clocksource: mct: extend mct to support 8 local interrupts for Exynos5420 Date: Thu, 5 Sep 2013 14:54:45 +0530 Message-Id: <1378373086-30676-2-git-send-email-chander.kashyap@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1378373086-30676-1-git-send-email-chander.kashyap@linaro.org> References: <1378373086-30676-1-git-send-email-chander.kashyap@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130905_052526_827495_979339C8 X-CRM114-Status: GOOD ( 10.70 ) X-Spam-Score: -2.6 (--) Cc: kgene.kim@samsung.com, thomas.abraham@linaro.org, Chander Kashyap 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=-6.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 Exynos5420 is octacore SoC from Samsung. Hence extend exynos-mct clocksource driver to support 8 local interrupts. Also extend dt entries for 8 interrupts. Signed-off-by: Chander Kashyap --- arch/arm/boot/dts/exynos5420.dtsi | 9 +++++++-- drivers/clocksource/exynos_mct.c | 4 ++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi index 6ce2f94..e97c87b 100644 --- a/arch/arm/boot/dts/exynos5420.dtsi +++ b/arch/arm/boot/dts/exynos5420.dtsi @@ -69,7 +69,8 @@ compatible = "samsung,exynos4210-mct"; reg = <0x101C0000 0x800>; interrupt-parent = <&mct_map>; - interrupts = <0>, <1>, <2>, <3>, <4>, <5>, <6>, <7>; + interrupts = <0>, <1>, <2>, <3>, <4>, <5>, <6>, <7>, + <8>, <9>, <10>, <11>; clocks = <&clock 1>, <&clock 315>; clock-names = "fin_pll", "mct"; @@ -84,7 +85,11 @@ <4 &gic 0 120 0>, <5 &gic 0 121 0>, <6 &gic 0 122 0>, - <7 &gic 0 123 0>; + <7 &gic 0 123 0>, + <8 &gic 0 128 0>, + <9 &gic 0 129 0>, + <10 &gic 0 130 0>, + <11 &gic 0 131 0>; }; }; diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index b2bbc41..ff4711e 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -71,6 +71,10 @@ enum { MCT_L1_IRQ, MCT_L2_IRQ, MCT_L3_IRQ, + MCT_L4_IRQ, + MCT_L5_IRQ, + MCT_L6_IRQ, + MCT_L7_IRQ, MCT_NR_IRQS, };