From patchwork Sat Dec 14 05:41:57 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Yanovich X-Patchwork-Id: 301228 X-Patchwork-Delegate: marek.vasut@gmail.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 206692C007E for ; Sat, 14 Dec 2013 16:50:15 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9BF064AB35; Sat, 14 Dec 2013 06:50:13 +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 7cJSEzZATTJj; Sat, 14 Dec 2013 06:50:13 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 322B14A9F8; Sat, 14 Dec 2013 06:50:12 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B5E884AB29 for ; Sat, 14 Dec 2013 06:50:04 +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 b-Qjao2ia0jo for ; Sat, 14 Dec 2013 06:50:00 +0100 (CET) X-Greylist: delayed 455 seconds by postgrey-1.27 at theia; Sat, 14 Dec 2013 06:49:53 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 mail-la0-f47.google.com (mail-la0-f47.google.com [209.85.215.47]) by theia.denx.de (Postfix) with ESMTPS id 3C7FB4AAED for ; Sat, 14 Dec 2013 06:49:53 +0100 (CET) Received: by mail-la0-f47.google.com with SMTP id ep20so1901895lab.6 for ; Fri, 13 Dec 2013 21:49:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Puw9Kbc/UB/APgrT0iJAeUamSmZkLcXiRIuGSeIQmY8=; b=lddClnAsmgZdFt68H+QKjS+GOtFE0OzFqfXv7e2k4spZsUUcGrVihEpIC7WGAzEHXn HGofOC7J3B4Z7Uh7l7CEhyxX4GYbj+IcAaQHGUycide5Qi2prefinOUK7nsbG4GlDkf9 ZFKIfj76m3FAFqTdGvZgd5R+MY9Z4dlYViH1Lm2xcp1CFqrXyiCloxLh1IrST84GxCLD eqEqGT5sbDvQP2neb4WpdbT5xnaJT9PLaj1SbKqTy719h+7fFvCBPmZf7ulzqgG+Q0Ss dQojzrqeHz4oC0wykvKGFG7zCkOrq3zBqcTlSzmzonDspLpASO6QuImwnHQdLGXAA7Td 3XxQ== X-Received: by 10.153.7.106 with SMTP id db10mr3195441lad.9.1386999737888; Fri, 13 Dec 2013 21:42:17 -0800 (PST) Received: from host5.omatika.ru (0893675324.static.corbina.ru. [95.31.1.192]) by mx.google.com with ESMTPSA id bo10sm1251749lbb.16.2013.12.13.21.42.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Dec 2013 21:42:17 -0800 (PST) From: Sergei Ianovich To: u-boot@lists.denx.de Date: Sat, 14 Dec 2013 09:41:57 +0400 Message-Id: <1386999720-23460-2-git-send-email-ynvich@gmail.com> X-Mailer: git-send-email 1.8.4.3 In-Reply-To: <1386999720-23460-1-git-send-email-ynvich@gmail.com> References: <1386999720-23460-1-git-send-email-ynvich@gmail.com> Cc: Marek Vasut Subject: [U-Boot] [PATCH 1/4] ARM: pxa: prevent PXA270 occasional reboot freezes 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: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Erratum 71 of PXA270M Processor Family Specification Update (April 19, 2010) explains that watchdog reset time is just 8us insead of 10ms in EMTS. If SDRAM is not reset, it causes memory bus congestion and the device hangs. We put SDRAM in selfresh mode before watchdog reset, removing potential freezes. Signed-off-by: Sergei Ianovich --- arch/arm/cpu/pxa/pxa2xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/pxa/pxa2xx.c b/arch/arm/cpu/pxa/pxa2xx.c index c9a7d45..93ca2f0 100644 --- a/arch/arm/cpu/pxa/pxa2xx.c +++ b/arch/arm/cpu/pxa/pxa2xx.c @@ -281,5 +281,5 @@ void reset_cpu(ulong ignored) writel(tmp, OSMR3); for (;;) - ; + writel(MDREFR_SLFRSH, MDREFR); }