ARM: i.MX: When SRSR shows wdog then lookup reset source in wdog
On i.MX6 when the watchdog has resetted the system then the SRSR
register correctly shows that the watchdog has resetted the system.
This is not the desired result though, a "reset" in barebox or "reboot"
in Linux should result in "RST" as reset source. So instead of making
the SRSR register value overwrite the reset source read from the
watchdog registers, interpret the SRSR value corresponding to watchdog
reset as "lookup details in the watchdog registers".

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Andrey Smirnov <andrew.smirnov@gmail.com>
1 parent 9b14a8b commit 475eac0d469f38654626734944fab4c63a32bd58
@Sascha Hauer Sascha Hauer authored on 15 Nov 2018
Showing 2 changed files
View
arch/arm/mach-imx/imx.c
View
drivers/watchdog/imxwd.c