Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7f07863e authored by Roger Quadros's avatar Roger Quadros
Browse files

ARM: OMAP: Consolidate OMAP USB-HS platform data (part 1/3)



Let's have a single platform data structure for the OMAP's High-Speed
USB host subsystem instead of having 3 separate ones i.e. one for
board data, one for USB Host (UHH) module and one for USB-TLL module.

This makes the code much simpler and avoids creating multiple copies of
platform data.

Part 1 touches platform headers
Part 2 touches drivers
Part 3 touches platform data

Signed-off-by: default avatarRoger Quadros <rogerq@ti.com>
Reviewed-by: default avatarFelipe Balbi <balbi@ti.com>
parent 88b62b91
Loading
Loading
Loading
Loading
+6 −2
Original line number Original line Diff line number Diff line
@@ -56,12 +56,16 @@ struct ohci_hcd_omap_platform_data {


struct usbhs_omap_platform_data {
struct usbhs_omap_platform_data {
	enum usbhs_omap_port_mode	port_mode[OMAP3_HS_USB_PORTS];
	enum usbhs_omap_port_mode	port_mode[OMAP3_HS_USB_PORTS];
	int				reset_gpio_port[OMAP3_HS_USB_PORTS];
	struct regulator		*regulator[OMAP3_HS_USB_PORTS];


	struct ehci_hcd_omap_platform_data	*ehci_data;
	struct ehci_hcd_omap_platform_data	*ehci_data;
	struct ohci_hcd_omap_platform_data	*ohci_data;
	struct ohci_hcd_omap_platform_data	*ohci_data;


	/* OMAP3 <= ES2.1 have a single ulpi bypass control bit */
	/* OMAP3 <= ES2.1 have a single ulpi bypass control bit */
	unsigned single_ulpi_bypass:1;
	unsigned single_ulpi_bypass:1;
	unsigned es2_compatibility:1;
	unsigned phy_reset:1;
};
};


/*-------------------------------------------------------------------------*/
/*-------------------------------------------------------------------------*/