summaryrefslogtreecommitdiff
path: root/board/servo_v4p1/pathsel.h
blob: 7365d3adf37b3e26b392c8753b800129dc2c8b3d (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
/* Copyright 2020 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.
 */

#ifndef __CROS_EC_PATHSEL_H
#define __CROS_EC_PATHSEL_H

/**
 * Both USB3_TypeA0 and USB3_TypeA1 are routed to the DUT by default.
 */
void init_pathsel(void);

/**
 * Routes USB3_TypeA0 port to DUT
 */
void usb3_a0_to_dut(void);

/**
 * Routes USB3_TypeA1 port to DUT
 */
void usb3_a1_to_dut(void);

/**
 * Routes USB3_TypeA0 port to HOST
 */
void usb3_a0_to_host(void);

/**
 * Routes USB3_TypeA1 port to HOST
 */
void usb3_a1_to_host(void);

/**
 * Routes the DUT to the HOST. Used for fastboot
 */
void dut_to_host(void);

/**
 * Routes the Micro Servo to the Host
 */
void uservo_to_host(void);

#endif /* __CROS_EC_PATHSEL_H */