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