summaryrefslogtreecommitdiffstats
path: root/include/usb/fsl_usb2.h
blob: 01232da4f92f559d2e9549393293419bb2d4704e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef __USB_FSL_USB2_H
#define __USB_FSL_USB2_H

enum fsl_usb2_operating_modes {
	FSL_USB2_MPH_HOST,
	FSL_USB2_DR_HOST,
	FSL_USB2_DR_DEVICE,
	FSL_USB2_DR_OTG,
};

enum fsl_usb2_phy_modes {
	FSL_USB2_PHY_NONE,
	FSL_USB2_PHY_ULPI,
	FSL_USB2_PHY_UTMI,
	FSL_USB2_PHY_UTMI_WIDE,
	FSL_USB2_PHY_SERIAL,
};

struct fsl_usb2_platform_data {
	/* board specific information */
	enum fsl_usb2_operating_modes	operating_mode;
	enum fsl_usb2_phy_modes		phy_mode;
	unsigned int			port_enables;
};

struct fsl_udc;

struct fsl_udc *ci_udc_register(struct device_d *dev, void __iomem *regs);
void ci_udc_unregister(struct fsl_udc *);

#endif /* __USB_FSL_USB2_H */