AnsweredAssumed Answered

how to enable watchdog under uboot

Question asked by jonny ju on Jun 3, 2013
Latest reply on Jun 17, 2013 by GraceH


Dear all

 

     i'm working on an imx28 rev D board.

 

     i want to enable watchdog under uboot,

     so i use mw command to modify reg's value to enable watchodg

 

     command is:

     > mw.l 0x80056004 0x00000018

     > mw.l 0x80056050 0x00001400

 

     after 5 seconds, the board does reset, by it cannot restart.

     and only print: H0x80501003 and 0x80502008.

     what else should be done?

 

     and another question is the code in kernel @wdt_enable func:

     static void wdt_enable(u32 value)

     {

          ......

          __raw_writel(BV_RTC_PERSISTENT1_GENERAL__RTC_FORCE_UPDATER,

                         wdt_base + HW_RTC_PERSISTENT1_SET);

          ......

     }

     why should we wirte BV_RTC_PERSISTENT1_GENERAL__RTC_FORCE_UPDATER into HW_RTC_PERSISTENT1_SET?

     because these is no description about this.

 

     thks all

Outcomes