From 2741f9db6f8d893b8dc8f0542e12563f35a9eda7 Mon Sep 17 00:00:00 2001 From: Wai-Hong Tam Date: Fri, 17 Aug 2018 09:27:55 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/1179975 Reviewed-by: Stephen Boyd --- board/cheza/board.c | 10 ---------- 1 file changed, 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); -- cgit v1.2.1