summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Chen <ben.chen2@quanta.corp-partner.google.com>2021-04-16 17:14:38 +0800
committerCommit Bot <commit-bot@chromium.org>2021-04-20 10:07:06 +0000
commitb00ac9439f742b29632f9db5eaf4516ae957503b (patch)
treef44a2fa525f15dd53a236de9101d55554bfcc70e
parentb0af5dcd57ad7218723bd7f384968ddf641f411c (diff)
downloadchrome-ec-b00ac9439f742b29632f9db5eaf4516ae957503b.tar.gz
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 <ben.chen2@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2830667 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
-rw-r--r--board/spherion/board.c2
-rw-r--r--board/spherion/board.h1
2 files changed, 2 insertions, 1 deletions
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