/* Copyright 2020 The ChromiumOS Authors * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* Trogdor baseboard-specific configuration */ #include "i2c.h" /* Wake-up pins for hibernate */ enum gpio_signal hibernate_wake_pins[] = { GPIO_LID_OPEN, GPIO_AC_PRESENT, GPIO_POWER_BUTTON_L, GPIO_EC_RST_ODL, }; int hibernate_wake_pins_used = ARRAY_SIZE(hibernate_wake_pins); BUILD_ASSERT(ARRAY_SIZE(hibernate_wake_pins) >= 3); int board_allow_i2c_passthru(const struct i2c_cmd_desc_t *cmd_desc) { return (cmd_desc->port == I2C_PORT_VIRTUAL_BATTERY || cmd_desc->port == I2C_PORT_TCPC0 || cmd_desc->port == I2C_PORT_TCPC1); }