diff options
author | Nicolas Boichat <drinkcat@google.com> | 2017-02-17 08:19:04 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-02-23 16:02:05 -0800 |
commit | 416cdfd36e99eac9b985ad054e36e1742ea970b2 (patch) | |
tree | 3a65f8058eccf2ccbec9fcd46cd8fc22a9705e19 | |
parent | 31b5ce49c6d9917d725c0610ddcb8972795dff94 (diff) | |
download | chrome-ec-416cdfd36e99eac9b985ad054e36e1742ea970b2.tar.gz |
hammer: Change PWM frequency to 10 kHz
backlight driver required frequency between 5-100 kHz, let's pick
10 kHz.
BRANCH=none
BUG=chrome-os-partner:63010
TEST=Backlight works, scope output shows correct frequency.
Change-Id: I8355ea87824f368a76236c97b9e4b7d40eca5612
Reviewed-on: https://chromium-review.googlesource.com/444484
Commit-Ready: Nicolas Boichat <drinkcat@chromium.org>
Tested-by: Toshak Singhal <toshak@google.com>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r-- | board/hammer/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/hammer/board.c b/board/hammer/board.c index 2f03082a6b..73ade52cbb 100644 --- a/board/hammer/board.c +++ b/board/hammer/board.c @@ -51,7 +51,7 @@ 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[] = { - {STM32_TIM(TIM_KBLIGHT), STM32_TIM_CH(1), 0, 100 /* Hz */ }, + {STM32_TIM(TIM_KBLIGHT), STM32_TIM_CH(1), 0, 10000 /* Hz */ }, }; BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT); |