public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jerry Van Baren <gerald.vanbaren@smiths-aerospace.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Software watchdog on mpc8247
Date: Thu, 25 Aug 2005 07:40:40 -0400	[thread overview]
Message-ID: <430DAE38.2090903@smiths-aerospace.com> (raw)
In-Reply-To: <f870da180508242246126ce433@mail.gmail.com>

Mike Rapoport wrote:
> Hello,
> 
> I have a custom board with mpc8247 processor. I'd like to use it's
> internal watchdog capability in u-boot (and linux).
> I've tried to use the folliwing defines in my board config file
> (include/configs/my_board.h):
> 
> #define CONFIG_WATCHDOG   1
> #if defined(CONFIG_WATCHDOG)
> #define CFG_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
>            SYPCR_SWRI|SYPCR_SWP|SYPCR_SWE)
> #else
> #define CFG_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
>            SYPCR_SWRI|SYPCR_SWP)
> #endif /* CONFIG_WATCHDOG */
> 
> but the board does not boot when the watchdog is enabled.
> I use u-boot 1.1.3 release.
> 
> --
> Sincerely yours,
> Mike Rapoport

What did you set the SYPCR to (actual values, preferably from a 
disassembly/dump)?  What is your bus clock?  What do you figure your 
timeout to be?  Do you write to the SYPCR only once to set up the WDT 
(only the first write to the SYPCR "works").

gvb

  parent reply	other threads:[~2005-08-25 11:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-25  5:46 [U-Boot-Users] Software watchdog on mpc8247 Mike Rapoport
2005-08-25  7:04 ` Wolfgang Denk
2005-08-25 10:42   ` Mike Rapoport
2005-08-25 11:40 ` Jerry Van Baren [this message]
2005-08-25 12:35   ` Mike Rapoport
2005-08-25 12:51     ` Jerry Van Baren
2005-08-25 13:55       ` Mike Rapoport
2005-08-25 14:40         ` Jerry Van Baren

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=430DAE38.2090903@smiths-aerospace.com \
    --to=gerald.vanbaren@smiths-aerospace.com \
    --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