diff options
author | Wai-Hong Tam <waihong@google.com> | 2018-08-17 09:27:55 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-08-17 20:39:10 -0700 |
commit | 2741f9db6f8d893b8dc8f0542e12563f35a9eda7 (patch) | |
tree | 878cf894a208bb1aad4de9f70ab64ea946ad096b | |
parent | 78edde263c28c58f679008964c1b6dde0cbaca42 (diff) | |
download | chrome-ec-2741f9db6f8d893b8dc8f0542e12563f35a9eda7.tar.gz |
cheza: Don't need to set the switchcap register on init
The switchcap register should be OTP'ed.
BRANCH=none
BUG=b:77957956
TEST=On the rev-2 board, power cycle the board, check the switchcap
register having a proper value.
Change-Id: I558301772404618a1d189a567ea61e743f403e84
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1179975
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
-rw-r--r-- | board/cheza/board.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/board/cheza/board.c b/board/cheza/board.c index 459bc881c5..89362459cd 100644 --- a/board/cheza/board.c +++ b/board/cheza/board.c @@ -18,7 +18,6 @@ #include "driver/tcpm/tcpci.h" #include "gpio.h" #include "hooks.h" -#include "i2c.h" #include "lid_switch.h" #include "pi3usb9281.h" #include "power.h" @@ -52,9 +51,6 @@ static void anx74xx_cable_det_interrupt(enum gpio_signal signal); #include "gpio_list.h" -/* 8-bit I2C address */ -#define DA9313_I2C_ADDR 0xd0 - /* GPIO Interrupt Handlers */ static void tcpc_alert_event(enum gpio_signal signal) { @@ -246,12 +242,6 @@ BUILD_ASSERT(ARRAY_SIZE(pi3usb9281_chips) == /* Initialize board. */ static void board_init(void) { - /* - * Disable SwitchCap auto-boot and make EN pin level-trigger - * TODO(b/77957956): Remove it after hardware fix. - */ - i2c_write8(I2C_PORT_POWER, DA9313_I2C_ADDR, 0x02, 0x34); - /* Enable BC1.2 VBUS detection */ gpio_enable_interrupt(GPIO_USB_C0_VBUS_DET_L); gpio_enable_interrupt(GPIO_USB_C1_VBUS_DET_L); |