diff options
author | Diana Z <dzigterman@chromium.org> | 2021-04-16 15:37:32 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-23 15:49:43 +0000 |
commit | fc81c164c4da5581f9ab4d9cf348dd1d0edb8517 (patch) | |
tree | aa494124dbf0d3c16e62a194f1e5668ab0d538f6 /baseboard/mancomb | |
parent | 33fa1073fd5d944f5199bfcccc5a6fc9a782739a (diff) | |
download | chrome-ec-fc81c164c4da5581f9ab4d9cf348dd1d0edb8517.tar.gz |
Mancomb: Enable LEDs
Enable some basic power LED states for mancomb. Solid green for S0,
flashing yellow for suspend, and flashing red for insufficient charger.
BRANCH=None
BUG=b:185508707
TEST=builds (boards have not SMT'd yet)
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I18369a8b0d51b73e3aa9883feef7441f5cae923c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2832695
Reviewed-by: Rob Barnes <robbarnes@google.com>
Commit-Queue: Rob Barnes <robbarnes@google.com>
Diffstat (limited to 'baseboard/mancomb')
-rw-r--r-- | baseboard/mancomb/base_gpio.inc | 4 | ||||
-rw-r--r-- | baseboard/mancomb/baseboard.c | 4 | ||||
-rw-r--r-- | baseboard/mancomb/baseboard.h | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/baseboard/mancomb/base_gpio.inc b/baseboard/mancomb/base_gpio.inc index 04ed32d3f8..999fafda83 100644 --- a/baseboard/mancomb/base_gpio.inc +++ b/baseboard/mancomb/base_gpio.inc @@ -74,8 +74,8 @@ ALTERNATE( PIN_MASK(3, BIT(4)), 0, MODULE_ADC, 0) /* TEMP_AMBIENT_VR */ /* LED Signals */ GPIO(EC_DISABLE_DISP_BL, PIN(A, 6), GPIO_OUT_HIGH) /* Disable Display Backlight */ -ALTERNATE(/*EC_PWM_LED_CHRG_L*/ PIN_MASK(C, BIT(4)), 0, MODULE_PWM, 0) /* Charging LED */ -ALTERNATE(/*EC_PWM_LED_FULL_L*/ PIN_MASK(8, BIT(0)), 0, MODULE_PWM, 0) /* Full LED */ +ALTERNATE( PIN_MASK(C, BIT(4)), 0, MODULE_PWM, 0) /* EC_PWM_LED1_L */ +ALTERNATE( PIN_MASK(8, BIT(0)), 0, MODULE_PWM, 0) /* EC_PWM_LED2_L */ /* Fan Signals */ ALTERNATE( PIN_MASK(C, BIT(3)), 0, MODULE_PWM, 0) /* EC_FAN_PWM - Fan PWM */ diff --git a/baseboard/mancomb/baseboard.c b/baseboard/mancomb/baseboard.c index 48aaa6d165..991e2acfd0 100644 --- a/baseboard/mancomb/baseboard.c +++ b/baseboard/mancomb/baseboard.c @@ -385,12 +385,12 @@ const struct pwm_t pwm_channels[] = { .flags = PWM_CONFIG_OPEN_DRAIN, .freq = 25000, }, - [PWM_CH_LED_CHRG] = { + [PWM_CH_LED1] = { .channel = 2, .flags = PWM_CONFIG_DSLEEP, .freq = 100, }, - [PWM_CH_LED_FULL] = { + [PWM_CH_LED2] = { .channel = 3, .flags = PWM_CONFIG_DSLEEP, .freq = 100, diff --git a/baseboard/mancomb/baseboard.h b/baseboard/mancomb/baseboard.h index 66703fb317..e7228527b5 100644 --- a/baseboard/mancomb/baseboard.h +++ b/baseboard/mancomb/baseboard.h @@ -286,8 +286,8 @@ enum temp_sensor_id { /* PWM Channels */ enum pwm_channel { PWM_CH_FAN = 0, - PWM_CH_LED_CHRG, - PWM_CH_LED_FULL, + PWM_CH_LED1, + PWM_CH_LED2, PWM_CH_COUNT }; |