Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
usb.h File Reference
#include <linux/io.h>
#include <linux/platform_device.h>
#include <linux/usb/musb.h>

Go to the source code of this file.

Data Structures

struct  usbhs_omap_board_data
 

Macros

#define OMAP3_HS_USB_PORTS   3
 
#define CONF2_PHY_GPIOMODE   (1 << 23)
 
#define CONF2_OTGMODE   (3 << 14)
 
#define CONF2_NO_OVERRIDE   (0 << 14)
 
#define CONF2_FORCE_HOST   (1 << 14)
 
#define CONF2_FORCE_DEVICE   (2 << 14)
 
#define CONF2_FORCE_HOST_VBUS_LOW   (3 << 14)
 
#define CONF2_SESENDEN   (1 << 13)
 
#define CONF2_VBDTCTEN   (1 << 12)
 
#define CONF2_REFFREQ_24MHZ   (2 << 8)
 
#define CONF2_REFFREQ_26MHZ   (7 << 8)
 
#define CONF2_REFFREQ_13MHZ   (6 << 8)
 
#define CONF2_REFFREQ   (0xf << 8)
 
#define CONF2_PHYCLKGD   (1 << 7)
 
#define CONF2_VBUSSENSE   (1 << 6)
 
#define CONF2_PHY_PLLON   (1 << 5)
 
#define CONF2_RESET   (1 << 4)
 
#define CONF2_PHYPWRDN   (1 << 3)
 
#define CONF2_OTGPWRDN   (1 << 2)
 
#define CONF2_DATPOL   (1 << 1)
 
#define USBCTRL0   0x620
 
#define USBSTAT0   0x624
 
#define TI816X_USBPHY0_NORMAL_MODE   (1 << 0)
 
#define TI816X_USBPHY_REFCLK_OSC   (1 << 8)
 
#define USBPHY_CM_PWRDN   (1 << 0)
 
#define USBPHY_OTG_PWRDN   (1 << 1)
 
#define USBPHY_CHGDET_DIS   (1 << 2)
 
#define USBPHY_CHGDET_RSTRT   (1 << 3)
 
#define USBPHY_SRCONDM   (1 << 4)
 
#define USBPHY_SINKONDP   (1 << 5)
 
#define USBPHY_CHGISINK_EN   (1 << 6)
 
#define USBPHY_CHGVSRC_EN   (1 << 7)
 
#define USBPHY_DMPULLUP   (1 << 8)
 
#define USBPHY_DPPULLUP   (1 << 9)
 
#define USBPHY_CDET_EXTCTL   (1 << 10)
 
#define USBPHY_GPIO_MODE   (1 << 12)
 
#define USBPHY_DPOPBUFCTL   (1 << 13)
 
#define USBPHY_DMOPBUFCTL   (1 << 14)
 
#define USBPHY_DPINPUT   (1 << 15)
 
#define USBPHY_DMINPUT   (1 << 16)
 
#define USBPHY_DPGPIO_PD   (1 << 17)
 
#define USBPHY_DMGPIO_PD   (1 << 18)
 
#define USBPHY_OTGVDET_EN   (1 << 19)
 
#define USBPHY_OTGSESSEND_EN   (1 << 20)
 
#define USBPHY_DATA_POLARITY   (1 << 23)
 

Enumerations

enum  usbhs_omap_port_mode {
  OMAP_USBHS_PORT_MODE_UNUSED, OMAP_EHCI_PORT_MODE_PHY, OMAP_EHCI_PORT_MODE_TLL, OMAP_EHCI_PORT_MODE_HSIC,
  OMAP_OHCI_PORT_MODE_PHY_6PIN_DATSE0, OMAP_OHCI_PORT_MODE_PHY_6PIN_DPDM, OMAP_OHCI_PORT_MODE_PHY_3PIN_DATSE0, OMAP_OHCI_PORT_MODE_PHY_4PIN_DPDM,
  OMAP_OHCI_PORT_MODE_TLL_6PIN_DATSE0, OMAP_OHCI_PORT_MODE_TLL_6PIN_DPDM, OMAP_OHCI_PORT_MODE_TLL_3PIN_DATSE0, OMAP_OHCI_PORT_MODE_TLL_4PIN_DPDM,
  OMAP_OHCI_PORT_MODE_TLL_2PIN_DATSE0, OMAP_OHCI_PORT_MODE_TLL_2PIN_DPDM
}
 

Functions

void am35x_musb_reset (void)
 
void am35x_musb_phy_power (u8 on)
 
void am35x_musb_clear_irq (void)
 
void am35x_set_mode (u8 musb_mode)
 
void ti81xx_musb_phy_power (u8 on)
 

Macro Definition Documentation

#define CONF2_DATPOL   (1 << 1)

Definition at line 126 of file usb.h.

#define CONF2_FORCE_DEVICE   (2 << 14)

Definition at line 112 of file usb.h.

#define CONF2_FORCE_HOST   (1 << 14)

Definition at line 111 of file usb.h.

#define CONF2_FORCE_HOST_VBUS_LOW   (3 << 14)

Definition at line 113 of file usb.h.

#define CONF2_NO_OVERRIDE   (0 << 14)

Definition at line 110 of file usb.h.

#define CONF2_OTGMODE   (3 << 14)

Definition at line 109 of file usb.h.

#define CONF2_OTGPWRDN   (1 << 2)

Definition at line 125 of file usb.h.

#define CONF2_PHY_GPIOMODE   (1 << 23)

Definition at line 108 of file usb.h.

#define CONF2_PHY_PLLON   (1 << 5)

Definition at line 122 of file usb.h.

#define CONF2_PHYCLKGD   (1 << 7)

Definition at line 120 of file usb.h.

#define CONF2_PHYPWRDN   (1 << 3)

Definition at line 124 of file usb.h.

#define CONF2_REFFREQ   (0xf << 8)

Definition at line 119 of file usb.h.

#define CONF2_REFFREQ_13MHZ   (6 << 8)

Definition at line 118 of file usb.h.

#define CONF2_REFFREQ_24MHZ   (2 << 8)

Definition at line 116 of file usb.h.

#define CONF2_REFFREQ_26MHZ   (7 << 8)

Definition at line 117 of file usb.h.

#define CONF2_RESET   (1 << 4)

Definition at line 123 of file usb.h.

#define CONF2_SESENDEN   (1 << 13)

Definition at line 114 of file usb.h.

#define CONF2_VBDTCTEN   (1 << 12)

Definition at line 115 of file usb.h.

#define CONF2_VBUSSENSE   (1 << 6)

Definition at line 121 of file usb.h.

#define OMAP3_HS_USB_PORTS   3

Definition at line 10 of file usb.h.

#define TI816X_USBPHY0_NORMAL_MODE   (1 << 0)

Definition at line 133 of file usb.h.

#define TI816X_USBPHY_REFCLK_OSC   (1 << 8)

Definition at line 134 of file usb.h.

#define USBCTRL0   0x620

Definition at line 129 of file usb.h.

#define USBPHY_CDET_EXTCTL   (1 << 10)

Definition at line 147 of file usb.h.

#define USBPHY_CHGDET_DIS   (1 << 2)

Definition at line 139 of file usb.h.

#define USBPHY_CHGDET_RSTRT   (1 << 3)

Definition at line 140 of file usb.h.

#define USBPHY_CHGISINK_EN   (1 << 6)

Definition at line 143 of file usb.h.

#define USBPHY_CHGVSRC_EN   (1 << 7)

Definition at line 144 of file usb.h.

#define USBPHY_CM_PWRDN   (1 << 0)

Definition at line 137 of file usb.h.

#define USBPHY_DATA_POLARITY   (1 << 23)

Definition at line 157 of file usb.h.

#define USBPHY_DMGPIO_PD   (1 << 18)

Definition at line 154 of file usb.h.

#define USBPHY_DMINPUT   (1 << 16)

Definition at line 152 of file usb.h.

#define USBPHY_DMOPBUFCTL   (1 << 14)

Definition at line 150 of file usb.h.

#define USBPHY_DMPULLUP   (1 << 8)

Definition at line 145 of file usb.h.

#define USBPHY_DPGPIO_PD   (1 << 17)

Definition at line 153 of file usb.h.

#define USBPHY_DPINPUT   (1 << 15)

Definition at line 151 of file usb.h.

#define USBPHY_DPOPBUFCTL   (1 << 13)

Definition at line 149 of file usb.h.

#define USBPHY_DPPULLUP   (1 << 9)

Definition at line 146 of file usb.h.

#define USBPHY_GPIO_MODE   (1 << 12)

Definition at line 148 of file usb.h.

#define USBPHY_OTG_PWRDN   (1 << 1)

Definition at line 138 of file usb.h.

#define USBPHY_OTGSESSEND_EN   (1 << 20)

Definition at line 156 of file usb.h.

#define USBPHY_OTGVDET_EN   (1 << 19)

Definition at line 155 of file usb.h.

#define USBPHY_SINKONDP   (1 << 5)

Definition at line 142 of file usb.h.

#define USBPHY_SRCONDM   (1 << 4)

Definition at line 141 of file usb.h.

#define USBSTAT0   0x624

Definition at line 130 of file usb.h.

Enumeration Type Documentation

Enumerator:
OMAP_USBHS_PORT_MODE_UNUSED 
OMAP_EHCI_PORT_MODE_PHY 
OMAP_EHCI_PORT_MODE_TLL 
OMAP_EHCI_PORT_MODE_HSIC 
OMAP_OHCI_PORT_MODE_PHY_6PIN_DATSE0 
OMAP_OHCI_PORT_MODE_PHY_6PIN_DPDM 
OMAP_OHCI_PORT_MODE_PHY_3PIN_DATSE0 
OMAP_OHCI_PORT_MODE_PHY_4PIN_DPDM 
OMAP_OHCI_PORT_MODE_TLL_6PIN_DATSE0 
OMAP_OHCI_PORT_MODE_TLL_6PIN_DPDM 
OMAP_OHCI_PORT_MODE_TLL_3PIN_DATSE0 
OMAP_OHCI_PORT_MODE_TLL_4PIN_DPDM 
OMAP_OHCI_PORT_MODE_TLL_2PIN_DATSE0 
OMAP_OHCI_PORT_MODE_TLL_2PIN_DPDM 

Definition at line 12 of file usb.h.

Function Documentation

void am35x_musb_clear_irq ( void  )

Definition at line 90 of file omap_phy_internal.c.

void am35x_musb_phy_power ( u8  on)

Definition at line 52 of file omap_phy_internal.c.

void am35x_musb_reset ( void  )

Definition at line 36 of file omap_phy_internal.c.

void am35x_set_mode ( u8  musb_mode)

Definition at line 100 of file omap_phy_internal.c.

void ti81xx_musb_phy_power ( u8  on)

Definition at line 122 of file omap_phy_internal.c.