how to enable watchdog under uboot

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

how to enable watchdog under uboot

ソリューションへジャンプ
6,171件の閲覧回数
jonnyju
Contributor I


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

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
2,234件の閲覧回数
GraceH
Senior Contributor II

1. You need set HW_RTC_PERSISTENT0  bit AUTO_RESTART to 1.

mw.l 0x80056064 0x00020000

mw.l 0x80056004 0x00000018

mw.l 0x80056050 0x00001400

2. For the RTC_PERSISTENT1, except those described in reference manual, the other fields are for customer use.

bit BV_RTC_PERSISTENT1_GENERAL__RTC_FORCE_UPDATE is used for watchdog driver to get boot status mxs_wdt_ioctl.

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
2,235件の閲覧回数
GraceH
Senior Contributor II

1. You need set HW_RTC_PERSISTENT0  bit AUTO_RESTART to 1.

mw.l 0x80056064 0x00020000

mw.l 0x80056004 0x00000018

mw.l 0x80056050 0x00001400

2. For the RTC_PERSISTENT1, except those described in reference manual, the other fields are for customer use.

bit BV_RTC_PERSISTENT1_GENERAL__RTC_FORCE_UPDATE is used for watchdog driver to get boot status mxs_wdt_ioctl.

0 件の賞賛
返信