summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLu Zhang <lu.zhang@bitland.corp-partner.google.com>2020-06-15 10:49:50 +0800
committerCommit Bot <commit-bot@chromium.org>2020-06-15 18:52:45 +0000
commitcb2d3b80edc5c00a14471b91a67511b3e294e1dc (patch)
tree9588b481af4c3d7625e8f44c99a56f0f2e8125d2
parentf9645b2b4ccf45b91ebaff2a7395f1e8f2406797 (diff)
downloadchrome-ec-cb2d3b80edc5c00a14471b91a67511b3e294e1dc.tar.gz
vilboz: Remove battery HW V0
Remove battery HW V0 since vilboz doesn't have it. BUG=b:155214765 BRANCH=none TEST=make buildall -j Signed-off-by: Lu Zhang <lu.zhang@bitland.corp-partner.google.com> Change-Id: I2e4b8f96904daccf98a9ebd9e962448749b46057 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2245572 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Edward Hill <ecgh@chromium.org> Commit-Queue: Edward Hill <ecgh@chromium.org> Tested-by: Edward Hill <ecgh@chromium.org>
-rw-r--r--board/vilboz/board.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/board/vilboz/board.c b/board/vilboz/board.c
index 6a4313d5de..cf907db056 100644
--- a/board/vilboz/board.c
+++ b/board/vilboz/board.c
@@ -426,20 +426,3 @@ const int usb_port_enable[USBA_PORT_COUNT] = {
IOEX_EN_USB_A0_5V,
GPIO_EN_USB_A1_5V,
};
-
-/*
- * If the battery is found on the V0 I2C port then re-map the battery port.
- * Use HOOK_PRIO_INIT_I2C so we re-map before init_battery_type() and
- * charger_chips_init() want to talk to the battery.
- */
-static void check_v0_battery(void)
-{
- int status;
-
- if (i2c_read16(I2C_PORT_BATTERY_V0, BATTERY_ADDR_FLAGS,
- SB_BATTERY_STATUS, &status) == EC_SUCCESS) {
- ccprints("V0 HW detected");
- I2C_PORT_BATTERY = I2C_PORT_BATTERY_V0;
- }
-}
-DECLARE_HOOK(HOOK_INIT, check_v0_battery, HOOK_PRIO_INIT_I2C);