diff options
author | Shawn Nematbakhsh <shawnn@chromium.org> | 2016-04-27 13:54:52 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-04-27 23:58:04 -0700 |
commit | ab27f42f5636af5fba50a871e391018cb1c885bf (patch) | |
tree | b3c6e464b0b8e5a44b61c6e814220ef4293b0c92 /chip/lm4 | |
parent | 8d742588ade84d45ce6fe7ca069d6087fac6928c (diff) | |
download | chrome-ec-ab27f42f5636af5fba50a871e391018cb1c885bf.tar.gz |
pwm: Add PWM_CONFIG_DSLEEP config flag
Add PWM_CONFIG_DSLEEP PWM config flag, which can be set to keep a
channel active during low-power idle / deep sleep. Currently it's
supported by npcx and mec1322.
BUG=chrome-os-partner:52783
BRANCH=glados
TEST=Manual on chell w/ subsequent commit + CONFIG_LOW_POWER_S0. Verify
KB backlight does not flicker during idle.
Change-Id: Ib9df5879aaa7dfa5764de1583496de84d40d2bb5
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/341002
Commit-Ready: Shawn N <shawnn@chromium.org>
Tested-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
Diffstat (limited to 'chip/lm4')
-rw-r--r-- | chip/lm4/fan.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/chip/lm4/fan.c b/chip/lm4/fan.c index 01f561433d..0153b275fc 100644 --- a/chip/lm4/fan.c +++ b/chip/lm4/fan.c @@ -177,13 +177,10 @@ void fan_channel_setup(int ch, unsigned int flags) static void fan_init(void) { -#ifdef CONFIG_PWM_DSLEEP - +#ifdef CONFIG_FAN_DSLEEP /* Enable the fan module and delay a few clocks */ clock_enable_peripheral(CGC_OFFSET_FAN, 0x1, CGC_MODE_ALL); - #else - /* Enable the fan module and delay a few clocks */ clock_enable_peripheral(CGC_OFFSET_FAN, 0x1, CGC_MODE_RUN | CGC_MODE_SLEEP); |