watchdog: f71808e: maintain watchdog timeout occurred flag
If we experience a watchdog reset, the indicating flag should persist
till the Linux driver had a chance to see it.

The flag bit is special however in that writing 1 clears the bit and
writing 0 keeps it intact, i.e. :

Bit
read written  result
  0     0     = 0
  1     0     = 1
  0     1     = 0
  1     1     = 0

So in the bootloader, we should write a zero always. The OS on the
other hand can either write 1 or the old value after reading to
clear the flag.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 6c1e768 commit 04aa7be82a2df5bec926d6e426e36accd44808a2
@Ahmad Fatoum Ahmad Fatoum authored on 11 Jun 2020
Sascha Hauer committed on 17 Jun 2020
Showing 1 changed file
View
drivers/watchdog/f71808e_wdt.c