From patchwork Wed Aug 13 02:11:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Joe.C" X-Patchwork-Id: 35323 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f198.google.com (mail-pd0-f198.google.com [209.85.192.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 77349203C5 for ; Wed, 13 Aug 2014 02:13:29 +0000 (UTC) Received: by mail-pd0-f198.google.com with SMTP id fp1sf70412703pdb.1 for ; Tue, 12 Aug 2014 19:13:28 -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=iBHoqq9bOCp5LY/wr/wrnOPkfvvFcLQm56Iz7Ubfm4IZNFWEqFtk+e9EHE2xwkBWHp hgyjkCKlBYLe5YsWSj2MRN2lsG6XVI+6sC4186vFhshDuvL9Ww0Av59jkn0OeqKxyHNs RPIvZmeuQHIvE/yCv8Fi2uwdq2gkAlulgm6WhY8vHe3oMM74c6nVHMwK970kMRQdM3Yf CBSkR6ztLHcsvIwRpIU/sTlk1KWQmDygREn0aTBdtm5rRbtcn/591vUxooKTkKyFanNz w6rqkfJNyVq6W2wD+5AF5tpwBwBqktpEEq6JK73OTWqOiumtCNg9OoJr0GWKfpU920zL wAjw== X-Gm-Message-State: ALoCoQlYrV7hSEI+QPfUsz10VoyULTXXAZKPxmHD5KgBAQBpRM3F/pH4ow8a7lj6gyb0EMJr2Bpz X-Received: by 10.70.37.41 with SMTP id v9mr1030719pdj.0.1407896008794; Tue, 12 Aug 2014 19:13:28 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.90.47 with SMTP id w44ls370054qgd.56.gmail; Tue, 12 Aug 2014 19:13:28 -0700 (PDT) X-Received: by 10.220.144.147 with SMTP id z19mr1175750vcu.26.1407896008675; Tue, 12 Aug 2014 19:13:28 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id or9si261893vcb.81.2014.08.12.19.13.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 12 Aug 2014 19:13:28 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id hy10so14295684vcb.18 for ; Tue, 12 Aug 2014 19:13:28 -0700 (PDT) X-Received: by 10.52.232.200 with SMTP id tq8mr982592vdc.32.1407896008597; Tue, 12 Aug 2014 19:13:28 -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 tc5csp293785vcb; Tue, 12 Aug 2014 19:13:28 -0700 (PDT) X-Received: by 10.70.128.137 with SMTP id no9mr1220939pdb.143.1407896007580; Tue, 12 Aug 2014 19:13:27 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id jf9si323374pbd.242.2014.08.12.19.13.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Aug 2014 19:13:27 -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 1XHO2x-0003kW-Av; Wed, 13 Aug 2014 02:12:15 +0000 Received: from [210.61.82.184] (helo=mailgw02.mediatek.com) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XHO2t-0003bf-Vi for linux-arm-kernel@lists.infradead.org; Wed, 13 Aug 2014 02:12:12 +0000 X-Listener-Flag: 11101 Received: from mtkhts09.mediatek.inc [(172.21.101.70)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 2014584399; Wed, 13 Aug 2014 10:11:40 +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; Wed, 13 Aug 2014 10:11:34 +0800 From: Joe.C To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Randy Dunlap , Russell King , Thomas Gleixner , Jason Cooper , Joe.C , Matthias Brugger , Olof Johansson , Jonas Jensen , Arnd Bergmann , , , , Subject: [RESEND PATCH v2 3/4] arm: mediatek: Add intpol in mt6589.dtsi Date: Wed, 13 Aug 2014 10:11:23 +0800 Message-ID: <1407895884-18131-4-git-send-email-srv_yingjoe.chen@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1407895884-18131-1-git-send-email-srv_yingjoe.chen@mediatek.com> References: <1407895884-18131-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-20140812_191212_239678_042EC5F1 X-CRM114-Status: UNSURE ( 7.38 ) 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, yingjoe.chen@gmail.com, hc.yen@mediatek.com, yh.chen@mediatek.com, nathan.chung@mediatek.com, 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.173 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;