diff options
author | David Huang <david.huang@quanta.corp-partner.google.com> | 2023-03-10 15:37:17 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-03-10 22:43:31 +0000 |
commit | e68eabefb1381387298ce3e6ce1088f8cb4f7078 (patch) | |
tree | d0b1b0aa017a9342fc5a610489a39cc91661bb19 | |
parent | f1712ca46a7237e311285f6edef132e553b911fd (diff) | |
download | chrome-ec-e68eabefb1381387298ce3e6ce1088f8cb4f7078.tar.gz |
contitution: Change LED pwm active behavior
LED is active high, remove active low flag.
BUG=b:267539938
BRANCH=None
TEST=Check LED turn on correct when pwmduty 100%
Change-Id: I66e5da035ec504368215d7648dedd844c38a4584
Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4328915
Commit-Queue: caveh jalali <caveh@chromium.org>
Reviewed-by: caveh jalali <caveh@chromium.org>
-rw-r--r-- | board/constitution/pwm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/board/constitution/pwm.c b/board/constitution/pwm.c index fb76d7fac6..c242714d65 100644 --- a/board/constitution/pwm.c +++ b/board/constitution/pwm.c @@ -11,14 +11,13 @@ const struct pwm_t pwm_channels[] = { [PWM_CH_LED_WHITE] = { .channel = 0, - .flags = PWM_CONFIG_ACTIVE_LOW | - PWM_CONFIG_DSLEEP, + .flags = PWM_CONFIG_DSLEEP, .freq = 2000 }, [PWM_CH_FAN] = { .channel = 5, .flags = PWM_CONFIG_OPEN_DRAIN | PWM_CONFIG_DSLEEP, .freq = 1000 }, [PWM_CH_LED_RED] = { .channel = 2, - .flags = PWM_CONFIG_ACTIVE_LOW | PWM_CONFIG_DSLEEP, + .flags = PWM_CONFIG_DSLEEP, .freq = 2000 }, }; BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT); |