From patchwork Thu Sep 5 11:29:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 2854065 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 E47A7C0AB5 for ; Thu, 5 Sep 2013 11:31:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C4778201FF for ; Thu, 5 Sep 2013 11:31:25 +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 815F0201BB for ; Thu, 5 Sep 2013 11:31:24 +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 1VHXm5-0003HU-KO; Thu, 05 Sep 2013 11:30:57 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VHXlv-0007MG-Qu; Thu, 05 Sep 2013 11:30:47 +0000 Received: from mail-pd0-f179.google.com ([209.85.192.179]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VHXlg-0007Jp-RG for linux-arm-kernel@lists.infradead.org; Thu, 05 Sep 2013 11:30:33 +0000 Received: by mail-pd0-f179.google.com with SMTP id v10so1683460pde.10 for ; Thu, 05 Sep 2013 04:30:09 -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=cQLmtihoa7fLUWtKpj/QVQVAD2BYXsp0sZT/TD8rKm++ZLeJqXp1zV8B0dMEAiHMBS iYezu1gfyPL2J5dxwkcHMwSezeYALV0Pd4nAa4/s+TSk0bh/bHcxip72kMPixHun7P62 rofahAUmOZoiw4nqONO3bU0mhxxWi37mP7VShYwBYaBThWoT8lSTwlMevt2Q1SP4yqfn LRyh7o1YkhzDgVU9EMd05Fk0gnK9VgzV7wTo+Jo0+rJbU7jQKo3nvbJIgZz4D1k7t+pH dpT3ZwvuamTsa6A3qKrTh4uZ8C5X+2Zz/J15CGsiucB4zwc4NmJWTavllA0WVKF4SxeP XvCw== X-Gm-Message-State: ALoCoQnL4uUp68URnV5K5NF7hZYlEFqYacsaB9/8Lh5ItOl8V9f6MbcJ64WdyzrhVETHWHufOG2o X-Received: by 10.68.254.42 with SMTP id af10mr8574100pbd.154.1378380608715; Thu, 05 Sep 2013 04:30:08 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPSA id tz3sm35060285pbc.20.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 05 Sep 2013 04:30:08 -0700 (PDT) From: Chander Kashyap To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH v3 1/2] clocksource: mct: extend mct to support 8 local interrupts for Exynos5420 Date: Thu, 5 Sep 2013 16:59:52 +0530 Message-Id: <1378380593-5305-2-git-send-email-chander.kashyap@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1378380593-5305-1-git-send-email-chander.kashyap@linaro.org> References: <1378380593-5305-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_073032_981188_0EFA5983 X-CRM114-Status: GOOD ( 10.80 ) X-Spam-Score: -1.9 (-) 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, };