summaryrefslogtreecommitdiff
path: root/board/snow/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/snow/board.c')
-rw-r--r--board/snow/board.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/board/snow/board.c b/board/snow/board.c
index d9a3d0cc20..b3fa050ecf 100644
--- a/board/snow/board.c
+++ b/board/snow/board.c
@@ -80,41 +80,6 @@ const struct gpio_info gpio_list[GPIO_COUNT] = {
{"KB_OUT12", GPIO_C, (1<<7), GPIO_KB_OUTPUT, NULL},
};
-#ifdef CONFIG_I2C_HOST_AUTO
-static int i2c_host_port = -1;
-
-/* Detect if tps65090 pmu is present on a i2c bus.
- * This hack makes one single ec binary to work on boards with different
- * stuffing options.
- *
- * TODO: Revert i2c host port detection after all dev boards been reworked or
- * deprecated. Issue: http://crosbug.com/p/10622
- */
-static int tps65090_is_present(int bus)
-{
- const int tps65090_addr = 0x90;
- const int charger_ctrl_offset0 = 4;
- int rv, reg;
-
- rv = i2c_read8(bus, tps65090_addr, charger_ctrl_offset0, &reg);
-
- if (rv == EC_SUCCESS)
- return 1;
- return 0;
-}
-
-int board_i2c_host_port(void)
-{
- /* Default I2C host configuration is I2C1(0).
- * If PMU doesn't ack on I2C2(1), set the host port to 0.
- */
- if (i2c_host_port == -1)
- i2c_host_port = tps65090_is_present(1) ? 1 : 0;
-
- return i2c_host_port;
-}
-#endif /* CONFIG_I2C_HOST_AUTO */
-
void configure_board(void)
{
uint32_t val;