diff options
Diffstat (limited to 'chip/lm4/pwm.c')
-rw-r--r-- | chip/lm4/pwm.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/chip/lm4/pwm.c b/chip/lm4/pwm.c index 62bd08a571..e27dbac831 100644 --- a/chip/lm4/pwm.c +++ b/chip/lm4/pwm.c @@ -342,3 +342,19 @@ static int pwm_init(void) return EC_SUCCESS; } DECLARE_HOOK(HOOK_INIT, pwm_init, HOOK_PRIO_DEFAULT); + + +static int pwm_resume(void) +{ + pwm_enable_fan(1); + return EC_SUCCESS; +} +DECLARE_HOOK(HOOK_CHIPSET_RESUME, pwm_resume, HOOK_PRIO_DEFAULT); + + +static int pwm_suspend(void) +{ + pwm_enable_fan(0); + return EC_SUCCESS; +} +DECLARE_HOOK(HOOK_CHIPSET_SUSPEND, pwm_suspend, HOOK_PRIO_DEFAULT); |