blob: 4d31a5cbdeb133909fdba500b6784fe7b7565ffc [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Igor Grinberg69f22be2010-07-27 15:06:58 +03002/*
3 * PXA3xx U2D header
4 *
5 * Copyright (C) 2010 CompuLab Ltd.
6 *
7 * Igor Grinberg <grinberg@compulab.co.il>
Igor Grinberg69f22be2010-07-27 15:06:58 +03008 */
9#ifndef __PXA310_U2D__
10#define __PXA310_U2D__
11
12#include <linux/usb/ulpi.h>
13
14struct 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 */
26int pxa3xx_u2d_start_hc(struct usb_bus *host);
27/* Stop PXA3xx U2D host */
28void pxa3xx_u2d_stop_hc(struct usb_bus *host);
29
30extern void pxa3xx_set_u2d_info(struct pxa3xx_u2d_platform_data *info);
31
32#endif /* __PXA310_U2D__ */