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.
Original Attachment has been moved to: imx2_wdt.c.zip
Hi pinglun
reset functions can be added to ..arch/arm/mach-imx/system.c
and enable it in dts file:
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
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
right, WDOG1 and WDOG2 (TZ) can be used at same time
~igor
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