From patchwork Wed Sep 18 18:48:38 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Soren Brinkmann X-Patchwork-Id: 2908751 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 158D39F1E3 for ; Wed, 18 Sep 2013 18:51:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4A9E1203AC for ; Wed, 18 Sep 2013 18:51:51 +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 44556201F5 for ; Wed, 18 Sep 2013 18:51:50 +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 1VMMpg-0002lQ-Ju; Wed, 18 Sep 2013 18:50:38 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VMMpJ-00041f-5t; Wed, 18 Sep 2013 18:50:13 +0000 Received: from mail-pd0-x230.google.com ([2607:f8b0:400e:c02::230]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VMMoi-0003vw-Jk for linux-arm-kernel@lists.infradead.org; Wed, 18 Sep 2013 18:49:37 +0000 Received: by mail-pd0-f176.google.com with SMTP id q10so7386872pdj.21 for ; Wed, 18 Sep 2013 11:49:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=Wpb7EJR+CZeps6FQ9+4z7RRgBg/p2vHAXi8pUOJz7Y4=; b=ID5WCMGrZEY2VKCRciOddr9ekT1awSq4RBbNGGGbYbAXtGq/H4ZLBbmsjJr21aFXYl qx8z/WTmHuGBfm0R5Kv1YTb/Yrg4SO1UCGBvjjeUrfoamVE9QzlYFyxY+/HecU01obEs QOa0ZoltIOngo9iZAh8DH1RBeuGrLQflwuhtX2UMSteAcexd5/U6fbHWW0QLaEAkOIuM BbAcm/JW9A/24pT6gVJjRj7oFYH5NRYB3Hji0lF1dvJTXVVOxiP5BOIsmTsIc7/a10us IjsHd8jsNGMTfnZ2YmXy/WZvkJh+Q0F40oTY7C5d//I2FSs+u9IHRmv6LAdYUQtd+UZ2 LlAA== X-Received: by 10.66.155.102 with SMTP id vv6mr44901820pab.89.1379530154748; Wed, 18 Sep 2013 11:49:14 -0700 (PDT) Received: from localhost ([149.199.62.254]) by mx.google.com with ESMTPSA id ha10sm4143538pbc.23.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 18 Sep 2013 11:49:13 -0700 (PDT) From: Soren Brinkmann To: Rob Herring , Pawel Moll , Mark Rutland , Stephen Warren , Ian Campbell , Russell King , Michal Simek , Thomas Gleixner , Daniel Lezcano , Stephen Boyd , Grant Likely , Preeti Murthy Subject: [PATCH v2 4/4] arm: zynq: Enable arm_global_timer Date: Wed, 18 Sep 2013 11:48:38 -0700 Message-Id: <1379530118-22813-5-git-send-email-soren.brinkmann@xilinx.com> X-Mailer: git-send-email 1.8.4 In-Reply-To: <1379530118-22813-1-git-send-email-soren.brinkmann@xilinx.com> References: <1379530118-22813-1-git-send-email-soren.brinkmann@xilinx.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130918_144936_798430_E0AE5D7C X-CRM114-Status: GOOD ( 10.21 ) X-Spam-Score: 1.7 (+) Cc: Soren Brinkmann , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, KHOP_BIG_TO_CC,RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no 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 Zynq is based on an ARM Cortex-A9 MPCore, which features the arm_global_timer in its SCU. Therefore enable the timer for Zynq. Signed-off-by: Soren Brinkmann Acked-by: Daniel Lezcano --- v2: - rename DT node: global_timer@... => timer@... - add Daniel's ACK --- arch/arm/boot/dts/zynq-7000.dtsi | 8 ++++++++ arch/arm/mach-zynq/Kconfig | 1 + 2 files changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/zynq-7000.dtsi b/arch/arm/boot/dts/zynq-7000.dtsi index e32b92b..e7f73b2 100644 --- a/arch/arm/boot/dts/zynq-7000.dtsi +++ b/arch/arm/boot/dts/zynq-7000.dtsi @@ -92,6 +92,14 @@ }; }; + global_timer: timer@f8f00200 { + compatible = "arm,cortex-a9-global-timer"; + reg = <0xf8f00200 0x20>; + interrupts = <1 11 0x301>; + interrupt-parent = <&intc>; + clocks = <&clkc 4>; + }; + ttc0: ttc0@f8001000 { interrupt-parent = <&intc>; interrupts = < 0 10 4 0 11 4 0 12 4 >; diff --git a/arch/arm/mach-zynq/Kconfig b/arch/arm/mach-zynq/Kconfig index 04f8a4a..6b04260 100644 --- a/arch/arm/mach-zynq/Kconfig +++ b/arch/arm/mach-zynq/Kconfig @@ -13,5 +13,6 @@ config ARCH_ZYNQ select HAVE_SMP select SPARSE_IRQ select CADENCE_TTC_TIMER + select ARM_GLOBAL_TIMER help Support for Xilinx Zynq ARM Cortex A9 Platform