1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * PXA3xx U2D header
4  *
5  * Copyright (C) 2010 CompuLab Ltd.
6  *
7  * Igor Grinberg <grinberg@compulab.co.il>
8  */
9 #ifndef __PXA310_U2D__
10 #define __PXA310_U2D__
11 
12 #include <linux/usb/ulpi.h>
13 
14 struct pxa3xx_u2d_platform_data {
15 
16 #define ULPI_SER_6PIN	(1 << 0)
17 #define ULPI_SER_3PIN	(1 << 1)
18 	unsigned int ulpi_mode;
19 
20 	int (*init)(struct device *);
21 	void (*exit)(struct device *);
22 };
23 
24 
25 /* Start PXA3xx U2D host */
26 int pxa3xx_u2d_start_hc(struct usb_bus *host);
27 /* Stop PXA3xx U2D host */
28 void pxa3xx_u2d_stop_hc(struct usb_bus *host);
29 
30 extern void pxa3xx_set_u2d_info(struct pxa3xx_u2d_platform_data *info);
31 
32 #endif /* __PXA310_U2D__ */
33