public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Detlev Zundel <dzu@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Interrupt handler in U-Boot for MIPS based platform
Date: Fri, 27 May 2011 12:04:25 +0200	[thread overview]
Message-ID: <m2vcwwqx1y.fsf@ohwell.denx.de> (raw)
In-Reply-To: <BANLkTimNJWExnJhkwhkxKWG0BTppoipcYQ@mail.gmail.com> (Pandurang Kale's message of "Thu, 26 May 2011 18:44:17 +0100")

Hi Pandu,

> Hi all,
>
>     I was working on enabling the watchdog timer in the U-Boot for MIPS
> based platform. I set up the timer and watchdog. when the timer expires, I
> need to kick the watchdog until the user timeout period expires.
> I see that for ARM we have do_irq function which gets called when there is
> interrupt but I don't see any such mechanism for the MIPS.
>
>   Has any one implemented it for MIPS based platform? If not, any hint to
> get it working.

Generally we kick the watchdog from various places in the code with
WATCHDOG_RESET().  This way we do not need any interrupts and you should
be seeing watchdog triggers immediately without adding anything more.
Just grep for occurrences of this macro.

Cheers
  Detlev 

-- 
Emacs is the way to purify your soul using garbage collection.
--
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

  reply	other threads:[~2011-05-27 10:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-26 17:44 [U-Boot] Interrupt handler in U-Boot for MIPS based platform Pandurang Kale
2011-05-27 10:04 ` Detlev Zundel [this message]
2011-05-28  3:31 ` Shinya Kuribayashi

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=m2vcwwqx1y.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