From 13776ebef9af8fc954d16ed922666ea3446df7c5 Mon Sep 17 00:00:00 2001 From: Edward Hill Date: Thu, 24 May 2018 17:00:26 -0600 Subject: careena: Change LED colors Careena has non-PWM White/Orange LEDs. BUG=b:79704826,b:79894166 BRANCH=none TEST=make -j buildall Change-Id: Ie85de84fbd6e4ac4c6139d8407a7a25b5f6d5e7e Signed-off-by: Edward Hill Reviewed-on: https://chromium-review.googlesource.com/1072898 Reviewed-by: Jett Rink --- baseboard/grunt/baseboard.c | 17 ----------------- baseboard/grunt/baseboard.h | 7 ------- 2 files changed, 24 deletions(-) (limited to 'baseboard') diff --git a/baseboard/grunt/baseboard.c b/baseboard/grunt/baseboard.c index d7870d5c23..6c429a427a 100644 --- a/baseboard/grunt/baseboard.c +++ b/baseboard/grunt/baseboard.c @@ -18,7 +18,6 @@ #include "driver/accel_kx022.h" #include "driver/accelgyro_bmi160.h" #include "driver/bc12/bq24392.h" -#include "driver/led/lm3630a.h" #include "driver/ppc/sn5s330.h" #include "driver/tcpm/anx74xx.h" #include "driver/tcpm/ps8xxx.h" @@ -33,8 +32,6 @@ #include "motion_sense.h" #include "power.h" #include "power_button.h" -#include "pwm.h" -#include "pwm_chip.h" #include "registers.h" #include "switch.h" #include "system.h" @@ -253,20 +250,6 @@ struct keyboard_scan_config keyscan_config = { }, }; -/* PWM channels. Must be in the exactly same order as in enum pwm_channel. */ -const struct pwm_t pwm_channels[] = { - [PWM_CH_KBLIGHT] = { 5, 0, 100 }, - [PWM_CH_LED1_AMBER] = { - 0, PWM_CONFIG_OPEN_DRAIN | PWM_CONFIG_ACTIVE_LOW | - PWM_CONFIG_DSLEEP, 100 - }, - [PWM_CH_LED2_BLUE] = { - 2, PWM_CONFIG_OPEN_DRAIN | PWM_CONFIG_ACTIVE_LOW | - PWM_CONFIG_DSLEEP, 100 - }, -}; -BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT); - /* * We use 11 as the scaling factor so that the maximum mV value below (2761) * can be compressed to fit in a uint8_t. diff --git a/baseboard/grunt/baseboard.h b/baseboard/grunt/baseboard.h index 9ee1e8ca67..ae6136a202 100644 --- a/baseboard/grunt/baseboard.h +++ b/baseboard/grunt/baseboard.h @@ -185,13 +185,6 @@ enum temp_sensor_id { TEMP_SENSOR_COUNT }; -enum pwm_channel { - PWM_CH_KBLIGHT = 0, - PWM_CH_LED1_AMBER, - PWM_CH_LED2_BLUE, - PWM_CH_COUNT -}; - enum sensor_id { LID_ACCEL, BASE_ACCEL, -- cgit v1.2.1