blob: 3f3c778ea5df62b88d6c9b9b8138ec7128dfa7fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/* 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);
}
|