summaryrefslogtreecommitdiff
path: root/board/it83xx_evb
diff options
context:
space:
mode:
authorDino Li <Dino.Li@ite.com.tw>2017-11-03 09:41:42 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-11-09 19:16:26 -0800
commit7b4cda85a4dd1d8e5ebf9d7ebf0338e955e4f54e (patch)
treece2b527bf7cdae2cfde5aa7081a356af365f99ac /board/it83xx_evb
parente4deceba8d6a8afff50ca2223be59b755ee3eca2 (diff)
downloadchrome-ec-7b4cda85a4dd1d8e5ebf9d7ebf0338e955e4f54e.tar.gz
it83xx: pwm: support PWM_CONFIG_DSLEEP config flag
With this change, we can keep a PWM channel active during low-power idle (EC deep doze). BRANCH=none BUG=none TEST=The pwm channel is function normally in deep doze mode. And tested pwm frequency setting are: 300, 250, 200, 150, 100, 50, and 10 (Hz) Change-Id: Ie94cd96e819c869bdde6d7675d8f1a6cfc627f3b Signed-off-by: Dino Li <Dino.Li@ite.com.tw> Reviewed-on: https://chromium-review.googlesource.com/752702 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'board/it83xx_evb')
-rw-r--r--board/it83xx_evb/board.c1
-rw-r--r--board/it83xx_evb/board.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/board/it83xx_evb/board.c b/board/it83xx_evb/board.c
index df92683ff8..2a4da1e126 100644
--- a/board/it83xx_evb/board.c
+++ b/board/it83xx_evb/board.c
@@ -101,6 +101,7 @@ void pd_task(void)
*/
const struct pwm_t pwm_channels[] = {
{7, 0, 30000, PWM_PRESCALER_C4},
+ {0, PWM_CONFIG_DSLEEP, 100, PWM_PRESCALER_C6},
};
BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT);
diff --git a/board/it83xx_evb/board.h b/board/it83xx_evb/board.h
index b843cb193f..3c7f73ae3f 100644
--- a/board/it83xx_evb/board.h
+++ b/board/it83xx_evb/board.h
@@ -69,6 +69,7 @@
enum pwm_channel {
PWM_CH_FAN,
+ PWM_CH_WITH_DSLEEP_FLAG,
/* Number of PWM channels */
PWM_CH_COUNT
};