Watchdog in u-boot - imx6

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

Watchdog in u-boot - imx6

Jump to solution
6,264 Views
karthikeyanraju
Contributor III

Hi all,

 I am trying to enable watchdog in u-boot for imx6. I am using Yocto - imx_v2016.03_4.1.15_2.0.0_ga in SABRESD board.

In uboot .bb file i addedfollwing lines,

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
SRC_URI += "file://watchdog.patch"
SRC_URI += "file://watchdog1.patch"

In these 2 patches, the below changes are done.

path : git/include/configs$ vim mx6sabresd.h

/* Enabled Watchdog Timer */
#define CONFIG_IMX_WATCHDOG  

In another patch, I reduced the restarting time in 

#define CONFIG_WATCHDOG_TIMEOUT_MSECS 6000

Then i cleaned and compiled the u-boot. My patches are applied in source but the board is not restarting. Can anyone help me to enable the Watchdog.

Labels (1)
1 Solution
3,367 Views
karthikeyanraju
Contributor III

I have got solution for my problem. I successfully enabled watchdog in u-boot.

With the addition of my question  i have called the hw*_init() in board related file. This action will initialize that watchdog HW functions. Thank you.

View solution in original post

0 Kudos
2 Replies
3,368 Views
karthikeyanraju
Contributor III

I have got solution for my problem. I successfully enabled watchdog in u-boot.

With the addition of my question  i have called the hw*_init() in board related file. This action will initialize that watchdog HW functions. Thank you.

0 Kudos
3,367 Views
igorpadykov
NXP Employee
NXP Employee

Hi Karthikeyan

watchdog is not used in nxp uboot

uboot-imx.git - Freescale i.MX u-boot Tree 

however one can try to debug it checking watchdog registers with

sect.70.7.1 Watchdog Control Register (WDOGx_WCR) i.MX6DQ Reference Manual

http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6DQRM.pdf

Note, for reliable reset watchdog should reset power for whole board, not only for

i.MX6 processor. For example check MMPF0100 PWRON and WDOG connection on

SabreSD board spf-27392 schematic p.21


Schematics (1)
i.MX6_SABRE_SDP_DESIGNFILES
http://www.nxp.com/products/software-and-tools/hardware-development-tools/sabre-development-system/s...

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