summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Collyer <scollyer@google.com>2017-10-12 14:34:59 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-10-13 17:22:07 -0700
commit35ed69cde8346714bf58cd8deac42f76f3951b6b (patch)
tree00f8e473ff72e959ccd4fe86bf67d53ccc516ed8
parent5436afc8f67e740a49f1e6e4fae2c7f4c8dee16d (diff)
downloadchrome-ec-35ed69cde8346714bf58cd8deac42f76f3951b6b.tar.gz
The GPIO lines for the charger LED are being used as simple on/off and no PWM control is used. Removed them from the pwm channel list so that it reflects more accurately what PWM is used for on Coral. BUG=b:64192049 BRANCH=None TEST=make -j BOARD=coral Change-Id: I3546001f96cb01f81fa1c373de28e460b63012c1 Signed-off-by: Scott Collyer <scollyer@google.com> Reviewed-on: https://chromium-review.googlesource.com/717187 Commit-Ready: Scott Collyer <scollyer@chromium.org> Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
-rw-r--r--board/coral/board.c2
-rw-r--r--board/coral/board.h4
2 files changed, 1 insertions, 5 deletions
diff --git a/board/coral/board.c b/board/coral/board.c
index e12b7543f6..9fe3aaae78 100644
--- a/board/coral/board.c
+++ b/board/coral/board.c
@@ -167,8 +167,6 @@ 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_LED_GREEN] = { 2, PWM_CONFIG_DSLEEP, 100 },
- [PWM_CH_LED_RED] = { 3, PWM_CONFIG_DSLEEP, 100 },
[PWM_CH_KBLIGHT] = { 4, PWM_CONFIG_DSLEEP, 100 },
};
BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT);
diff --git a/board/coral/board.h b/board/coral/board.h
index 72245bfea9..53c32632c5 100644
--- a/board/coral/board.h
+++ b/board/coral/board.h
@@ -231,9 +231,7 @@ enum adc_channel {
};
enum pwm_channel {
- PWM_CH_LED_GREEN = 0,
- PWM_CH_LED_RED,
- PWM_CH_KBLIGHT,
+ PWM_CH_KBLIGHT = 0,
/* Number of PWM channels */
PWM_CH_COUNT
};