[WATCHDOG] at32ap700x_wdt: add support for boot status and add fix for silicon errata
commitbb133450ee95746a9387f12de8bd738e79c21433
authorHans-Christian Egtvedt <hcegtvedt@atmel.com>
Tue, 30 Oct 2007 13:56:20 +0000 (30 14:56 +0100)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 19 Nov 2007 21:08:57 +0000 (19 21:08 +0000)
treefb3d97f06f27740df69b7e86e3ab924eda91bfce
parent2ffbb8377c7a0713baf6644e285adc27a5654582
[WATCHDOG] at32ap700x_wdt: add support for boot status and add fix for silicon errata

This patch enables the watchdog to read out the reset cause after a boot and
provide this to the user.

The driver will now also return -EIO if probed when booting from a watchdog
reset. This is due to a silicon errata in the AT32AP700x devices.

Detailed description and work-arounds can be found in the errata section of the
datasheet avilable from
http://www.atmel.com/dyn/products/datasheets.asp?family_id=682

Signed-off-by: Hans-Christian Egtvedt <hcegtvedt@atmel.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/watchdog/at32ap700x_wdt.c