diff options
Diffstat (limited to 'arch/arm/mach-omap2/usb.h')
| -rw-r--r-- | arch/arm/mach-omap2/usb.h | 25 | 
1 files changed, 8 insertions, 17 deletions
diff --git a/arch/arm/mach-omap2/usb.h b/arch/arm/mach-omap2/usb.h index 9b986ead7c4..e7261ebcf7b 100644 --- a/arch/arm/mach-omap2/usb.h +++ b/arch/arm/mach-omap2/usb.h @@ -53,26 +53,17 @@  #define USBPHY_OTGSESSEND_EN	(1 << 20)  #define USBPHY_DATA_POLARITY	(1 << 23) -struct usbhs_omap_board_data { -	enum usbhs_omap_port_mode	port_mode[OMAP3_HS_USB_PORTS]; - -	/* have to be valid if phy_reset is true and portx is in phy mode */ -	int	reset_gpio_port[OMAP3_HS_USB_PORTS]; - -	/* Set this to true for ES2.x silicon */ -	unsigned			es2_compatibility:1; - -	unsigned			phy_reset:1; - -	/* -	 * Regulators for USB PHYs. -	 * Each PHY can have a separate regulator. -	 */ -	struct regulator		*regulator[OMAP3_HS_USB_PORTS]; +struct usbhs_phy_data { +	int port;		/* 1 indexed port number */ +	int reset_gpio; +	int vcc_gpio; +	bool vcc_polarity;	/* 1 active high, 0 active low */ +	void *platform_data;  };  extern void usb_musb_init(struct omap_musb_board_data *board_data); -extern void usbhs_init(const struct usbhs_omap_board_data *pdata); +extern void usbhs_init(struct usbhs_omap_platform_data *pdata); +extern int usbhs_init_phys(struct usbhs_phy_data *phy, int num_phys);  extern void am35x_musb_reset(void);  extern void am35x_musb_phy_power(u8 on);  |