From patchwork Thu Mar 28 16:38:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 2358311 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 566BADF2A1 for ; Thu, 28 Mar 2013 16:53:16 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ULG27-0006z0-HB; Thu, 28 Mar 2013 16:50:38 +0000 Received: from mail-wi0-x22f.google.com ([2a00:1450:400c:c05::22f]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ULFqV-0008CK-TF for linux-arm-kernel@lists.infradead.org; Thu, 28 Mar 2013 16:38:39 +0000 Received: by mail-wi0-f175.google.com with SMTP id c10so3500821wiw.8 for ; Thu, 28 Mar 2013 09:38:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:from:to:subject:date:message-id:x-mailer :in-reply-to:references:in-reply-to:references:x-gm-message-state; bh=npiPvcDNB2tqW3gMjMJyi0OkB43/fFrJWtQbtBoZi7o=; b=TS+RhoDbUqwkRdhRgqXcLquaD7Z1HFclwvGyxzVVKOc0W0Hnr83n+vzHmYAHFhdz8J fYsNLhiJlOHzuXYfcYa6/E+CW3hyhxaka8Eb+nEgpBfuQl3NdPn3BEsbFxzlbCLsE9SR T2gR/ILY2CdM0i1ZHpJT27ogLboOaNrR7AfEf0JiNm7auI14i1iew0xYY95ds/DVPWiz 25d/GtYuN8ErgPT7t0gVVcuRezdW5/dnsE19vsxiWG1clx0FGdd227H43+XSRSMF3OsT CbAvqJWsvBCYJ14emnp4iY+ks1ecPWFZ/awxTx2u2IR71fV65yn7Iyh2Z/ECBEKfZCae bEaA== X-Received: by 10.194.110.136 with SMTP id ia8mr39767082wjb.58.1364488710193; Thu, 28 Mar 2013 09:38:30 -0700 (PDT) Received: from localhost (nat-63.starnet.cz. [178.255.168.63]) by mx.google.com with ESMTPS id t7sm15247046wij.2.2013.03.28.09.38.29 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Thu, 28 Mar 2013 09:38:29 -0700 (PDT) From: Michal Simek To: linux-arm-kernel@lists.infradead.org, monstr@monstr.eu, Josh Cartwright , Steffen Trumtrar , Rob Herring Subject: [PATCH v3 09/12] arm: zynq: Add smp_twd timer Date: Thu, 28 Mar 2013 17:38:09 +0100 Message-Id: <4a98ba06bb10c524b9ab951608eb955360229995.1364488495.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.7.9.7 In-Reply-To: <1364488692-18709-1-git-send-email-michal.simek@xilinx.com> References: <1364488692-18709-1-git-send-email-michal.simek@xilinx.com> In-Reply-To: References: X-Gm-Message-State: ALoCoQkDQvZuTkg3/Aefb+nLnN0t6nObkLtJZoZAsyJcV0wBVNMzyA3sYN2fNIS51wbHvBHrt7Vb X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130328_123837_092515_97D355D0 X-CRM114-Status: UNSURE ( 9.69 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 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 The zynq has a Cortex-A9 with the corresponding smp_twd timers. Use them. Signed-off-by: Steffen Trumtrar Signed-off-by: Michal Simek --- v3: New patch for this series to avoid bug in hotplug Warning log: zynq> echo 1 > /sys/devices/system/cpu/cpu1/online CPU1: Booted secondary processor Clockevents: could not switch to one-shot mode: dummy_timer is not functional. Could not switch to high resolution mode on CPU 1 --- arch/arm/boot/dts/zynq-7000.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/zynq-7000.dtsi b/arch/arm/boot/dts/zynq-7000.dtsi index 748fc34..14fb2e6 100644 --- a/arch/arm/boot/dts/zynq-7000.dtsi +++ b/arch/arm/boot/dts/zynq-7000.dtsi @@ -136,5 +136,12 @@ clock-names = "cpu_1x"; clock-ranges; }; + scutimer: scutimer@f8f00600 { + interrupt-parent = <&intc>; + interrupts = < 1 13 0x301 >; + compatible = "arm,cortex-a9-twd-timer"; + reg = < 0xf8f00600 0x20 >; + clocks = <&cpu_clk 1>; + } ; }; };