summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt_Wang <Matt_Wang@compal.corp-partner.google.com>2021-08-24 16:48:38 +0800
committerCommit Bot <commit-bot@chromium.org>2021-08-25 19:14:12 +0000
commitdd9c02262299f0b8218d12b937bb3fc1f7d58f5e (patch)
tree6b103dc2cfa0964fb08c0792e6c899047d26b4ff
parent8f1d4c00137cedc1cee200156d1e0bfa49a55fb9 (diff)
downloadchrome-ec-dd9c02262299f0b8218d12b937bb3fc1f7d58f5e.tar.gz
driblee: remove PWM KB light setting
Driblee does not support the KB light PWM behavior so remove it. BUG=b:195810621 BRANCH=keeby TEST=make BOARD=driblee Signed-off-by: Matt_Wang <Matt_Wang@compal.corp-partner.google.com> Change-Id: I64bc27ae0769a743be67fc4f29597f158e98445b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3115869 Tested-by: Matt Wang <matt_wang@compal.corp-partner.google.com> Reviewed-by: Elmo Lan <elmo_lan@compal.corp-partner.google.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
-rw-r--r--board/driblee/board.c12
-rw-r--r--board/driblee/board.h6
2 files changed, 0 insertions, 18 deletions
diff --git a/board/driblee/board.c b/board/driblee/board.c
index 87b4b97be5..bcda27ac46 100644
--- a/board/driblee/board.c
+++ b/board/driblee/board.c
@@ -33,8 +33,6 @@
#include "lid_switch.h"
#include "power.h"
#include "power_button.h"
-#include "pwm.h"
-#include "pwm_chip.h"
#include "stdbool.h"
#include "switch.h"
#include "system.h"
@@ -424,16 +422,6 @@ const struct pi3usb9201_config_t pi3usb9201_bc12_chips[] = {
},
};
-/* PWM channels. Must be in the exactly same order as in enum pwm_channel. */
-const struct pwm_t pwm_channels[] = {
- [PWM_CH_KBLIGHT] = {
- .channel = 3,
- .flags = PWM_CONFIG_DSLEEP,
- .freq = 10000,
- },
-};
-BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT);
-
const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = {
{
.bus_type = EC_BUS_TYPE_I2C,
diff --git a/board/driblee/board.h b/board/driblee/board.h
index 8f2e7fc53c..9d4ce3b6f2 100644
--- a/board/driblee/board.h
+++ b/board/driblee/board.h
@@ -47,7 +47,6 @@
#define CONFIG_LED_ONOFF_STATES_BAT_LOW 10
/* PWM */
-#define CONFIG_PWM
#define NPCX7_PWM1_SEL 1 /* GPIO C2 is used as PWM1. */
/* Temp sensor */
@@ -122,11 +121,6 @@ enum temp_sensor_id {
TEMP_SENSOR_COUNT
};
-enum pwm_channel {
- PWM_CH_KBLIGHT,
- PWM_CH_COUNT,
-};
-
/* List of possible batteries */
enum battery_type {
BATTERY_BYD_1VX1H,