summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Wang <matt_wang@compal.corp-partner.google.com>2022-07-01 09:28:14 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-01 09:13:08 +0000
commitff6956c428b61dbee4c881e562f547b7e39a4943 (patch)
tree784f03468ee0c7817da63535ab4e64dbff996a73
parent11c4a92bcbd9b51f25c838d0f95b53f7718a6f31 (diff)
downloadchrome-ec-ff6956c428b61dbee4c881e562f547b7e39a4943.tar.gz
kinox: LED_PWR_L change to open drain
According to the LED_PWR_L GPIO change to OD from push-pull. So modify the setting. BUG=b:237482098 BRANCH=none TEST=The LED can light up at S0, breath at suspend, off at shutdown. Signed-off-by: Matt Wang <matt_wang@compal.corp-partner.google.com> Change-Id: Ibbfe291adc4b2c2df1463e630c206f47534d1e78 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3739981 Reviewed-by: Ricky Chang <rickytlchang@chromium.org>
-rw-r--r--board/kinox/pwm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/kinox/pwm.c b/board/kinox/pwm.c
index 112ee62c8c..90db5670f7 100644
--- a/board/kinox/pwm.c
+++ b/board/kinox/pwm.c
@@ -13,7 +13,8 @@
const struct pwm_t pwm_channels[] = {
[PWM_CH_LED_GREEN] = {
.channel = 0,
- .flags = PWM_CONFIG_ACTIVE_LOW | PWM_CONFIG_DSLEEP,
+ .flags = PWM_CONFIG_ACTIVE_LOW | PWM_CONFIG_DSLEEP |
+ PWM_CONFIG_OPEN_DRAIN,
.freq = 2000
},
[PWM_CH_FAN] = {