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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1,742 Views
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 Kudos
1 Reply

1,730 Views
igorpadykov
NXP Employee
NXP Employee
0 Kudos