blob: 302e9a35a23389c82925a7ec0c9bcc9746f0fa5b [file] [log] [blame]
Lukasz Majewskiac3c8312011-10-27 10:36:46 +02001/*
Marek Vasutf1be9cb2015-12-04 02:51:20 +01002 * drivers/usb/gadget/dwc2_udc.h
Marek Vasut4a7629a2015-12-04 02:55:37 +01003 * Designware DWC2 on-chip full/high speed USB device controllers
Lukasz Majewskiac3c8312011-10-27 10:36:46 +02004 * Copyright (C) 2005 for Samsung Electronics
5 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02006 * SPDX-License-Identifier: GPL-2.0+
Lukasz Majewskiac3c8312011-10-27 10:36:46 +02007 */
8
Marek Vasutf1be9cb2015-12-04 02:51:20 +01009#ifndef __DWC2_USB_GADGET
10#define __DWC2_USB_GADGET
Lukasz Majewskiac3c8312011-10-27 10:36:46 +020011
Lukasz Majewskiac3c8312011-10-27 10:36:46 +020012#define PHY0_SLEEP (1 << 5)
13
Marek Vasut6939aca2015-12-04 02:23:29 +010014struct dwc2_plat_otg_data {
Lukasz Majewskiac3c8312011-10-27 10:36:46 +020015 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 Vasut80300882014-11-04 04:23:25 +010020 unsigned int usb_gusbcfg;
Lukasz Majewskiac3c8312011-10-27 10:36:46 +020021};
Marek Vasut0b907502015-12-04 01:36:36 +010022
Marek Vasut01b61fa2015-12-04 02:26:33 +010023int dwc2_udc_probe(struct dwc2_plat_otg_data *pdata);
Marek Vasut0b907502015-12-04 01:36:36 +010024
Marek Vasutf1be9cb2015-12-04 02:51:20 +010025#endif /* __DWC2_USB_GADGET */