4dc9b87601667185ca17fa625e6b1f85804cfe8a
[sfrench/cifs-2.6.git] / include / linux / platform_data / s3c-hsudc.h
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * S3C24XX USB 2.0 High-speed USB controller gadget driver
4  *
5  * Copyright (c) 2010 Samsung Electronics Co., Ltd.
6  *              http://www.samsung.com/
7  *
8  * The S3C24XX USB 2.0 high-speed USB controller supports upto 9 endpoints.
9  * Each endpoint can be configured as either in or out endpoint. Endpoints
10  * can be configured for Bulk or Interrupt transfer mode.
11 */
12
13 #ifndef __LINUX_USB_S3C_HSUDC_H
14 #define __LINUX_USB_S3C_HSUDC_H
15
16 /**
17  * s3c24xx_hsudc_platdata - Platform data for USB High-Speed gadget controller.
18  * @epnum: Number of endpoints to be instantiated by the controller driver.
19  * @gpio_init: Platform specific USB related GPIO initialization.
20  * @gpio_uninit: Platform specific USB releted GPIO uninitialzation.
21  *
22  * Representation of platform data for the S3C24XX USB 2.0 High Speed gadget
23  * controllers.
24  */
25 struct s3c24xx_hsudc_platdata {
26         unsigned int    epnum;
27         void            (*gpio_init)(void);
28         void            (*gpio_uninit)(void);
29 };
30
31 #endif  /* __LINUX_USB_S3C_HSUDC_H */