-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
usb: dwc3: omap: Add an API to write to dwc mailbox
Add an API in the omap glue layer to write to the mailbox register which can be used by comparator driver(twl). To pass the detection of the attached device (signified by VBUS, ID) to the dwc3 core, dwc3 core has to write to the mailbox regiter. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
- Loading branch information
Kishon Vijay Abraham I
authored and
Felipe Balbi
committed
Jan 25, 2013
1 parent
6373218
commit 7e41bba
Showing
2 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright (C) 2013 by Texas Instruments | ||
* | ||
* The Inventra Controller Driver for Linux is free software; you | ||
* can redistribute it and/or modify it under the terms of the GNU | ||
* General Public License version 2 as published by the Free Software | ||
* Foundation. | ||
*/ | ||
|
||
#ifndef __DWC3_OMAP_H__ | ||
#define __DWC3_OMAP_H__ | ||
|
||
enum omap_dwc3_vbus_id_status { | ||
OMAP_DWC3_UNKNOWN = 0, | ||
OMAP_DWC3_ID_GROUND, | ||
OMAP_DWC3_ID_FLOAT, | ||
OMAP_DWC3_VBUS_VALID, | ||
OMAP_DWC3_VBUS_OFF, | ||
}; | ||
|
||
#if (defined(CONFIG_USB_DWC3) || defined(CONFIG_USB_DWC3_MODULE)) | ||
extern void dwc3_omap_mailbox(enum omap_dwc3_vbus_id_status status); | ||
#else | ||
static inline void dwc3_omap_mailbox(enum omap_dwc3_vbus_id_status status) | ||
{ | ||
return; | ||
} | ||
#endif | ||
|
||
#endif /* __DWC3_OMAP_H__ */ |