From: Detlev Zundel <dzu@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Watchdog support for ppc4xx
Date: Fri, 21 May 2010 11:05:53 +0200 [thread overview]
Message-ID: <m2d3wp4ob2.fsf@ohwell.denx.de> (raw)
In-Reply-To: <20100520184658.C61D2E67644@gemini.denx.de> (Wolfgang Denk's message of "Thu, 20 May 2010 20:46:58 +0200")
Hi Wolfgang,
> Dear Stefan Roese,
>
> In message <201005201355.01964.sr@denx.de> you wrote:
>>
>> > Also I would like to determine in u-boot if a
>> > reset was caused by the watchdog timer using the TSR WRS field. If it
>> > was reset by the watchdog we will boot into a failsafe partition to
>> > protect against system update errors.
>> >
>> > Has anyone done something like this?
>>
>> Such a detection is not implemented for PPC4xx. Not sure if it's implemented
>> for any other architecture.
>
> I think lwmon5 performs such checking; eventually this is buryied
> somewhere in the POST code.
Well, at least I know that for mpc5121 we read the reser status register
at boot and copy it to global data
(arch/powerpc/cpu/mpc512x/cpu_init.c:64). The value is also output in
the U-Boot prompt (arch/powerpc/cpu/mpc512x/cpu.c:68) which is a nice
thing IMHO.
Checking a "git grep reset_status" one can see that something similar is
done for other PowerPC cpus as well, so I'd suggest reusing this method
for ppc4xx and providing a mechanism to access this information from a
script.
Cheers
Detlev
--
Wenn ein Kopf und ein Buch zusammenstossen und es klingt hohl; ist
denn das allemal im Buche?
- Lichtenberg
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
next prev parent reply other threads:[~2010-05-21 9:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-19 22:27 [U-Boot] Watchdog support for ppc4xx Mark Maestas
2010-05-20 11:55 ` Stefan Roese
2010-05-20 17:58 ` Mark Maestas
2010-05-20 18:46 ` Wolfgang Denk
2010-05-21 9:05 ` Detlev Zundel [this message]
2010-06-04 18:26 ` Mark Maestas
2010-06-04 19:46 ` Wolfgang Denk
2010-06-04 20:14 ` Mark Maestas
2010-07-07 17:54 ` Chen Wen
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=m2d3wp4ob2.fsf@ohwell.denx.de \
--to=dzu@denx.de \
--cc=u-boot@lists.denx.de \
/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