Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
usb-ehci-mxc.h File Reference

Go to the source code of this file.

Data Structures

struct  mxc_usbh_platform_data
 

Macros

#define MXC_EHCI_PHY_LOW_POWER_SUSPEND   (1 << 23)
 
#define MXC_EHCI_FORCE_FS   (1 << 24)
 
#define MXC_EHCI_UTMI_8BIT   (0 << 28)
 
#define MXC_EHCI_UTMI_16BIT   (1 << 28)
 
#define MXC_EHCI_SERIAL   (1 << 29)
 
#define MXC_EHCI_MODE_UTMI   (0 << 30)
 
#define MXC_EHCI_MODE_PHILIPS   (1 << 30)
 
#define MXC_EHCI_MODE_ULPI   (2 << 30)
 
#define MXC_EHCI_MODE_SERIAL   (3 << 30)
 
#define MXC_EHCI_INTERFACE_DIFF_UNI   (0 << 0)
 
#define MXC_EHCI_INTERFACE_DIFF_BI   (1 << 0)
 
#define MXC_EHCI_INTERFACE_SINGLE_UNI   (2 << 0)
 
#define MXC_EHCI_INTERFACE_SINGLE_BI   (3 << 0)
 
#define MXC_EHCI_INTERFACE_MASK   (0xf)
 
#define MXC_EHCI_POWER_PINS_ENABLED   (1 << 5)
 
#define MXC_EHCI_PWR_PIN_ACTIVE_HIGH   (1 << 6)
 
#define MXC_EHCI_OC_PIN_ACTIVE_LOW   (1 << 7)
 
#define MXC_EHCI_TTL_ENABLED   (1 << 8)
 
#define MXC_EHCI_INTERNAL_PHY   (1 << 9)
 
#define MXC_EHCI_IPPUE_DOWN   (1 << 10)
 
#define MXC_EHCI_IPPUE_UP   (1 << 11)
 
#define MXC_EHCI_WAKEUP_ENABLED   (1 << 12)
 
#define MXC_EHCI_ITC_NO_THRESHOLD   (1 << 13)
 
#define MXC_USBCTRL_OFFSET   0
 
#define MXC_USB_PHY_CTR_FUNC_OFFSET   0x8
 
#define MXC_USB_PHY_CTR_FUNC2_OFFSET   0xc
 
#define MXC_USBH2CTRL_OFFSET   0x14
 
#define MX5_USBOTHER_REGS_OFFSET   0x800
 
#define MX5_USB_UTMI_PHYCTRL1_PLLDIV_MASK   0x3
 
#define MX5_USB_UTMI_PHYCTRL1_PLLDIV_SHIFT   0
 

Functions

int mx51_initialize_usb_hw (int port, unsigned int flags)
 
int mx25_initialize_usb_hw (int port, unsigned int flags)
 
int mx31_initialize_usb_hw (int port, unsigned int flags)
 
int mx35_initialize_usb_hw (int port, unsigned int flags)
 
int mx27_initialize_usb_hw (int port, unsigned int flags)
 

Macro Definition Documentation

#define MX5_USB_UTMI_PHYCTRL1_PLLDIV_MASK   0x3

Definition at line 41 of file usb-ehci-mxc.h.

#define MX5_USB_UTMI_PHYCTRL1_PLLDIV_SHIFT   0

Definition at line 42 of file usb-ehci-mxc.h.

#define MX5_USBOTHER_REGS_OFFSET   0x800

Definition at line 38 of file usb-ehci-mxc.h.

#define MXC_EHCI_FORCE_FS   (1 << 24)

Definition at line 6 of file usb-ehci-mxc.h.

#define MXC_EHCI_INTERFACE_DIFF_BI   (1 << 0)

Definition at line 17 of file usb-ehci-mxc.h.

#define MXC_EHCI_INTERFACE_DIFF_UNI   (0 << 0)

Definition at line 16 of file usb-ehci-mxc.h.

#define MXC_EHCI_INTERFACE_MASK   (0xf)

Definition at line 20 of file usb-ehci-mxc.h.

#define MXC_EHCI_INTERFACE_SINGLE_BI   (3 << 0)

Definition at line 19 of file usb-ehci-mxc.h.

#define MXC_EHCI_INTERFACE_SINGLE_UNI   (2 << 0)

Definition at line 18 of file usb-ehci-mxc.h.

#define MXC_EHCI_INTERNAL_PHY   (1 << 9)

Definition at line 27 of file usb-ehci-mxc.h.

#define MXC_EHCI_IPPUE_DOWN   (1 << 10)

Definition at line 28 of file usb-ehci-mxc.h.

#define MXC_EHCI_IPPUE_UP   (1 << 11)

Definition at line 29 of file usb-ehci-mxc.h.

#define MXC_EHCI_ITC_NO_THRESHOLD   (1 << 13)

Definition at line 31 of file usb-ehci-mxc.h.

#define MXC_EHCI_MODE_PHILIPS   (1 << 30)

Definition at line 11 of file usb-ehci-mxc.h.

#define MXC_EHCI_MODE_SERIAL   (3 << 30)

Definition at line 13 of file usb-ehci-mxc.h.

#define MXC_EHCI_MODE_ULPI   (2 << 30)

Definition at line 12 of file usb-ehci-mxc.h.

#define MXC_EHCI_MODE_UTMI   (0 << 30)

Definition at line 10 of file usb-ehci-mxc.h.

#define MXC_EHCI_OC_PIN_ACTIVE_LOW   (1 << 7)

Definition at line 24 of file usb-ehci-mxc.h.

#define MXC_EHCI_PHY_LOW_POWER_SUSPEND   (1 << 23)

Definition at line 5 of file usb-ehci-mxc.h.

#define MXC_EHCI_POWER_PINS_ENABLED   (1 << 5)

Definition at line 22 of file usb-ehci-mxc.h.

#define MXC_EHCI_PWR_PIN_ACTIVE_HIGH   (1 << 6)

Definition at line 23 of file usb-ehci-mxc.h.

#define MXC_EHCI_SERIAL   (1 << 29)

Definition at line 9 of file usb-ehci-mxc.h.

#define MXC_EHCI_TTL_ENABLED   (1 << 8)

Definition at line 25 of file usb-ehci-mxc.h.

#define MXC_EHCI_UTMI_16BIT   (1 << 28)

Definition at line 8 of file usb-ehci-mxc.h.

#define MXC_EHCI_UTMI_8BIT   (0 << 28)

Definition at line 7 of file usb-ehci-mxc.h.

#define MXC_EHCI_WAKEUP_ENABLED   (1 << 12)

Definition at line 30 of file usb-ehci-mxc.h.

#define MXC_USB_PHY_CTR_FUNC2_OFFSET   0xc

Definition at line 35 of file usb-ehci-mxc.h.

#define MXC_USB_PHY_CTR_FUNC_OFFSET   0x8

Definition at line 34 of file usb-ehci-mxc.h.

#define MXC_USBCTRL_OFFSET   0

Definition at line 33 of file usb-ehci-mxc.h.

#define MXC_USBH2CTRL_OFFSET   0x14

Definition at line 36 of file usb-ehci-mxc.h.

Function Documentation

int mx25_initialize_usb_hw ( int  port,
unsigned int  flags 
)

Definition at line 40 of file ehci-imx25.c.

int mx27_initialize_usb_hw ( int  port,
unsigned int  flags 
)

Definition at line 38 of file ehci-imx27.c.

int mx31_initialize_usb_hw ( int  port,
unsigned int  flags 
)

Definition at line 38 of file ehci-imx31.c.

int mx35_initialize_usb_hw ( int  port,
unsigned int  flags 
)

Definition at line 40 of file ehci-imx35.c.

int mx51_initialize_usb_hw ( int  port,
unsigned int  flags 
)

Definition at line 50 of file ehci-imx5.c.