blob: 873f9dda6b34d8d372d68a7ca08c5b75cdc8703d (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
/* Copyright 2019 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Volteer board-specific configuration */
#include "button.h"
#include "common.h"
#include "accelgyro.h"
#include "driver/accel_bma2x2.h"
#include "driver/als_tcs3400.h"
#include "driver/sync.h"
#include "extpower.h"
#include "gpio.h"
#include "hooks.h"
#include "lid_switch.h"
#include "power.h"
#include "power_button.h"
#include "switch.h"
#include "system.h"
#include "task.h"
#include "tablet_mode.h"
#include "uart.h"
#include "usb_pd_tbt.h"
#include "util.h"
#include "gpio_list.h" /* Must come after other header files. */
static void board_init(void)
{
/* TODO */
}
DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT);
__override enum tbt_compat_cable_speed board_get_max_tbt_speed(int port)
{
/* Routing length exceeds 205mm prior to connection to re-timer */
if (port == USBC_PORT_C1)
return TBT_SS_U32_GEN1_GEN2;
/*
* Thunderbolt-compatible mode not supported
*
* TODO (b/147726366): All the USB-C ports need to support same speed.
* Need to fix once USB-C feature set is known for Volteer.
*/
return TBT_SS_RES_0;
}
__override bool board_is_tbt_usb4_port(int port)
{
/*
* On Proto-1 only Port 1 supports TBT & USB4
*
* TODO (b/147732807): All the USB-C ports need to support same
* features. Need to fix once USB-C feature set is known for Volteer.
*/
return port == USBC_PORT_C1;
}
|