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

Go to the source code of this file.

Macros

#define ULPI_OTG_ID_PULLUP   (1 << 0)
 
#define ULPI_OTG_DP_PULLDOWN_DIS   (1 << 1)
 
#define ULPI_OTG_DM_PULLDOWN_DIS   (1 << 2)
 
#define ULPI_OTG_DISCHRGVBUS   (1 << 3)
 
#define ULPI_OTG_CHRGVBUS   (1 << 4)
 
#define ULPI_OTG_DRVVBUS   (1 << 5)
 
#define ULPI_OTG_DRVVBUS_EXT   (1 << 6)
 
#define ULPI_OTG_EXTVBUSIND   (1 << 7)
 
#define ULPI_IC_6PIN_SERIAL   (1 << 8)
 
#define ULPI_IC_3PIN_SERIAL   (1 << 9)
 
#define ULPI_IC_CARKIT   (1 << 10)
 
#define ULPI_IC_CLKSUSPM   (1 << 11)
 
#define ULPI_IC_AUTORESUME   (1 << 12)
 
#define ULPI_IC_EXTVBUS_INDINV   (1 << 13)
 
#define ULPI_IC_IND_PASSTHRU   (1 << 14)
 
#define ULPI_IC_PROTECT_DIS   (1 << 15)
 
#define ULPI_FC_HS   (1 << 16)
 
#define ULPI_FC_FS   (1 << 17)
 
#define ULPI_FC_LS   (1 << 18)
 
#define ULPI_FC_FS4LS   (1 << 19)
 
#define ULPI_FC_TERMSEL   (1 << 20)
 
#define ULPI_FC_OP_NORM   (1 << 21)
 
#define ULPI_FC_OP_NODRV   (1 << 22)
 
#define ULPI_FC_OP_DIS_NRZI   (1 << 23)
 
#define ULPI_FC_OP_NSYNC_NEOP   (1 << 24)
 
#define ULPI_FC_RST   (1 << 25)
 
#define ULPI_FC_SUSPM   (1 << 26)
 
#define ULPI_SET(a)   (a + 1)
 
#define ULPI_CLR(a)   (a + 2)
 
#define ULPI_VENDOR_ID_LOW   0x00
 
#define ULPI_VENDOR_ID_HIGH   0x01
 
#define ULPI_PRODUCT_ID_LOW   0x02
 
#define ULPI_PRODUCT_ID_HIGH   0x03
 
#define ULPI_FUNC_CTRL   0x04
 
#define ULPI_IFC_CTRL   0x07
 
#define ULPI_OTG_CTRL   0x0a
 
#define ULPI_USB_INT_EN_RISE   0x0d
 
#define ULPI_USB_INT_EN_FALL   0x10
 
#define ULPI_USB_INT_STS   0x13
 
#define ULPI_USB_INT_LATCH   0x14
 
#define ULPI_DEBUG   0x15
 
#define ULPI_SCRATCH   0x16
 
#define ULPI_CARCIT_CTRL   0x19
 
#define ULPI_CARCIT_INT_DELAY   0x1c
 
#define ULPI_CARCIT_INT_EN   0x1d
 
#define ULPI_CARCIT_INT_STS   0x20
 
#define ULPI_CARCIT_INT_LATCH   0x21
 
#define ULPI_CARCIT_PLS_CTRL   0x22
 
#define ULPI_TX_POS_WIDTH   0x25
 
#define ULPI_TX_NEG_WIDTH   0x26
 
#define ULPI_POLARITY_RECOVERY   0x27
 
#define ULPI_ACCESS_EXTENDED   0x2f
 
#define ULPI_VENDOR_SPECIFIC   0x30
 
#define ULPI_EXT_VENDOR_SPECIFIC   0x80
 
#define ULPI_FUNC_CTRL_XCVRSEL   (1 << 0)
 
#define ULPI_FUNC_CTRL_XCVRSEL_MASK   (3 << 0)
 
#define ULPI_FUNC_CTRL_HIGH_SPEED   (0 << 0)
 
#define ULPI_FUNC_CTRL_FULL_SPEED   (1 << 0)
 
#define ULPI_FUNC_CTRL_LOW_SPEED   (2 << 0)
 
#define ULPI_FUNC_CTRL_FS4LS   (3 << 0)
 
#define ULPI_FUNC_CTRL_TERMSELECT   (1 << 2)
 
#define ULPI_FUNC_CTRL_OPMODE   (1 << 3)
 
#define ULPI_FUNC_CTRL_OPMODE_MASK   (3 << 3)
 
#define ULPI_FUNC_CTRL_OPMODE_NORMAL   (0 << 3)
 
#define ULPI_FUNC_CTRL_OPMODE_NONDRIVING   (1 << 3)
 
#define ULPI_FUNC_CTRL_OPMODE_DISABLE_NRZI   (2 << 3)
 
#define ULPI_FUNC_CTRL_OPMODE_NOSYNC_NOEOP   (3 << 3)
 
#define ULPI_FUNC_CTRL_RESET   (1 << 5)
 
#define ULPI_FUNC_CTRL_SUSPENDM   (1 << 6)
 
#define ULPI_IFC_CTRL_6_PIN_SERIAL_MODE   (1 << 0)
 
#define ULPI_IFC_CTRL_3_PIN_SERIAL_MODE   (1 << 1)
 
#define ULPI_IFC_CTRL_CARKITMODE   (1 << 2)
 
#define ULPI_IFC_CTRL_CLOCKSUSPENDM   (1 << 3)
 
#define ULPI_IFC_CTRL_AUTORESUME   (1 << 4)
 
#define ULPI_IFC_CTRL_EXTERNAL_VBUS   (1 << 5)
 
#define ULPI_IFC_CTRL_PASSTHRU   (1 << 6)
 
#define ULPI_IFC_CTRL_PROTECT_IFC_DISABLE   (1 << 7)
 
#define ULPI_OTG_CTRL_ID_PULLUP   (1 << 0)
 
#define ULPI_OTG_CTRL_DP_PULLDOWN   (1 << 1)
 
#define ULPI_OTG_CTRL_DM_PULLDOWN   (1 << 2)
 
#define ULPI_OTG_CTRL_DISCHRGVBUS   (1 << 3)
 
#define ULPI_OTG_CTRL_CHRGVBUS   (1 << 4)
 
#define ULPI_OTG_CTRL_DRVVBUS   (1 << 5)
 
#define ULPI_OTG_CTRL_DRVVBUS_EXT   (1 << 6)
 
#define ULPI_OTG_CTRL_EXTVBUSIND   (1 << 7)
 
#define ULPI_INT_HOST_DISCONNECT   (1 << 0)
 
#define ULPI_INT_VBUS_VALID   (1 << 1)
 
#define ULPI_INT_SESS_VALID   (1 << 2)
 
#define ULPI_INT_SESS_END   (1 << 3)
 
#define ULPI_INT_IDGRD   (1 << 4)
 
#define ULPI_DEBUG_LINESTATE0   (1 << 0)
 
#define ULPI_DEBUG_LINESTATE1   (1 << 1)
 
#define ULPI_CARKIT_CTRL_CARKITPWR   (1 << 0)
 
#define ULPI_CARKIT_CTRL_IDGNDDRV   (1 << 1)
 
#define ULPI_CARKIT_CTRL_TXDEN   (1 << 2)
 
#define ULPI_CARKIT_CTRL_RXDEN   (1 << 3)
 
#define ULPI_CARKIT_CTRL_SPKLEFTEN   (1 << 4)
 
#define ULPI_CARKIT_CTRL_SPKRIGHTEN   (1 << 5)
 
#define ULPI_CARKIT_CTRL_MICEN   (1 << 6)
 
#define ULPI_CARKIT_INT_EN_IDFLOAT_RISE   (1 << 0)
 
#define ULPI_CARKIT_INT_EN_IDFLOAT_FALL   (1 << 1)
 
#define ULPI_CARKIT_INT_EN_CARINTDET   (1 << 2)
 
#define ULPI_CARKIT_INT_EN_DP_RISE   (1 << 3)
 
#define ULPI_CARKIT_INT_EN_DP_FALL   (1 << 4)
 
#define ULPI_CARKIT_INT_IDFLOAT   (1 << 0)
 
#define ULPI_CARKIT_INT_CARINTDET   (1 << 1)
 
#define ULPI_CARKIT_INT_DP   (1 << 2)
 
#define ULPI_CARKIT_PLS_CTRL_TXPLSEN   (1 << 0)
 
#define ULPI_CARKIT_PLS_CTRL_RXPLSEN   (1 << 1)
 
#define ULPI_CARKIT_PLS_CTRL_SPKRLEFT_BIASEN   (1 << 2)
 
#define ULPI_CARKIT_PLS_CTRL_SPKRRIGHT_BIASEN   (1 << 3)
 

Functions

struct usb_phyotg_ulpi_create (struct usb_phy_io_ops *ops, unsigned int flags)
 

Macro Definition Documentation

#define ULPI_ACCESS_EXTENDED   0x2f

Definition at line 89 of file ulpi.h.

#define ULPI_CARCIT_CTRL   0x19

Definition at line 78 of file ulpi.h.

#define ULPI_CARCIT_INT_DELAY   0x1c

Definition at line 79 of file ulpi.h.

#define ULPI_CARCIT_INT_EN   0x1d

Definition at line 80 of file ulpi.h.

#define ULPI_CARCIT_INT_LATCH   0x21

Definition at line 82 of file ulpi.h.

#define ULPI_CARCIT_INT_STS   0x20

Definition at line 81 of file ulpi.h.

#define ULPI_CARCIT_PLS_CTRL   0x22

Definition at line 83 of file ulpi.h.

#define ULPI_CARKIT_CTRL_CARKITPWR   (1 << 0)

Definition at line 154 of file ulpi.h.

#define ULPI_CARKIT_CTRL_IDGNDDRV   (1 << 1)

Definition at line 155 of file ulpi.h.

#define ULPI_CARKIT_CTRL_MICEN   (1 << 6)

Definition at line 160 of file ulpi.h.

#define ULPI_CARKIT_CTRL_RXDEN   (1 << 3)

Definition at line 157 of file ulpi.h.

#define ULPI_CARKIT_CTRL_SPKLEFTEN   (1 << 4)

Definition at line 158 of file ulpi.h.

#define ULPI_CARKIT_CTRL_SPKRIGHTEN   (1 << 5)

Definition at line 159 of file ulpi.h.

#define ULPI_CARKIT_CTRL_TXDEN   (1 << 2)

Definition at line 156 of file ulpi.h.

#define ULPI_CARKIT_INT_CARINTDET   (1 << 1)

Definition at line 173 of file ulpi.h.

#define ULPI_CARKIT_INT_DP   (1 << 2)

Definition at line 174 of file ulpi.h.

#define ULPI_CARKIT_INT_EN_CARINTDET   (1 << 2)

Definition at line 165 of file ulpi.h.

#define ULPI_CARKIT_INT_EN_DP_FALL   (1 << 4)

Definition at line 167 of file ulpi.h.

#define ULPI_CARKIT_INT_EN_DP_RISE   (1 << 3)

Definition at line 166 of file ulpi.h.

#define ULPI_CARKIT_INT_EN_IDFLOAT_FALL   (1 << 1)

Definition at line 164 of file ulpi.h.

#define ULPI_CARKIT_INT_EN_IDFLOAT_RISE   (1 << 0)

Definition at line 163 of file ulpi.h.

#define ULPI_CARKIT_INT_IDFLOAT   (1 << 0)

Definition at line 172 of file ulpi.h.

#define ULPI_CARKIT_PLS_CTRL_RXPLSEN   (1 << 1)

Definition at line 178 of file ulpi.h.

#define ULPI_CARKIT_PLS_CTRL_SPKRLEFT_BIASEN   (1 << 2)

Definition at line 179 of file ulpi.h.

#define ULPI_CARKIT_PLS_CTRL_SPKRRIGHT_BIASEN   (1 << 3)

Definition at line 180 of file ulpi.h.

#define ULPI_CARKIT_PLS_CTRL_TXPLSEN   (1 << 0)

Definition at line 177 of file ulpi.h.

#define ULPI_CLR (   a)    (a + 2)

Definition at line 57 of file ulpi.h.

#define ULPI_DEBUG   0x15

Definition at line 75 of file ulpi.h.

#define ULPI_DEBUG_LINESTATE0   (1 << 0)

Definition at line 150 of file ulpi.h.

#define ULPI_DEBUG_LINESTATE1   (1 << 1)

Definition at line 151 of file ulpi.h.

#define ULPI_EXT_VENDOR_SPECIFIC   0x80

Definition at line 93 of file ulpi.h.

#define ULPI_FC_FS   (1 << 17)

Definition at line 39 of file ulpi.h.

#define ULPI_FC_FS4LS   (1 << 19)

Definition at line 41 of file ulpi.h.

#define ULPI_FC_HS   (1 << 16)

Definition at line 38 of file ulpi.h.

#define ULPI_FC_LS   (1 << 18)

Definition at line 40 of file ulpi.h.

#define ULPI_FC_OP_DIS_NRZI   (1 << 23)

Definition at line 45 of file ulpi.h.

#define ULPI_FC_OP_NODRV   (1 << 22)

Definition at line 44 of file ulpi.h.

#define ULPI_FC_OP_NORM   (1 << 21)

Definition at line 43 of file ulpi.h.

#define ULPI_FC_OP_NSYNC_NEOP   (1 << 24)

Definition at line 46 of file ulpi.h.

#define ULPI_FC_RST   (1 << 25)

Definition at line 47 of file ulpi.h.

#define ULPI_FC_SUSPM   (1 << 26)

Definition at line 48 of file ulpi.h.

#define ULPI_FC_TERMSEL   (1 << 20)

Definition at line 42 of file ulpi.h.

#define ULPI_FUNC_CTRL   0x04

Definition at line 68 of file ulpi.h.

#define ULPI_FUNC_CTRL_FS4LS   (3 << 0)

Definition at line 107 of file ulpi.h.

#define ULPI_FUNC_CTRL_FULL_SPEED   (1 << 0)

Definition at line 105 of file ulpi.h.

#define ULPI_FUNC_CTRL_HIGH_SPEED   (0 << 0)

Definition at line 104 of file ulpi.h.

#define ULPI_FUNC_CTRL_LOW_SPEED   (2 << 0)

Definition at line 106 of file ulpi.h.

#define ULPI_FUNC_CTRL_OPMODE   (1 << 3)

Definition at line 109 of file ulpi.h.

#define ULPI_FUNC_CTRL_OPMODE_DISABLE_NRZI   (2 << 3)

Definition at line 113 of file ulpi.h.

#define ULPI_FUNC_CTRL_OPMODE_MASK   (3 << 3)

Definition at line 110 of file ulpi.h.

#define ULPI_FUNC_CTRL_OPMODE_NONDRIVING   (1 << 3)

Definition at line 112 of file ulpi.h.

#define ULPI_FUNC_CTRL_OPMODE_NORMAL   (0 << 3)

Definition at line 111 of file ulpi.h.

#define ULPI_FUNC_CTRL_OPMODE_NOSYNC_NOEOP   (3 << 3)

Definition at line 114 of file ulpi.h.

#define ULPI_FUNC_CTRL_RESET   (1 << 5)

Definition at line 115 of file ulpi.h.

#define ULPI_FUNC_CTRL_SUSPENDM   (1 << 6)

Definition at line 116 of file ulpi.h.

#define ULPI_FUNC_CTRL_TERMSELECT   (1 << 2)

Definition at line 108 of file ulpi.h.

#define ULPI_FUNC_CTRL_XCVRSEL   (1 << 0)

Definition at line 102 of file ulpi.h.

#define ULPI_FUNC_CTRL_XCVRSEL_MASK   (3 << 0)

Definition at line 103 of file ulpi.h.

#define ULPI_IC_3PIN_SERIAL   (1 << 9)

Definition at line 30 of file ulpi.h.

#define ULPI_IC_6PIN_SERIAL   (1 << 8)

Definition at line 29 of file ulpi.h.

#define ULPI_IC_AUTORESUME   (1 << 12)

Definition at line 33 of file ulpi.h.

#define ULPI_IC_CARKIT   (1 << 10)

Definition at line 31 of file ulpi.h.

#define ULPI_IC_CLKSUSPM   (1 << 11)

Definition at line 32 of file ulpi.h.

#define ULPI_IC_EXTVBUS_INDINV   (1 << 13)

Definition at line 34 of file ulpi.h.

#define ULPI_IC_IND_PASSTHRU   (1 << 14)

Definition at line 35 of file ulpi.h.

#define ULPI_IC_PROTECT_DIS   (1 << 15)

Definition at line 36 of file ulpi.h.

#define ULPI_IFC_CTRL   0x07

Definition at line 69 of file ulpi.h.

#define ULPI_IFC_CTRL_3_PIN_SERIAL_MODE   (1 << 1)

Definition at line 120 of file ulpi.h.

#define ULPI_IFC_CTRL_6_PIN_SERIAL_MODE   (1 << 0)

Definition at line 119 of file ulpi.h.

#define ULPI_IFC_CTRL_AUTORESUME   (1 << 4)

Definition at line 123 of file ulpi.h.

#define ULPI_IFC_CTRL_CARKITMODE   (1 << 2)

Definition at line 121 of file ulpi.h.

#define ULPI_IFC_CTRL_CLOCKSUSPENDM   (1 << 3)

Definition at line 122 of file ulpi.h.

#define ULPI_IFC_CTRL_EXTERNAL_VBUS   (1 << 5)

Definition at line 124 of file ulpi.h.

#define ULPI_IFC_CTRL_PASSTHRU   (1 << 6)

Definition at line 125 of file ulpi.h.

#define ULPI_IFC_CTRL_PROTECT_IFC_DISABLE   (1 << 7)

Definition at line 126 of file ulpi.h.

#define ULPI_INT_HOST_DISCONNECT   (1 << 0)

Definition at line 143 of file ulpi.h.

#define ULPI_INT_IDGRD   (1 << 4)

Definition at line 147 of file ulpi.h.

#define ULPI_INT_SESS_END   (1 << 3)

Definition at line 146 of file ulpi.h.

#define ULPI_INT_SESS_VALID   (1 << 2)

Definition at line 145 of file ulpi.h.

#define ULPI_INT_VBUS_VALID   (1 << 1)

Definition at line 144 of file ulpi.h.

#define ULPI_OTG_CHRGVBUS   (1 << 4)

Definition at line 24 of file ulpi.h.

#define ULPI_OTG_CTRL   0x0a

Definition at line 70 of file ulpi.h.

#define ULPI_OTG_CTRL_CHRGVBUS   (1 << 4)

Definition at line 133 of file ulpi.h.

#define ULPI_OTG_CTRL_DISCHRGVBUS   (1 << 3)

Definition at line 132 of file ulpi.h.

#define ULPI_OTG_CTRL_DM_PULLDOWN   (1 << 2)

Definition at line 131 of file ulpi.h.

#define ULPI_OTG_CTRL_DP_PULLDOWN   (1 << 1)

Definition at line 130 of file ulpi.h.

#define ULPI_OTG_CTRL_DRVVBUS   (1 << 5)

Definition at line 134 of file ulpi.h.

#define ULPI_OTG_CTRL_DRVVBUS_EXT   (1 << 6)

Definition at line 135 of file ulpi.h.

#define ULPI_OTG_CTRL_EXTVBUSIND   (1 << 7)

Definition at line 136 of file ulpi.h.

#define ULPI_OTG_CTRL_ID_PULLUP   (1 << 0)

Definition at line 129 of file ulpi.h.

#define ULPI_OTG_DISCHRGVBUS   (1 << 3)

Definition at line 23 of file ulpi.h.

#define ULPI_OTG_DM_PULLDOWN_DIS   (1 << 2)

Definition at line 22 of file ulpi.h.

#define ULPI_OTG_DP_PULLDOWN_DIS   (1 << 1)

Definition at line 21 of file ulpi.h.

#define ULPI_OTG_DRVVBUS   (1 << 5)

Definition at line 25 of file ulpi.h.

#define ULPI_OTG_DRVVBUS_EXT   (1 << 6)

Definition at line 26 of file ulpi.h.

#define ULPI_OTG_EXTVBUSIND   (1 << 7)

Definition at line 27 of file ulpi.h.

#define ULPI_OTG_ID_PULLUP   (1 << 0)

Definition at line 20 of file ulpi.h.

#define ULPI_POLARITY_RECOVERY   0x27

Definition at line 87 of file ulpi.h.

#define ULPI_PRODUCT_ID_HIGH   0x03

Definition at line 67 of file ulpi.h.

#define ULPI_PRODUCT_ID_LOW   0x02

Definition at line 66 of file ulpi.h.

#define ULPI_SCRATCH   0x16

Definition at line 76 of file ulpi.h.

#define ULPI_SET (   a)    (a + 1)

Definition at line 56 of file ulpi.h.

#define ULPI_TX_NEG_WIDTH   0x26

Definition at line 86 of file ulpi.h.

#define ULPI_TX_POS_WIDTH   0x25

Definition at line 85 of file ulpi.h.

#define ULPI_USB_INT_EN_FALL   0x10

Definition at line 72 of file ulpi.h.

#define ULPI_USB_INT_EN_RISE   0x0d

Definition at line 71 of file ulpi.h.

#define ULPI_USB_INT_LATCH   0x14

Definition at line 74 of file ulpi.h.

#define ULPI_USB_INT_STS   0x13

Definition at line 73 of file ulpi.h.

#define ULPI_VENDOR_ID_HIGH   0x01

Definition at line 65 of file ulpi.h.

#define ULPI_VENDOR_ID_LOW   0x00

Definition at line 64 of file ulpi.h.

#define ULPI_VENDOR_SPECIFIC   0x30

Definition at line 91 of file ulpi.h.

Function Documentation

struct usb_phy* otg_ulpi_create ( struct usb_phy_io_ops ops,
unsigned int  flags 
)
read

Definition at line 254 of file ulpi.c.