mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-04 11:43:54 +08:00
usb: otg: add usb_otg_caps structure for otg capabilities
This patch adds a structure usb_otg_caps to cover all otg related capabilities of the device, including otg revision, and if hnp/srp/adp is supported. Signed-off-by: Li Jun <jun.li@freescale.com> Reviewed-by: Roger Quadros <rogerq@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
5d701cef9b
commit
6a88bbe8e3
@ -41,6 +41,21 @@ struct usb_otg {
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* struct usb_otg_caps - describes the otg capabilities of the device
|
||||
* @otg_rev: The OTG revision number the device is compliant with, it's
|
||||
* in binary-coded decimal (i.e. 2.0 is 0200H).
|
||||
* @hnp_support: Indicates if the device supports HNP.
|
||||
* @srp_support: Indicates if the device supports SRP.
|
||||
* @adp_support: Indicates if the device supports ADP.
|
||||
*/
|
||||
struct usb_otg_caps {
|
||||
u16 otg_rev;
|
||||
bool hnp_support;
|
||||
bool srp_support;
|
||||
bool adp_support;
|
||||
};
|
||||
|
||||
extern const char *usb_otg_state_string(enum usb_otg_state state);
|
||||
|
||||
/* Context: can sleep */
|
||||
|
Loading…
Reference in New Issue
Block a user