mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 18:41:11 +00:00
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>
This commit is contained in:
committed by
chrome-bot
parent
31b5ce49c6
commit
416cdfd36e
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user