'Re: Implement a watchdog' - MARC
update:2021-11-9

i have a ENDAT 7703 motherboard near my desk,
the manual point out some instruction to configure the
watchdog :

//init, select the destination of command...

outportb(0x2e,0x87);
outportb(0x2e,0x87);
outportb(0x2e,0x07);
outportb(0x2f,0x08);

//com

outportb(0x2e,0x30); //main

outportb(0x2f,0x01); //0 to inactive

outportb(0x2e,0xf2); //reset param

outportb(0x2f,0x00); // bit 6 keyboard, bit 7 mouse

outportb(0x2e,0xf0); //time unit conf
outportb(0x2f,0x04); // bit3 = 1 minutes

outportb(0x2e,0xf1); // how much time
outportb(0x2f,1); // 1 minute

I suppose only the kernel can write to the 0x2e and 0x2f address ?

Usually watchdog are detected and shown in dmesg, have i to ask more
detail to the supplier ?

Looks like a semi-standard "motherboard plug and play" SuperIO unlock
sequence to me. If you can find out what chip they use on the
motherboard, you might be able to find a data sheet for it.

Referenced from:https://marc.info/?l=openbsd-tech&m=141821845915978&w=2

本文链接地址:https://const.net.cn/574.html

标签: GPIO

添加新评论