summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2021-09-14 16:13:48 +0800
committerCommit Bot <commit-bot@chromium.org>2021-09-14 14:21:20 +0000
commit9c6aeea883776d4f759fe476a0d379223d63952b (patch)
treee12331754fb006dea76154483e88cf15ef2fa914 /board
parent5d157c8679880b8c86bb3944daa35ba25aece58b (diff)
downloadchrome-ec-9c6aeea883776d4f759fe476a0d379223d63952b.tar.gz
cherry: code cleanupstabilize-rust-14220.B-main
1) remove board_overcurrent_event since CL:2532676 added a default empty implementation 2) remove GPIO_EN_KB_BL control since it's already handled in keyboard_backlight.c 3) remove unused header includes 4) remove unused it5205 sbu handler BUG=none TEST=make BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I0231ba6c6bf16fa0fc1bf52fd77815271e79dcbb Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3160456 Tested-by: Ting Shen <phoenixshen@chromium.org> Auto-Submit: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Rong Chang <rongchang@chromium.org> Commit-Queue: Rong Chang <rongchang@chromium.org>
Diffstat (limited to 'board')
-rw-r--r--board/cherry/battery.c6
-rw-r--r--board/cherry/board.c32
2 files changed, 0 insertions, 38 deletions
diff --git a/board/cherry/battery.c b/board/cherry/battery.c
index 00404ce63c..612a1d4bc2 100644
--- a/board/cherry/battery.c
+++ b/board/cherry/battery.c
@@ -6,12 +6,6 @@
#include "battery.h"
#include "battery_fuel_gauge.h"
#include "battery_smart.h"
-#include "charge_manager.h"
-#include "chipset.h"
-#include "gpio.h"
-#include "hooks.h"
-#include "system.h"
-#include "usb_pd.h"
const struct board_batt_params board_battery_info[] = {
/* Panasonic AP16L5J Battery Information */
diff --git a/board/cherry/board.c b/board/cherry/board.c
index 479c998b23..8e456e2c80 100644
--- a/board/cherry/board.c
+++ b/board/cherry/board.c
@@ -4,12 +4,6 @@
*/
/* Cherry board configuration */
-#include "adc.h"
-#include "button.h"
-#include "charge_manager.h"
-#include "charge_state_v2.h"
-#include "charger.h"
-#include "chipset.h"
#include "common.h"
#include "console.h"
#include "driver/accel_bma422.h"
@@ -17,38 +11,12 @@
#include "driver/accel_kx022.h"
#include "driver/accelgyro_icm42607.h"
#include "driver/accelgyro_icm_common.h"
-#include "driver/bc12/mt6360.h"
-#include "driver/bc12/pi3usb9201.h"
-#include "driver/charger/isl923x.h"
-#include "driver/ppc/syv682x.h"
-#include "driver/tcpm/it83xx_pd.h"
-#include "driver/temp_sensor/thermistor.h"
-#include "driver/usb_mux/it5205.h"
-#include "driver/usb_mux/ps8743.h"
-#include "extpower.h"
#include "gpio.h"
#include "hooks.h"
-#include "i2c.h"
-#include "keyboard_scan.h"
-#include "lid_switch.h"
#include "motion_sense.h"
-#include "power.h"
-#include "power_button.h"
#include "pwm.h"
#include "pwm_chip.h"
-#include "regulator.h"
-#include "spi.h"
-#include "switch.h"
#include "system.h"
-#include "tablet_mode.h"
-#include "task.h"
-#include "temp_sensor.h"
-#include "timer.h"
-#include "uart.h"
-#include "usb_charge.h"
-#include "usb_mux.h"
-#include "usb_pd_tcpm.h"
-#include "usbc_ppc.h"
#define CPRINTS(format, args...) cprints(CC_USBCHARGE, format, ## args)
#define CPRINTF(format, args...) cprintf(CC_USBCHARGE, format, ## args)