Kishon Vijay Abraham I | c2b77b6 | 2015-02-23 18:39:54 +0530 | [diff] [blame] | 1 | /* include/linux/usb/otg.h |
| 2 | * |
| 3 | * Copyright (c) 2015 Texas Instruments Incorporated - http://www.ti.com |
| 4 | * |
| 5 | * USB OTG (On The Go) defines |
| 6 | * |
| 7 | * SPDX-License-Identifier: GPL-2.0+ |
| 8 | */ |
| 9 | |
| 10 | #ifndef __LINUX_USB_OTG_H |
| 11 | #define __LINUX_USB_OTG_H |
| 12 | |
| 13 | enum usb_dr_mode { |
| 14 | USB_DR_MODE_UNKNOWN, |
| 15 | USB_DR_MODE_HOST, |
| 16 | USB_DR_MODE_PERIPHERAL, |
| 17 | USB_DR_MODE_OTG, |
| 18 | }; |
| 19 | |
Mugunthan V N | 1a54713 | 2016-04-12 16:01:19 +0530 | [diff] [blame] | 20 | /** |
| 21 | * usb_get_dr_mode() - Get dual role mode for given device |
| 22 | * @node: Node offset to the given device |
| 23 | * |
| 24 | * The function gets phy interface string from property 'dr_mode', |
| 25 | * and returns the correspondig enum usb_dr_mode |
| 26 | */ |
| 27 | enum usb_dr_mode usb_get_dr_mode(int node); |
| 28 | |
Kishon Vijay Abraham I | c2b77b6 | 2015-02-23 18:39:54 +0530 | [diff] [blame] | 29 | #endif /* __LINUX_USB_OTG_H */ |