2011-10-27 08:36:46 +00:00
|
|
|
/*
|
2015-12-04 01:51:20 +00:00
|
|
|
* drivers/usb/gadget/dwc2_udc.h
|
2015-12-04 01:55:37 +00:00
|
|
|
* Designware DWC2 on-chip full/high speed USB device controllers
|
2011-10-27 08:36:46 +00:00
|
|
|
* Copyright (C) 2005 for Samsung Electronics
|
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2011-10-27 08:36:46 +00:00
|
|
|
*/
|
|
|
|
|
2015-12-04 01:51:20 +00:00
|
|
|
#ifndef __DWC2_USB_GADGET
|
|
|
|
#define __DWC2_USB_GADGET
|
2011-10-27 08:36:46 +00:00
|
|
|
|
|
|
|
#define PHY0_SLEEP (1 << 5)
|
|
|
|
|
2015-12-04 01:23:29 +00:00
|
|
|
struct dwc2_plat_otg_data {
|
2011-10-27 08:36:46 +00:00
|
|
|
int (*phy_control)(int on);
|
|
|
|
unsigned int regs_phy;
|
|
|
|
unsigned int regs_otg;
|
|
|
|
unsigned int usb_phy_ctrl;
|
|
|
|
unsigned int usb_flags;
|
2014-11-04 03:23:25 +00:00
|
|
|
unsigned int usb_gusbcfg;
|
2011-10-27 08:36:46 +00:00
|
|
|
};
|
2015-12-04 00:36:36 +00:00
|
|
|
|
2015-12-04 01:26:33 +00:00
|
|
|
int dwc2_udc_probe(struct dwc2_plat_otg_data *pdata);
|
2015-12-04 00:36:36 +00:00
|
|
|
|
2015-12-04 01:51:20 +00:00
|
|
|
#endif /* __DWC2_USB_GADGET */
|