Lukasz Majewski | ac3c831 | 2011-10-27 10:36:46 +0200 | [diff] [blame] | 1 | /* |
| 2 | * drivers/usb/gadget/s3c_udc.h |
Marek Vasut | 4a7629a | 2015-12-04 02:55:37 +0100 | [diff] [blame] | 3 | * Designware DWC2 on-chip full/high speed USB device controllers |
Lukasz Majewski | ac3c831 | 2011-10-27 10:36:46 +0200 | [diff] [blame] | 4 | * Copyright (C) 2005 for Samsung Electronics |
| 5 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 6 | * SPDX-License-Identifier: GPL-2.0+ |
Lukasz Majewski | ac3c831 | 2011-10-27 10:36:46 +0200 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef __S3C_USB_GADGET |
| 10 | #define __S3C_USB_GADGET |
| 11 | |
Lukasz Majewski | ac3c831 | 2011-10-27 10:36:46 +0200 | [diff] [blame] | 12 | #define PHY0_SLEEP (1 << 5) |
| 13 | |
Marek Vasut | 6939aca | 2015-12-04 02:23:29 +0100 | [diff] [blame] | 14 | struct dwc2_plat_otg_data { |
Lukasz Majewski | ac3c831 | 2011-10-27 10:36:46 +0200 | [diff] [blame] | 15 | int (*phy_control)(int on); |
| 16 | unsigned int regs_phy; |
| 17 | unsigned int regs_otg; |
| 18 | unsigned int usb_phy_ctrl; |
| 19 | unsigned int usb_flags; |
Marek Vasut | 8030088 | 2014-11-04 04:23:25 +0100 | [diff] [blame] | 20 | unsigned int usb_gusbcfg; |
Lukasz Majewski | ac3c831 | 2011-10-27 10:36:46 +0200 | [diff] [blame] | 21 | }; |
Marek Vasut | 0b90750 | 2015-12-04 01:36:36 +0100 | [diff] [blame] | 22 | |
Marek Vasut | 01b61fa | 2015-12-04 02:26:33 +0100 | [diff] [blame^] | 23 | int dwc2_udc_probe(struct dwc2_plat_otg_data *pdata); |
Marek Vasut | 0b90750 | 2015-12-04 01:36:36 +0100 | [diff] [blame] | 24 | |
Lukasz Majewski | ac3c831 | 2011-10-27 10:36:46 +0200 | [diff] [blame] | 25 | #endif |