diff options
author | Anand Gadiyar <gadiyar@ti.com> | 2010-05-10 12:26:10 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-20 16:21:44 -0400 |
commit | 95344fcc07964202737f85c16dbabbc40cae5e4d (patch) | |
tree | 1cb338af3630c8057d255bb01bdd6e716fc4c526 /arch/arm/plat-omap/include | |
parent | 73a0bd77d60163d8b4639834119a1ed65155c062 (diff) |
USB: omap3: add platform init code for OHCI driver
Add platform init code for the OMAP3 OHCI driver.
Also, configure padconf settings for OMAP3 depending
on which port mode is used.
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch/arm/plat-omap/include')
-rw-r--r-- | arch/arm/plat-omap/include/plat/usb.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/include/plat/usb.h b/arch/arm/plat-omap/include/plat/usb.h index 60c734f40ed1..98eef5360e6d 100644 --- a/arch/arm/plat-omap/include/plat/usb.h +++ b/arch/arm/plat-omap/include/plat/usb.h | |||
@@ -13,6 +13,20 @@ enum ehci_hcd_omap_mode { | |||
13 | EHCI_HCD_OMAP_MODE_TLL, | 13 | EHCI_HCD_OMAP_MODE_TLL, |
14 | }; | 14 | }; |
15 | 15 | ||
16 | enum ohci_omap3_port_mode { | ||
17 | OMAP_OHCI_PORT_MODE_UNUSED, | ||
18 | OMAP_OHCI_PORT_MODE_PHY_6PIN_DATSE0, | ||
19 | OMAP_OHCI_PORT_MODE_PHY_6PIN_DPDM, | ||
20 | OMAP_OHCI_PORT_MODE_PHY_3PIN_DATSE0, | ||
21 | OMAP_OHCI_PORT_MODE_PHY_4PIN_DPDM, | ||
22 | OMAP_OHCI_PORT_MODE_TLL_6PIN_DATSE0, | ||
23 | OMAP_OHCI_PORT_MODE_TLL_6PIN_DPDM, | ||
24 | OMAP_OHCI_PORT_MODE_TLL_3PIN_DATSE0, | ||
25 | OMAP_OHCI_PORT_MODE_TLL_4PIN_DPDM, | ||
26 | OMAP_OHCI_PORT_MODE_TLL_2PIN_DATSE0, | ||
27 | OMAP_OHCI_PORT_MODE_TLL_2PIN_DPDM, | ||
28 | }; | ||
29 | |||
16 | struct ehci_hcd_omap_platform_data { | 30 | struct ehci_hcd_omap_platform_data { |
17 | enum ehci_hcd_omap_mode port_mode[OMAP3_HS_USB_PORTS]; | 31 | enum ehci_hcd_omap_mode port_mode[OMAP3_HS_USB_PORTS]; |
18 | unsigned phy_reset:1; | 32 | unsigned phy_reset:1; |
@@ -21,6 +35,13 @@ struct ehci_hcd_omap_platform_data { | |||
21 | int reset_gpio_port[OMAP3_HS_USB_PORTS]; | 35 | int reset_gpio_port[OMAP3_HS_USB_PORTS]; |
22 | }; | 36 | }; |
23 | 37 | ||
38 | struct ohci_hcd_omap_platform_data { | ||
39 | enum ohci_omap3_port_mode port_mode[OMAP3_HS_USB_PORTS]; | ||
40 | |||
41 | /* Set this to true for ES2.x silicon */ | ||
42 | unsigned es2_compatibility:1; | ||
43 | }; | ||
44 | |||
24 | /*-------------------------------------------------------------------------*/ | 45 | /*-------------------------------------------------------------------------*/ |
25 | 46 | ||
26 | #define OMAP1_OTG_BASE 0xfffb0400 | 47 | #define OMAP1_OTG_BASE 0xfffb0400 |
@@ -56,6 +77,8 @@ extern void usb_musb_init(struct omap_musb_board_data *board_data); | |||
56 | 77 | ||
57 | extern void usb_ehci_init(const struct ehci_hcd_omap_platform_data *pdata); | 78 | extern void usb_ehci_init(const struct ehci_hcd_omap_platform_data *pdata); |
58 | 79 | ||
80 | extern void usb_ohci_init(const struct ohci_hcd_omap_platform_data *pdata); | ||
81 | |||
59 | #endif | 82 | #endif |
60 | 83 | ||
61 | void omap_usb_init(struct omap_usb_config *pdata); | 84 | void omap_usb_init(struct omap_usb_config *pdata); |