Re: [U-Boot] Interrupt handler in U-Boot for MIPS based platform

2011-05-27 Thread Detlev Zundel
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: d...@denx.de
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Interrupt handler in U-Boot for MIPS based platform

2011-05-27 Thread Shinya Kuribayashi
On 5/27/11 2:44 AM, Pandurang Kale wrote:
Has any one implemented it for MIPS based platform? If not, any hint to
 get it working.

https://www.ibm.com/developerworks/mydeveloperworks/blogs/ddou/entry/implementing_mips_interrupts_for_u_boot28?lang=en
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] Interrupt handler in U-Boot for MIPS based platform

2011-05-26 Thread Pandurang Kale
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.

Thanks,
Pandu
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot