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
TEST=builds
#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
