Freescale Support:您好
CPU: i.MX6Q fsl-arm-yocto-bsp.git -b imx-3.14.28-1.0.0_ga
Project requirements:
Because the product demand WDI uses an external watchdog (Hardware watchdog SP706SEN), the uboot and kernel how to add this drive IO interrupt handling it?
Hardware watchdog SP706SEN
Please help
From uboot to kernel's external watchdog to add code or open what flag, please help, thank you
Hi haibo
one can modify wdog driver removing processor wdog and adding external watchdog
codes, please check attached Linux Manual Chapter 50 Watchdog (WDOG)
Driver Linux Manual. For uboot one can check
[U-Boot] [PATCH 1/1] mx51/mx53/mx6: add watchdog
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Figure:
app test
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
int main(void)
{
int fd = open("/dev/watchdog", O_WRONLY);
int ret = 0;
if (fd == -1) {
perror("watchdog");
exit(EXIT_FAILURE);
}
while (1) {
ret = write(fd, "\0", 1);
if (ret != 1) {
ret = -1;
break;
}
printf("hehaibo test\n");
sleep(1);
}
close(fd);
return ret;
}
How to WDI -> 177 the output pin of the IO (DISP0_CONTRAST)
SW1 for the closed, Constant reset,In the boot Start feeding the dog ,How to deal with, thank you