diff options
author | Wai-Hong Tam <waihong@google.com> | 2020-07-09 11:09:29 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-07-10 02:52:46 +0000 |
commit | bd3fe2f7c9a8ba0168d862f81749e7c82d44f89b (patch) | |
tree | 0f66b3a2aea251b29b7d92159e3adcbdf0a78b40 /.clang-format | |
parent | 2cc239894c16edf0ec48533ef13bfe5374a7eff7 (diff) | |
download | chrome-ec-bd3fe2f7c9a8ba0168d862f81749e7c82d44f89b.tar.gz |
Trogdor: Initialize the backlight PWMs to be disabled
There are 2 PWMs for the backlight: display and keyboard. The keyboard
background is controlled by the keyboard_backlight.c. The board file
doesn't need to define its behavior. So move it from the board.c.
The display backlight should be initialized to 0% duty cycle and set to
disabled at the beginning. AP will override the value later.
When resume from suspend, keep it disabled if the duty cycle is 0%.
BRANCH=None
BUG=b:157489286
TEST=When EC reboot, the display backlight (channel:1) is disabled.
> pwm
PWM channels:
0: disabled
1: disabled
When booting into the userspace, the display backlight is set to 34%.
> pwm
PWM channels:
0: disabled
1: 34%
Manually set the brightness to 0%.
> pwm
PWM channels:
0: disabled
1: disabled
Change-Id: I07207969b1541326e77167eadc04899554d858dd
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2290830
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions