diff options
author | Xiubo Li <Li.Xiubo@freescale.com> | 2014-10-16 11:44:15 +0800 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2015-01-21 14:45:16 +0100 |
commit | bbd5900935be8755b6344386373174b20cd474a2 (patch) | |
tree | 5a1d70c25a6c46e08dd578a9222971ea93e9adb2 /drivers/watchdog/omap_wdt.h | |
parent | ec6f34e5b552fb0a52e6aae1a5afbbb1605cc6cc (diff) |
watchdog: imx2_wdt: Improve power management support.
Improve power management operations(suspend and resume) as part of
dev_pm_ops for IMX2 watchdog driver.
If PM will be supported, please make sure that the wdev->clk
could disable the watchdog's counter input clock source or can
mask watchdog's reset request to the core.
If watchdog is still used by consumers and resumes from deep
sleep state, we need to restart the watchdog again without
enabling the timer.
If watchdog been has started --> stopped by the consumers and
resumes from non-deep sleep state, then start the timer again.
If watchdog has been started --> stopped by the consumers and
resumes from deep sleep state, will do nothing. The watchdog
will be restarted by consumers next time to be used.
Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/omap_wdt.h')
0 files changed, 0 insertions, 0 deletions