]>
Commit | Line | Data |
---|---|---|
38517a78 | 1 | /* |
5d5716ee | 2 | * drivers/usb/gadget/dwc2_udc.h |
e179cedd | 3 | * Designware DWC2 on-chip full/high speed USB device controllers |
38517a78 ŁM |
4 | * Copyright (C) 2005 for Samsung Electronics |
5 | * | |
1a459660 | 6 | * SPDX-License-Identifier: GPL-2.0+ |
38517a78 ŁM |
7 | */ |
8 | ||
5d5716ee MV |
9 | #ifndef __DWC2_USB_GADGET |
10 | #define __DWC2_USB_GADGET | |
38517a78 | 11 | |
38517a78 ŁM |
12 | #define PHY0_SLEEP (1 << 5) |
13 | ||
c0982871 | 14 | struct dwc2_plat_otg_data { |
fab33579 XZ |
15 | void *priv; |
16 | int phy_of_node; | |
38517a78 ŁM |
17 | int (*phy_control)(int on); |
18 | unsigned int regs_phy; | |
92693b5a | 19 | uintptr_t regs_otg; |
38517a78 ŁM |
20 | unsigned int usb_phy_ctrl; |
21 | unsigned int usb_flags; | |
481a11c5 | 22 | unsigned int usb_gusbcfg; |
47117882 XZ |
23 | unsigned int rx_fifo_sz; |
24 | unsigned int np_tx_fifo_sz; | |
25 | unsigned int tx_fifo_sz; | |
38517a78 | 26 | }; |
2c12ff03 | 27 | |
a4bb9b36 | 28 | int dwc2_udc_probe(struct dwc2_plat_otg_data *pdata); |
2c12ff03 | 29 | |
5d5716ee | 30 | #endif /* __DWC2_USB_GADGET */ |