summaryrefslogtreecommitdiff
path: root/board/cheza
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2018-05-29 15:31:43 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-07-26 15:51:59 -0700
commit5e42c41ed2ac5d9dec952680117825214e4db783 (patch)
treed3d80785e82669b732cbeb2b2a730f40bc999d72 /board/cheza
parentd0d4c9ae0e92b3ae08608c216e090859dd61ac3b (diff)
downloadchrome-ec-5e42c41ed2ac5d9dec952680117825214e4db783.tar.gz
cheza: Remove the switchcap hack
Don't need it as the switchcap has been OTP'ed. BRANCH=none BUG=b:77957956 TEST=On the rev-1 board, power-on and power-off work. Change-Id: I318e658b34d2ebdd8cd169bc5690aa1edd669008 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/1080998 Reviewed-by: Alexandru M Stan <amstan@chromium.org>
Diffstat (limited to 'board/cheza')
-rw-r--r--board/cheza/board.c10
-rw-r--r--board/cheza/board.h2
2 files changed, 0 insertions, 12 deletions
diff --git a/board/cheza/board.c b/board/cheza/board.c
index 6eed599d78..d5f1863ee8 100644
--- a/board/cheza/board.c
+++ b/board/cheza/board.c
@@ -120,16 +120,6 @@ static void ppc_interrupt(enum gpio_signal signal)
sn5s330_interrupt(port);
}
-void board_set_switchcap(int enable)
-{
- /*
- * 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);
- gpio_set_level(GPIO_SWITCHCAP_ON_L, enable);
-}
-
/* ADC channels */
const struct adc_t adc_channels[] = {
/* Base detection */
diff --git a/board/cheza/board.h b/board/cheza/board.h
index 43fdcc793a..6d0e1d88ff 100644
--- a/board/cheza/board.h
+++ b/board/cheza/board.h
@@ -163,8 +163,6 @@ enum pwm_channel {
PWM_CH_COUNT
};
-void board_set_switchcap(int asserted);
-
/* Custom function to indicate if sourcing VBUS */
int board_is_sourcing_vbus(int port);
/* Enable VBUS sink for a given port */