IMX7 Watchdog in uboot is not starting..?

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

IMX7 Watchdog in uboot is not starting..?

1,352 Views
flabyjacob
Contributor III

Hi all,

I am working on a custom board based on imx7d-sdb reference board, in my board i  have connected MX7D_PAD_GPIO1_IO00__WDOG1_WDOG_B pin to POR pin of imx7 and watchdog is resetting board also. but i want to reset board in any case of booting failure like kernel panic wrong rootfs partition selection and many more so i tired to enable watchdog for my board in uboot so that it will reset board in any case of booting failure but i am not able to achieve that.

my assumption is if i will set watchdog timer at uboot and boot boot the board, if any mishap happen while booting that board will be reset by watchdog timer.

please guide me to enable watchdog timer in uboot or if anybody have better solution for this please let me know.

thanks and regards.

Labels (2)
2 Replies

1,251 Views
igorpadykov
NXP Employee
NXP Employee

Hi Flaby

one can try to configure wdog in uboot:

mx7dsabresd.c\mx7dsabresd\freescale\board - uboot-imx - i.MX U-Boot 

As for "kernel panic", may be useful to check wdog behaviour in linux low power modes:

bit WDZST in register WDOGx_WCR - 0 Continue timer operation

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,251 Views
igorpadykov
NXP Employee
NXP Employee

it can be set in set_wdog_reset() function:

soc.c\mx6\mach-imx\arm\arch - uboot-imx - i.MX U-Boot 

Best regards
igor