]> git.karo-electronics.de Git - karo-tx-linux.git/commit
watchdog: sch311x_wdt: Fix Polarity when starting watchdog
authorWim Van Sebroeck <wim@iguana.be>
Sun, 8 Jul 2012 12:57:09 +0000 (14:57 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Sun, 8 Jul 2012 13:11:34 +0000 (15:11 +0200)
commit80eb8cbec840ac3995480867ac8d02bfcf6258fe
tree83c89f347ffc79eb98d32a5c06b2c9d1e03aac9b
parentd08ae9a56a3930e901b2c38a6c45e1df77698bc6
watchdog: sch311x_wdt: Fix Polarity when starting watchdog

Some motherboards like the Advantech ARK3400 documentation
use a non-inverted GPIO pin. We fix this by assuming that
the BIOS will set the Polarity bit for the GPIO correctly
at startup and we keep the Bit-setting intact when we start
and stop the watchdog.

Reported-by: Jean-François Deverge <jf.deverge@gmail.com>
Signed-off-by: Dave Mueller <d.mueller@elsoft.ch>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/sch311x_wdt.c