From patchwork Wed Aug 28 05:36:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 270360 X-Patchwork-Delegate: albert.aribaud@free.fr Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id D5A012C00AC for ; Wed, 28 Aug 2013 15:37:10 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3D9374A081; Wed, 28 Aug 2013 07:37:07 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SJA+H8bKUwJT; Wed, 28 Aug 2013 07:37:07 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3F9554A065; Wed, 28 Aug 2013 07:37:03 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7C7344A065 for ; Wed, 28 Aug 2013 07:36:57 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TxoZt-5u+Eea for ; Wed, 28 Aug 2013 07:36:52 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 BL_NJABL=ERR(-1.5) (only DNSBL check requested) Received: from mail-ee0-f41.google.com (mail-ee0-f41.google.com [74.125.83.41]) by theia.denx.de (Postfix) with ESMTPS id 26BB74A064 for ; Wed, 28 Aug 2013 07:36:45 +0200 (CEST) Received: by mail-ee0-f41.google.com with SMTP id d17so2690006eek.0 for ; Tue, 27 Aug 2013 22:36:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version:content-type; bh=cb+79CMwq14AyMb7pkewIYw2GXDIlYi7NckxKnm88BI=; b=nhj4d4oM+x20rEajGcmx8SrRcJs+Ap5NFVi54BL/xoVIxCHzGyRqGhQAnXFa9JV57H QJyx9s5yX/JMbcxeFnkJjIDdWUDsMJKWPZFWK/x5LvFLGq11ebEZNn58HGhFGJs+ruW8 j8bwVAsUJWMJ7Bo2J646PwtAYqh0u0s/M4STzHwVtelyro8RSS2d/slqgj3FzX3MtFIl XOrvV0TqBrpu/z+mX97EgbEdU9DoUrl8vtiOfLmO9w0YHiZhKDnUJcvoJfW8qOsiXeS8 UcM7qmekO8YTAp4Gfp+xQkP69eJ0NMC31U3OZuQVhyfuxvx3NBqcu/4+VHB8efD/Rrat uQbg== X-Gm-Message-State: ALoCoQmdaLuApemFVAmXP8IwWs9R1qnP8xuYLXoR/kTFaZp4cSbEjEKd2Bd75kIrT6gCwD5OimO0 X-Received: by 10.15.63.14 with SMTP id l14mr35583803eex.13.1377668204741; Tue, 27 Aug 2013 22:36:44 -0700 (PDT) Received: from localhost (nat-63.starnet.cz. [178.255.168.63]) by mx.google.com with ESMTPSA id a43sm34168079eep.9.1969.12.31.16.00.00 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Tue, 27 Aug 2013 22:36:44 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de, Albert Aribaud , Stephen MacMahon , =?UTF-8?q?S=C3=B6ren=20Brinkmann?= Date: Wed, 28 Aug 2013 07:36:31 +0200 Message-Id: <623c0728fe68cefd13c69a3ac056bd190c1f5642.1377668188.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.8.2.3 Mime-Version: 1.0 X-Mime-Autoconverted: from 8bit to 7bit by mimegpg Subject: [U-Boot] [PATCH] arm: zynq: Fix timer loadaddress X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Reload address was written to the counter register instead of load register. The problem happens when timer expires but never reload to ~0UL (it is downcount timer). Reported-by: Stephen MacMahon Signed-off-by: Michal Simek --- arch/arm/cpu/armv7/zynq/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.8.2.3 diff --git a/arch/arm/cpu/armv7/zynq/timer.c b/arch/arm/cpu/armv7/zynq/timer.c index 0133565..3b8d949 100644 --- a/arch/arm/cpu/armv7/zynq/timer.c +++ b/arch/arm/cpu/armv7/zynq/timer.c @@ -57,7 +57,7 @@ int timer_init(void) SCUTIMER_CONTROL_ENABLE_MASK; /* Load the timer counter register */ - writel(0xFFFFFFFF, &timer_base->counter); + writel(0xFFFFFFFF, &timer_base->load); /* * Start the A9Timer device