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 /include/pwm.h | |
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 'include/pwm.h')
-rw-r--r-- | include/pwm.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/pwm.h b/include/pwm.h index 39835012e9..08cea7e43a 100644 --- a/include/pwm.h +++ b/include/pwm.h @@ -51,5 +51,8 @@ int pwm_get_duty(enum pwm_channel ch); * addition to the primary output. */ #define PWM_CONFIG_COMPLEMENTARY_OUTPUT (1 << 3) - +/** + * PWM channel must stay active in low-power idle, if enabled. + */ +#define PWM_CONFIG_DSLEEP (1 << 4) #endif /* __CROS_EC_PWM_H */ |