2 * drivers/usb/gadget/dwc2_udc.h
3 * Designware DWC2 on-chip full/high speed USB device controllers
4 * Copyright (C) 2005 for Samsung Electronics
6 * SPDX-License-Identifier: GPL-2.0+
9 #ifndef __DWC2_USB_GADGET
10 #define __DWC2_USB_GADGET
12 #define PHY0_SLEEP (1 << 5)
14 struct dwc2_plat_otg_data {
17 int (*phy_control)(int on);
18 unsigned int regs_phy;
19 unsigned int regs_otg;
20 unsigned int usb_phy_ctrl;
21 unsigned int usb_flags;
22 unsigned int usb_gusbcfg;
25 int dwc2_udc_probe(struct dwc2_plat_otg_data *pdata);
27 #endif /* __DWC2_USB_GADGET */