]> Git Repo - u-boot.git/blame - include/linux/usb/otg.h
usb: dwc3: Add dwc3_init/remove with DM_USB
[u-boot.git] / include / linux / usb / otg.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
9848e574
KVA
2/* include/linux/usb/otg.h
3 *
4 * Copyright (c) 2015 Texas Instruments Incorporated - http://www.ti.com
5 *
6 * USB OTG (On The Go) defines
9848e574
KVA
7 */
8
9#ifndef __LINUX_USB_OTG_H
10#define __LINUX_USB_OTG_H
11
12enum usb_dr_mode {
13 USB_DR_MODE_UNKNOWN,
14 USB_DR_MODE_HOST,
15 USB_DR_MODE_PERIPHERAL,
16 USB_DR_MODE_OTG,
17};
18
c0c62d92
M
19/**
20 * usb_get_dr_mode() - Get dual role mode for given device
21 * @node: Node offset to the given device
22 *
23 * The function gets phy interface string from property 'dr_mode',
24 * and returns the correspondig enum usb_dr_mode
25 */
26enum usb_dr_mode usb_get_dr_mode(int node);
27
9848e574 28#endif /* __LINUX_USB_OTG_H */
This page took 0.256561 seconds and 4 git commands to generate.