How to enable watchdog at u-boot using env parameter?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to enable watchdog at u-boot using env parameter?

3,557 次查看
adarsh1997
Contributor III

Hi
I am using imx6sabresd custom design board.I need to enable wdog at u-boot.

I have successfully enabled watch dog at u-boot by doing following:

In include/configs/mx6sabresd.h

add
/* Enabled Watchdog Timer */
#define CONFIG_IMX_WATCHDOG
#define CONFIG_WATCHDOG_TIMEOUT_MSECS 60000

In /board/freescale/mx6sabresd/mx6sabresd.c

board late init

add
#ifdef CONFIG_IMX_WATCHDOG
hw_watchdog_init();
#endif

 

But now i want to enable wdog by u-boot environment variables after stop at u-boot.Is there any way i can do this?

 

 

 

0 项奖励
回复
1 回复

3,545 次查看
igorpadykov
NXP Employee
NXP Employee
0 项奖励
回复