Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * S3C24XX USB 2.0 High-speed USB controller gadget driver
0004  *
0005  * Copyright (c) 2010 Samsung Electronics Co., Ltd.
0006  *      http://www.samsung.com/
0007  *
0008  * The S3C24XX USB 2.0 high-speed USB controller supports upto 9 endpoints.
0009  * Each endpoint can be configured as either in or out endpoint. Endpoints
0010  * can be configured for Bulk or Interrupt transfer mode.
0011 */
0012 
0013 #ifndef __LINUX_USB_S3C_HSUDC_H
0014 #define __LINUX_USB_S3C_HSUDC_H
0015 
0016 /**
0017  * s3c24xx_hsudc_platdata - Platform data for USB High-Speed gadget controller.
0018  * @epnum: Number of endpoints to be instantiated by the controller driver.
0019  * @gpio_init: Platform specific USB related GPIO initialization.
0020  * @gpio_uninit: Platform specific USB releted GPIO uninitialzation.
0021  *
0022  * Representation of platform data for the S3C24XX USB 2.0 High Speed gadget
0023  * controllers.
0024  */
0025 struct s3c24xx_hsudc_platdata {
0026     unsigned int    epnum;
0027     void        (*gpio_init)(void);
0028     void        (*gpio_uninit)(void);
0029     void        (*phy_init)(void);
0030     void        (*phy_uninit)(void);
0031 };
0032 
0033 #endif  /* __LINUX_USB_S3C_HSUDC_H */