From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: ARM926 Software reset problems
Date: Fri, 13 Nov 2009 12:20:45 +0000 [thread overview]
Message-ID: <20091113122045.GA29008@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <B3925569A02247AFA3847BB80F9342EF@teltronic.es>
On Fri, Nov 13, 2009 at 12:32:16PM +0100, Ricardo Mart?nez wrote:
> I'm using
> cpu_arm926_reset(ulong address) function which:
> - flushes I/D caches
> - jumps to "address", whose value in my case is NOR flash base
> address where U-Boot stays (after remapping).
You should not be using this directly. Software rebooting has a specific
sequence, and the above is the very last step.
> But it sometimes work, but most times hangs. Can this be caused by MMU
> not being switched off?
cpu_arm926_reset() turns the MMU and caches off.
> Is there any other prefered method to soft reboot ARM926 from Linux? I've
> taken a look at some PXA, OMAP & AT91 code about soft rebooting. It seems
> they use Watchdog timer to reset, but my CPU does not have a watchdog.
Don't call cpu_arm926_reset() directly. Use kernel_restart() instead,
or even better the reboot syscall from userspace.
next prev parent reply other threads:[~2009-11-13 12:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-13 11:32 ARM926 Software reset problems Ricardo Martínez
2009-11-13 12:20 ` Russell King - ARM Linux [this message]
2009-11-13 14:41 ` Ricardo Martínez
2009-11-13 14:51 ` Russell King - ARM Linux
2009-11-13 14:59 ` Dieter Kiermaier
2009-11-13 16:31 ` Ricardo Martínez
2009-11-13 16:37 ` Russell King - ARM Linux
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091113122045.GA29008@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).