From patchwork Fri Aug 8 13:43:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Joe.C" X-Patchwork-Id: 35126 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 77B8E2118A for ; Fri, 8 Aug 2014 13:46:05 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id hq11sf15694210vcb.3 for ; Fri, 08 Aug 2014 06:46:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:mime-version:cc:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=zkJRY/u/cPsTcKiB6vp86yAEbP+Gnv2XfclTbUJS7X4=; b=aF+reDHwuZ3q7w53oKrXaD3l2IyzEDmjNtAhfVx/AgL1ze9e5mKTAKm041wt/Q/V3v 8o0R3m8ZbFmUh0grmGhzrf73idBVyEn1qehEngROuPtGr8iA8yWSN379Oas2CDCSLR9j aMr2oFafeEjzcBvj/Dw/5L2aVt/jXMXUCwXgFqHVXVB7uMe5AeMRasztq9vw3+yRKvn7 ArOPDNTUunnrJw3/SdngPsbERSlNy4dvli4SaEBlVvIZTEaUa1r9mjRpYsn7R5RtmMRn dRdNTsF60ZGewHkyfBvng16ZPQGrPIWoBH9EJd9pv+h5HtFXibgjUqUY7EbshfGVQNU3 81Qg== X-Gm-Message-State: ALoCoQltORkwP+6xmqdBRBaoaKRv2SaVf+9RVqeR9wW/mKtRH1cZ/hZCbsy81byTkFAm5sXs39Hj X-Received: by 10.236.60.129 with SMTP id u1mr36053yhc.57.1407505565284; Fri, 08 Aug 2014 06:46:05 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.41.11 with SMTP id y11ls517577qgy.23.gmail; Fri, 08 Aug 2014 06:46:05 -0700 (PDT) X-Received: by 10.52.69.172 with SMTP id f12mr2155804vdu.9.1407505565133; Fri, 08 Aug 2014 06:46:05 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id t4si2899961vef.3.2014.08.08.06.46.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 08 Aug 2014 06:46:05 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.176 as permitted sender) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id id10so8140103vcb.7 for ; Fri, 08 Aug 2014 06:46:05 -0700 (PDT) X-Received: by 10.52.248.232 with SMTP id yp8mr244933vdc.83.1407505565048; Fri, 08 Aug 2014 06:46:05 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp124180vcb; Fri, 8 Aug 2014 06:46:04 -0700 (PDT) X-Received: by 10.66.218.70 with SMTP id pe6mr24178972pac.61.1407505564150; Fri, 08 Aug 2014 06:46:04 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id hy14si5682022pad.197.2014.08.08.06.46.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Aug 2014 06:46:04 -0700 (PDT) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XFkTg-0005Ym-Lb; Fri, 08 Aug 2014 13:45:04 +0000 Received: from [210.61.82.183] (helo=mailgw01.mediatek.com) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XFkTc-0005EA-Dx for linux-arm-kernel@lists.infradead.org; Fri, 08 Aug 2014 13:45:00 +0000 X-Listener-Flag: 11101 Received: from mtkhts09.mediatek.inc [(172.21.101.70)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1522805044; Fri, 08 Aug 2014 21:44:37 +0800 Received: from mtksdtcf02.mediatek.inc (10.21.12.142) by mtkhts09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 14.3.181.6; Fri, 8 Aug 2014 21:44:36 +0800 From: Joe.C To: , , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , "open list:OPEN FIRMWARE AND..." , open list Subject: [PATCH v2 3/4] arm: mediatek: Add intpol in mt6589.dtsi Date: Fri, 8 Aug 2014 21:43:30 +0800 Message-ID: <1407505411-2207-4-git-send-email-srv_yingjoe.chen@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1407505411-2207-1-git-send-email-srv_yingjoe.chen@mediatek.com> References: <1407505411-2207-1-git-send-email-srv_yingjoe.chen@mediatek.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140808_064500_679805_26B9EB0E X-CRM114-Status: UNSURE ( 7.18 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 1.3 (+) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (1.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines Cc: srv_heupstream@mediatek.com, hc.yen@mediatek.com, yh.chen@mediatek.com, nathan.chung@mediatek.com, Matthias Brugger , eddie.huang@mediatek.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: patch@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: "Joe.C" Add intpol settings for mt6589. This also correct timer interrupt flag setting. The old setting works because 6589 boot loader already set polarity for time interrupt. Without intpol support, the setting was not changed so gic can get the irq correctly. Signed-off-by: Joe.C --- arch/arm/boot/dts/mt6589.dtsi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/mt6589.dtsi b/arch/arm/boot/dts/mt6589.dtsi index d0297a0..18df47f 100644 --- a/arch/arm/boot/dts/mt6589.dtsi +++ b/arch/arm/boot/dts/mt6589.dtsi @@ -76,11 +76,16 @@ timer: timer@10008000 { compatible = "mediatek,mt6577-timer"; reg = <0x10008000 0x80>; - interrupts = ; + interrupts = ; clocks = <&system_clk>, <&rtc_clk>; clock-names = "system-clk", "rtc-clk"; }; + intpol: intpol@10200100 { + compatible = "mediatek,mt6577-intpol"; + reg = <0x10200100 0x1c>; + }; + gic: interrupt-controller@10212000 { compatible = "arm,cortex-a15-gic"; interrupt-controller;