audk/ArmPlatformPkg/Drivers/SP805WatchdogDxe
Ard Biesheuvel 5afabd5ec3 ArmPlatformPkg/SP805WatchdogDxe: switch to interrupt mode
The SP805 watchdog driver doesn't implement the PI watchdog protocol
fully, but always simply resets the system if the watchdog time runs
out.

However, the hardware does support the intended usage model, as long
as the SP805 is wired up correctly. So let's implement interrupt based
mode involving a handler that is registered by the DXE core and invoked
when the watchdog runs out. In the interrupt handler, we invoke the
notify function if one was registered, before calling the ResetSystem()
runtime service (as per the UEFI spec)

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2018-12-20 12:41:21 +01:00
..
SP805Watchdog.c ArmPlatformPkg/SP805WatchdogDxe: switch to interrupt mode 2018-12-20 12:41:21 +01:00
SP805Watchdog.h ArmPlatformPkg: move internal SP805 header into driver directory 2017-11-30 16:08:39 +00:00
SP805WatchdogDxe.inf ArmPlatformPkg/SP805WatchdogDxe: switch to interrupt mode 2018-12-20 12:41:21 +01:00