diff options
Diffstat (limited to 'board/servo_v4p1/pathsel.h')
-rw-r--r-- | board/servo_v4p1/pathsel.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/board/servo_v4p1/pathsel.h b/board/servo_v4p1/pathsel.h new file mode 100644 index 0000000000..d2f71be024 --- /dev/null +++ b/board/servo_v4p1/pathsel.h @@ -0,0 +1,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 HOST to the DUT. Used for fastboot + */ +void host_to_dut(void); + +/** + * Routes the Micro Servo to the Host + */ +void uservo_to_host(void); + +#endif /* __CROS_EC_PATHSEL_H */ |