From patchwork Mon Oct 7 04:17:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 2994221 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 740EA9F245 for ; Mon, 7 Oct 2013 04:18:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8A65E201F7 for ; Mon, 7 Oct 2013 04:18:29 +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 8AB40201EF for ; Mon, 7 Oct 2013 04:18:28 +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 1VT2Gf-0000uC-Tc; Mon, 07 Oct 2013 04:18:02 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VT2Gd-0000BD-KY; Mon, 07 Oct 2013 04:17:59 +0000 Received: from mail-pb0-f51.google.com ([209.85.160.51]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VT2Ga-0000AL-A6 for linux-arm-kernel@lists.infradead.org; Mon, 07 Oct 2013 04:17:57 +0000 Received: by mail-pb0-f51.google.com with SMTP id jt11so6494728pbb.38 for ; Sun, 06 Oct 2013 21:17:34 -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=SfyAliYnzOy7tjvMqQ+8DDh1783sb+stWjlLVOVfwR8=; b=avBYZCurGQ/UzuIBqI5cObKwnHU9XLnVxTFapwBqitvatvRPaigIdQgm3eSGuROky2 GARkelKxyLNKUheDnmdFoUu8PVqViy0UDcBzgxsJtdpcF4l69zfl7QwbD3NSL4L+BzwP Br/PhfJeex1ecxyHlQHu6lGcR7YK6+txy2u9tYW6xEFfDHs3bEfEv9lmhFnXkrApy8Z+ F8PPAQcRWhu5zHhmSnhB4VnM+nWtxAkA2bkIENymmw2QM8jwSIqosbv+7YH4uFYLdVPl xzD+aMbwuywEAn4uT5dvQI1/6Rc+35BrTVhETkgU4UU0tPM+jCp1T05powVoKFweWPb5 siBQ== X-Gm-Message-State: ALoCoQm+C4r3bSaC6RdkjAPOeEFTXdIWRmOXzruyQwXpl55Dz7+dvb8yNg1s/xmsvHeIYIv7pkyA X-Received: by 10.68.247.163 with SMTP id yf3mr28394608pbc.76.1381119453968; Sun, 06 Oct 2013 21:17:33 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPSA id o1sm30177696pbe.37.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 06 Oct 2013 21:17:33 -0700 (PDT) From: Chander Kashyap To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [Patch v4 1/2] clocksource: mct: extend mct to support 8 local interrupts for Exynos5420 Date: Mon, 7 Oct 2013 09:47:09 +0530 Message-Id: <1381119431-12697-2-git-send-email-chander.kashyap@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1381119431-12697-1-git-send-email-chander.kashyap@linaro.org> References: <1381119431-12697-1-git-send-email-chander.kashyap@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131007_001756_439664_795F47AB X-CRM114-Status: GOOD ( 10.07 ) X-Spam-Score: -2.6 (--) Cc: sylvester.nawrocki@gmail.com, kgene@kernel.org, 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=-4.2 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 octa-core SoC from Samsung. Hence extend exynos-mct clocksource driver to support 8 local interrupts. Also extend dts 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, };