blob: 20af6299290f842f63efad62b8aea273e6cdf72d [file] [log] [blame]
Lukasz Majewskiac3c8312011-10-27 10:36:46 +02001/*
2 * drivers/usb/gadget/s3c_udc.h
3 * Samsung S3C on-chip full/high speed USB device controllers
4 * 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
9#ifndef __S3C_USB_GADGET
10#define __S3C_USB_GADGET
11
Lukasz Majewskiac3c8312011-10-27 10:36:46 +020012#define PHY0_SLEEP (1 << 5)
13
Lukasz Majewskiac3c8312011-10-27 10:36:46 +020014struct s3c_plat_otg_data {
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 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 Vasut6f1c6f52015-12-04 02:21:41 +010023int s3c_udc_probe(struct s3c_plat_otg_data *pdata);
Marek Vasut0b907502015-12-04 01:36:36 +010024
Lukasz Majewskiac3c8312011-10-27 10:36:46 +020025#endif