diff options
author | Duncan Laurie <dlaurie@google.com> | 2017-02-22 16:04:23 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-02-24 15:23:25 -0800 |
commit | b4bddff086b6915bb955e63a55686dab7502f8c3 (patch) | |
tree | 7d3c617abaa8c2477e16782f7b093e6622dbacab | |
parent | f0b564b4a031fdc974a98a13308a62a460ae4a69 (diff) | |
download | chrome-ec-b4bddff086b6915bb955e63a55686dab7502f8c3.tar.gz |
eve: Set keyboard backlight PWM to 10kHz
The TPS61161DRVR used for keyboard backlight expects an input frequency
of 5 to 100 kHz but is currently only getting 100Hz.
With this change the keyboard backlight duty cycle curve behaves as
expected and you no longer need 50% duty cycle to get it to turn on.
Also the keyboard backlight does not need to be enabled in DSLEEP
since that is only possible in S3/S5, so remove the DSLEEP flag.
BUG=chrome-os-partner:61464
BRANCH=none
TEST=test brightness range in sysfs to ensure backlight is visible
at low settings.
Change-Id: I9737827ad4dbd39e342ad370aef46475c273a6bc
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://chromium-review.googlesource.com/446617
Reviewed-by: Scott Collyer <scollyer@chromium.org>
-rw-r--r-- | board/eve/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/eve/board.c b/board/eve/board.c index 5a11f21241..e185a125b8 100644 --- a/board/eve/board.c +++ b/board/eve/board.c @@ -169,7 +169,7 @@ struct keyboard_scan_config keyscan_config = { /* PWM channels. Must be in the exactly same order as in enum pwm_channel. */ const struct pwm_t pwm_channels[] = { - [PWM_CH_KBLIGHT] = { 5, PWM_CONFIG_DSLEEP, 100 }, + [PWM_CH_KBLIGHT] = { 5, 0, 10000 }, [PWM_CH_LED_L_RED] = { 2, PWM_CONFIG_DSLEEP, 100 }, [PWM_CH_LED_L_GREEN] = { 3, PWM_CONFIG_DSLEEP, 100 }, [PWM_CH_LED_L_BLUE] = { 4, PWM_CONFIG_DSLEEP, 100 }, |