From: Ingo van Lil <inguin@gmx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] CFI Driver: Reset watchdog timer after each flash operation
Date: Sun, 04 Oct 2009 13:15:57 +0200 [thread overview]
Message-ID: <4AC883ED.8050006@gmx.de> (raw)
In-Reply-To: <20091003232910.BEF2F832E408@gemini.denx.de>
On 10/04/2009 01:29 AM, Wolfgang Denk wrote:
> No, not an exception, but the reference implementation. I cannot help
> it that most other architectures / SoCs don;t care much.
Well, if such an uncommon side-effect is expected of a function with a
well-known name it should at least be prominently documented. I like
Mike's suggestion to have a central udelay() implementation for that;
I'm gonna try to whip up a patch tomorrow.
>> I'm using an Atmel AT91-based custom board, and the udelay() function
>> can be found in cpu/arm926ejs/at91/timer.c. Unfortunately there's no
>> central udelay() implementation in lib_arm.
>
> Guess nobody attempted to use a WD on such a system before.
You hardly have a choice: After reset the AT91's watchdog timer runs at
maximum period (15 seconds), and the control register is one-time
writable. If you disable the watchdog in u-boot there's no way to
re-enable it later in the OS.
Regards,
Ingo
next prev parent reply other threads:[~2009-10-04 11:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-02 10:34 [U-Boot] [PATCH] CFI Driver: Reset watchdog timer after each flash operation Ingo van Lil
2009-10-02 11:06 ` Stefan Roese
2009-10-02 12:12 ` Ingo van Lil
2009-10-03 23:29 ` Wolfgang Denk
2009-10-04 11:15 ` Ingo van Lil [this message]
2009-10-04 11:49 ` Graeme Russ
2009-10-02 12:30 ` Wolfgang Denk
2009-10-02 18:31 ` Mike Frysinger
2009-10-02 19:35 ` Wolfgang Denk
2009-10-02 20:21 ` J. William Campbell
2009-10-02 21:59 ` Wolfgang Denk
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=4AC883ED.8050006@gmx.de \
--to=inguin@gmx.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