From 815c2463e1535eb4cf4b3e6d387d628c0ac66f2b Mon Sep 17 00:00:00 2001 From: Diana Z Date: Mon, 17 Dec 2018 12:04:52 -0700 Subject: Octopus: correct keyboard backlight flags Since we're allowing deep sleep on the NPCX EC in the S0 power state, the keyboard backlight should be configured to stay on during sleep in order to prevent it from flashing. BRANCH=octopus BUG=None TEST=builds Change-Id: I1f41b9b00e2808520e773497991d389d23bf25fb Signed-off-by: Diana Z Reviewed-on: https://chromium-review.googlesource.com/1383195 Reviewed-by: Jett Rink --- baseboard/octopus/variant_ec_npcx796fb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/baseboard/octopus/variant_ec_npcx796fb.c b/baseboard/octopus/variant_ec_npcx796fb.c index 9089e0fb19..bccb360563 100644 --- a/baseboard/octopus/variant_ec_npcx796fb.c +++ b/baseboard/octopus/variant_ec_npcx796fb.c @@ -10,6 +10,7 @@ #include "i2c.h" #include "power.h" #ifdef CONFIG_PWM +#include "pwm.h" #include "pwm_chip.h" #endif #include "timer.h" @@ -45,7 +46,8 @@ const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports); /******************************************************************************/ /* PWM channels. Must be in the exactly same order as in enum pwm_channel. */ const struct pwm_t pwm_channels[] = { - [PWM_CH_KBLIGHT] = { .channel = 3, .flags = 0, .freq = 100 }, + [PWM_CH_KBLIGHT] = { .channel = 3, .flags = PWM_CONFIG_DSLEEP, + .freq = 100 }, }; BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT); #endif -- cgit v1.2.1