From b00ac9439f742b29632f9db5eaf4516ae957503b Mon Sep 17 00:00:00 2001 From: Ben Chen Date: Fri, 16 Apr 2021 17:14:38 +0800 Subject: spherion: fix kblight will blinking in DC mode. Undefine CONFIG_LOW_POWER_S0, don't enter power saving in S0 state. BUG=b:185438302 BRANCH=asurada TEST=make buildall PASS, the kb light function is PASS. Change-Id: Ife9796c0ada5213cd8d9e9cf9fbb086603b76d1d Signed-off-by: Ben Chen Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2830667 Reviewed-by: Ting Shen --- board/spherion/board.c | 2 +- board/spherion/board.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/board/spherion/board.c b/board/spherion/board.c index 0a3ce41ec1..189d03a073 100644 --- a/board/spherion/board.c +++ b/board/spherion/board.c @@ -85,7 +85,7 @@ BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT); */ const struct pwm_t pwm_channels[] = { [PWM_CH_KBLIGHT] = { - .channel = 2, + .channel = PWM_HW_CH_DCR2, .flags = 0, .freq_hz = 10000, .pcfsr_sel = PWM_PRESCALER_C4 diff --git a/board/spherion/board.h b/board/spherion/board.h index c3f8f093ed..be21e79bc6 100644 --- a/board/spherion/board.h +++ b/board/spherion/board.h @@ -13,6 +13,7 @@ /* Optional features */ #define CONFIG_LTO +#undef CONFIG_LOW_POWER_S0 /* * TODO: Remove this option once the VBAT no longer keeps high when -- cgit v1.2.1