imx6 Watchdog

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

imx6 Watchdog

5,144 Views
pinglunliao
Contributor I

Hello All:

Kernel version: 3.10.53

Android BSP: 5.0.2

 

From "i.MX 6Dual/6Quad Applications Processor Reference Manual, Rev. 3, 07/2015" Chapter 70. There are two WDOG modules, WDOG1 and WDOG2 (TZ) in the chip. And WDOG2 was enabled in linux driver(source code in attachments: imx2_wdt.c). How to modify this file to enable WDOG1(20B_C000) ?

 

Thanks for your help.

144287_144287.pngpastedImage_0.png

Original Attachment has been moved to: imx2_wdt.c.zip

Labels (3)
Tags (2)
0 Kudos
4 Replies

2,053 Views
igorpadykov
NXP Employee
NXP Employee

Hi pinglun

reset functions can be added to   ..arch/arm/mach-imx/system.c

and enable it in dts file:

http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/boot/dts/imx6qdl.dtsi?h=im...

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

2,053 Views
pinglunliao
Contributor I

Hi igor:

I follow your suggestions, and the result from kernel messsage:

imx2-wdt 20c0000.wdog: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=0)

20c0000 is the absolute address of WDOG2, and it works as I expected. Now, I want to enable WDOG1 which at address 20B_C000.

Could I use WDOG1 and WDOG2 (TZ) at same time?

Best regards

pinglun

0 Kudos

2,053 Views
igorpadykov
NXP Employee
NXP Employee

right, WDOG1 and WDOG2 (TZ) can be used at same time

~igor

0 Kudos

2,053 Views
pinglunliao
Contributor I

Hi igor:

When I use two WDOG modules at same time, I get the error message:

imx2-wdt 20bc000.wdog: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=0)

imx2-wdt: probe of 20c0000.wdog failed with error -16

imx2-wdt1: probe of 20c0000.wdog failed with error -16

Is there something I should be careful?

I just copy imx2_wdt.c as new WDOG driver( imx2_wdt1.c ) and modify Makefile to generate imx2_wdt1.o

Good luck.

pinglun

0 Kudos