diff options
Diffstat (limited to 'arch/arm/plat-omap/include/plat/usb.h')
-rw-r--r-- | arch/arm/plat-omap/include/plat/usb.h | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/arch/arm/plat-omap/include/plat/usb.h b/arch/arm/plat-omap/include/plat/usb.h index 17d3c939775..dc864b580da 100644 --- a/arch/arm/plat-omap/include/plat/usb.h +++ b/arch/arm/plat-omap/include/plat/usb.h | |||
@@ -100,9 +100,6 @@ extern void usb_musb_init(struct omap_musb_board_data *board_data); | |||
100 | 100 | ||
101 | extern void usbhs_init(const struct usbhs_omap_board_data *pdata); | 101 | extern void usbhs_init(const struct usbhs_omap_board_data *pdata); |
102 | 102 | ||
103 | extern int omap_usbhs_enable(struct device *dev); | ||
104 | extern void omap_usbhs_disable(struct device *dev); | ||
105 | |||
106 | extern int omap4430_phy_power(struct device *dev, int ID, int on); | 103 | extern int omap4430_phy_power(struct device *dev, int ID, int on); |
107 | extern int omap4430_phy_set_clk(struct device *dev, int on); | 104 | extern int omap4430_phy_set_clk(struct device *dev, int on); |
108 | extern int omap4430_phy_init(struct device *dev); | 105 | extern int omap4430_phy_init(struct device *dev); |
@@ -114,6 +111,7 @@ extern void am35x_musb_reset(void); | |||
114 | extern void am35x_musb_phy_power(u8 on); | 111 | extern void am35x_musb_phy_power(u8 on); |
115 | extern void am35x_musb_clear_irq(void); | 112 | extern void am35x_musb_clear_irq(void); |
116 | extern void am35x_set_mode(u8 musb_mode); | 113 | extern void am35x_set_mode(u8 musb_mode); |
114 | extern void ti81xx_musb_phy_power(u8 on); | ||
117 | 115 | ||
118 | /* | 116 | /* |
119 | * FIXME correct answer depends on hmc_mode, | 117 | * FIXME correct answer depends on hmc_mode, |
@@ -273,6 +271,37 @@ static inline void omap2_usbfs_init(struct omap_usb_config *pdata) | |||
273 | #define CONF2_OTGPWRDN (1 << 2) | 271 | #define CONF2_OTGPWRDN (1 << 2) |
274 | #define CONF2_DATPOL (1 << 1) | 272 | #define CONF2_DATPOL (1 << 1) |
275 | 273 | ||
274 | /* TI81XX specific definitions */ | ||
275 | #define USBCTRL0 0x620 | ||
276 | #define USBSTAT0 0x624 | ||
277 | |||
278 | /* TI816X PHY controls bits */ | ||
279 | #define TI816X_USBPHY0_NORMAL_MODE (1 << 0) | ||
280 | #define TI816X_USBPHY_REFCLK_OSC (1 << 8) | ||
281 | |||
282 | /* TI814X PHY controls bits */ | ||
283 | #define USBPHY_CM_PWRDN (1 << 0) | ||
284 | #define USBPHY_OTG_PWRDN (1 << 1) | ||
285 | #define USBPHY_CHGDET_DIS (1 << 2) | ||
286 | #define USBPHY_CHGDET_RSTRT (1 << 3) | ||
287 | #define USBPHY_SRCONDM (1 << 4) | ||
288 | #define USBPHY_SINKONDP (1 << 5) | ||
289 | #define USBPHY_CHGISINK_EN (1 << 6) | ||
290 | #define USBPHY_CHGVSRC_EN (1 << 7) | ||
291 | #define USBPHY_DMPULLUP (1 << 8) | ||
292 | #define USBPHY_DPPULLUP (1 << 9) | ||
293 | #define USBPHY_CDET_EXTCTL (1 << 10) | ||
294 | #define USBPHY_GPIO_MODE (1 << 12) | ||
295 | #define USBPHY_DPOPBUFCTL (1 << 13) | ||
296 | #define USBPHY_DMOPBUFCTL (1 << 14) | ||
297 | #define USBPHY_DPINPUT (1 << 15) | ||
298 | #define USBPHY_DMINPUT (1 << 16) | ||
299 | #define USBPHY_DPGPIO_PD (1 << 17) | ||
300 | #define USBPHY_DMGPIO_PD (1 << 18) | ||
301 | #define USBPHY_OTGVDET_EN (1 << 19) | ||
302 | #define USBPHY_OTGSESSEND_EN (1 << 20) | ||
303 | #define USBPHY_DATA_POLARITY (1 << 23) | ||
304 | |||
276 | #if defined(CONFIG_ARCH_OMAP1) && defined(CONFIG_USB) | 305 | #if defined(CONFIG_ARCH_OMAP1) && defined(CONFIG_USB) |
277 | u32 omap1_usb0_init(unsigned nwires, unsigned is_device); | 306 | u32 omap1_usb0_init(unsigned nwires, unsigned is_device); |
278 | u32 omap1_usb1_init(unsigned nwires); | 307 | u32 omap1_usb1_init(unsigned nwires); |