From 35ed69cde8346714bf58cd8deac42f76f3951b6b Mon Sep 17 00:00:00 2001 From: Scott Collyer Date: Thu, 12 Oct 2017 14:34:59 -0700 Subject: [PATCH] coral: Remove LED signals from pwm channel list 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 Reviewed-on: https://chromium-review.googlesource.com/717187 Commit-Ready: Scott Collyer Tested-by: Scott Collyer Reviewed-by: Aaron Durbin Reviewed-by: Patrick Georgi --- board/coral/board.c | 2 -- board/coral/board.h | 4 +--- 2 files changed, 1 insertion(+), 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 };