summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavid.huang <david.huang@quantatw.com>2018-01-10 17:22:45 +0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2018-01-11 02:25:03 +0000
commit3fc31d6e2bdb1d05a2990f2b8a046b56f539a723 (patch)
tree5f46b856fff5aab77cdeaaced3052f203aaa207e
parent03ba81c13b72a7a94284c6ec992e006213ae97de (diff)
downloadchrome-ec-3fc31d6e2bdb1d05a2990f2b8a046b56f539a723.tar.gz
Coral: Modify KBLIGHT PWM frequency from 100Hz to 50kHz
Modify KBLIGHT PWM frequency from 100Hz to 50kHz for follow backlight control IC requirement. BRANCH=coral BUG=b:71729104 TEST=Use console "kblight 50" and check ec oupput frequency is 50k. Change-Id: I014a0391677ec2e06ef13014495a2b51458e35ab Signed-off-by: David Huang <David.Huang@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/860970 Reviewed-by: Scott Collyer <scollyer@chromium.org>
-rw-r--r--board/coral/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/coral/board.c b/board/coral/board.c
index f775351bd3..99a2531900 100644
--- a/board/coral/board.c
+++ b/board/coral/board.c
@@ -167,7 +167,7 @@ BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT);
/* PWM channels. Must be in the exactly same order as in enum pwm_channel. */
const struct pwm_t pwm_channels[] = {
- [PWM_CH_KBLIGHT] = { 4, PWM_CONFIG_DSLEEP, 100 },
+ [PWM_CH_KBLIGHT] = { 4, 0, 50000 },
};
BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT);