From patchwork Wed Nov 21 10:45:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Davide Bonfanti X-Patchwork-Id: 200769 X-Patchwork-Delegate: trini@ti.com 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 7574C2C008F for ; Thu, 22 Nov 2012 01:04:26 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 77E2F4A359; Wed, 21 Nov 2012 15:04:22 +0100 (CET) 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 QoxhAzXpRtNx; Wed, 21 Nov 2012 15:04:22 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 273174A09C; Wed, 21 Nov 2012 15:04:19 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 05BE34A02E for ; Wed, 21 Nov 2012 11:59:43 +0100 (CET) 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 odRSpmwfwMKi for ; Wed, 21 Nov 2012 11:59:41 +0100 (CET) X-Greylist: delayed 909 seconds by postgrey-1.27 at theia; Wed, 21 Nov 2012 11:59:39 CET X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from bticino.it (mx1.bticino.it [91.208.195.90]) by theia.denx.de (Postfix) with ESMTPS id 1DCCA4A02D for ; Wed, 21 Nov 2012 11:59:39 +0100 (CET) Received: from ([10.31.15.91]) by smtp1.bticino.it with ESMTP id 5RSHRF1.84138413; Wed, 21 Nov 2012 11:44:22 +0100 Received: from localhost ([10.39.10.63]) by notes-mta.srvnts.grpleg.com (Lotus Domino Release 8.5.3FP1) with ESMTP id 2012112111441949-176 ; Wed, 21 Nov 2012 11:44:19 +0100 Date: Wed, 21 Nov 2012 11:45:12 +0100 From: Davide Bonfanti To: u-boot@lists.denx.de Message-ID: <20121121104512.GA19045@BT22081> MIME-Version: 1.0 X-attached: none User-Agent: Mutt/1.5.21 (2010-09-15) X-MIMETrack: Itemize by SMTP Server on NOTES-MTA/BTICINO/IT(Release 8.5.3FP1|March 07, 2012) at 21/11/2012 11:44:19, Serialize by Router on IT-VAR-HUB-01/SRV/GRPLEG(Release 8.5.3FP1|March 07, 2012) at 21/11/2012 11.44.22, Serialize complete at 21/11/2012 11.44.22 Content-Disposition: inline X-Mailman-Approved-At: Wed, 21 Nov 2012 15:04:17 +0100 Cc: trini@ti.com Subject: [U-Boot] [PATCH v0] davinci: fixed cpu reset 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 The reset procedure works on watchdog timer while before it was modifying TIMER_1 registers. Tested on DM365. Signed-off-by: Davide Bonfanti --- arch/arm/cpu/arm926ejs/davinci/reset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/arm926ejs/davinci/reset.c b/arch/arm/cpu/arm926ejs/davinci/reset.c index 968fb03..80f1ce9 100644 --- a/arch/arm/cpu/arm926ejs/davinci/reset.c +++ b/arch/arm/cpu/arm926ejs/davinci/reset.c @@ -16,7 +16,7 @@ void reset_cpu(unsigned long a) { struct davinci_timer *const wdttimer = - (struct davinci_timer *)DAVINCI_TIMER1_BASE; + (struct davinci_timer *)DAVINCI_WDOG_BASE; writel(0x08, &wdttimer->tgcr); writel(readl(&wdttimer->tgcr) | 0x03, &wdttimer->tgcr); writel(0, &wdttimer->tim12);