blob: 5615f4d8272499d4cbc5d1c9850d0cc06e9bf319 [file] [log] [blame]
Kishon Vijay Abraham I7e41bba2013-01-25 08:30:49 +05301/*
2 * Copyright (C) 2013 by Texas Instruments
3 *
4 * The Inventra Controller Driver for Linux is free software; you
5 * can redistribute it and/or modify it under the terms of the GNU
6 * General Public License version 2 as published by the Free Software
7 * Foundation.
8 */
9
10#ifndef __DWC3_OMAP_H__
11#define __DWC3_OMAP_H__
12
13enum omap_dwc3_vbus_id_status {
14 OMAP_DWC3_UNKNOWN = 0,
15 OMAP_DWC3_ID_GROUND,
16 OMAP_DWC3_ID_FLOAT,
17 OMAP_DWC3_VBUS_VALID,
18 OMAP_DWC3_VBUS_OFF,
19};
20
21#if (defined(CONFIG_USB_DWC3) || defined(CONFIG_USB_DWC3_MODULE))
Kishon Vijay Abraham I2ba79432013-03-07 18:51:44 +053022extern int dwc3_omap_mailbox(enum omap_dwc3_vbus_id_status status);
Kishon Vijay Abraham I7e41bba2013-01-25 08:30:49 +053023#else
Kishon Vijay Abraham I2ba79432013-03-07 18:51:44 +053024static inline int dwc3_omap_mailbox(enum omap_dwc3_vbus_id_status status)
Kishon Vijay Abraham I7e41bba2013-01-25 08:30:49 +053025{
Kishon Vijay Abraham I2ba79432013-03-07 18:51:44 +053026 return -ENODEV;
Kishon Vijay Abraham I7e41bba2013-01-25 08:30:49 +053027}
28#endif
29
30#endif /* __DWC3_OMAP_H__ */