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

Go to the source code of this file.

Data Structures

struct  urb_priv
 
struct  ep_priv
 
struct  td
 
struct  etd_priv
 
struct  imx21_dmem_area
 
struct  imx21
 

Macros

#define NUM_ISO_ETDS   2
 
#define USB_NUM_ETD   32
 
#define DMEM_SIZE   4096
 
#define USBOTG_HWMODE   0x00
 
#define USBOTG_HWMODE_ANASDBEN   (1 << 14)
 
#define USBOTG_HWMODE_OTGXCVR_SHIFT   6
 
#define USBOTG_HWMODE_OTGXCVR_MASK   (3 << 6)
 
#define USBOTG_HWMODE_OTGXCVR_TD_RD   (0 << 6)
 
#define USBOTG_HWMODE_OTGXCVR_TS_RD   (2 << 6)
 
#define USBOTG_HWMODE_OTGXCVR_TD_RS   (1 << 6)
 
#define USBOTG_HWMODE_OTGXCVR_TS_RS   (3 << 6)
 
#define USBOTG_HWMODE_HOSTXCVR_SHIFT   4
 
#define USBOTG_HWMODE_HOSTXCVR_MASK   (3 << 4)
 
#define USBOTG_HWMODE_HOSTXCVR_TD_RD   (0 << 4)
 
#define USBOTG_HWMODE_HOSTXCVR_TS_RD   (2 << 4)
 
#define USBOTG_HWMODE_HOSTXCVR_TD_RS   (1 << 4)
 
#define USBOTG_HWMODE_HOSTXCVR_TS_RS   (3 << 4)
 
#define USBOTG_HWMODE_CRECFG_MASK   (3 << 0)
 
#define USBOTG_HWMODE_CRECFG_HOST   (1 << 0)
 
#define USBOTG_HWMODE_CRECFG_FUNC   (2 << 0)
 
#define USBOTG_HWMODE_CRECFG_HNP   (3 << 0)
 
#define USBOTG_CINT_STAT   0x04
 
#define USBOTG_CINT_STEN   0x08
 
#define USBOTG_ASHNPINT   (1 << 5)
 
#define USBOTG_ASFCINT   (1 << 4)
 
#define USBOTG_ASHCINT   (1 << 3)
 
#define USBOTG_SHNPINT   (1 << 2)
 
#define USBOTG_FCINT   (1 << 1)
 
#define USBOTG_HCINT   (1 << 0)
 
#define USBOTG_CLK_CTRL   0x0c
 
#define USBOTG_CLK_CTRL_FUNC   (1 << 2)
 
#define USBOTG_CLK_CTRL_HST   (1 << 1)
 
#define USBOTG_CLK_CTRL_MAIN   (1 << 0)
 
#define USBOTG_RST_CTRL   0x10
 
#define USBOTG_RST_RSTI2C   (1 << 15)
 
#define USBOTG_RST_RSTCTRL   (1 << 5)
 
#define USBOTG_RST_RSTFC   (1 << 4)
 
#define USBOTG_RST_RSTFSKE   (1 << 3)
 
#define USBOTG_RST_RSTRH   (1 << 2)
 
#define USBOTG_RST_RSTHSIE   (1 << 1)
 
#define USBOTG_RST_RSTHC   (1 << 0)
 
#define USBOTG_FRM_INTVL   0x14
 
#define USBOTG_FRM_REMAIN   0x18
 
#define USBOTG_HNP_CSR   0x1c
 
#define USBOTG_HNP_ISR   0x2c
 
#define USBOTG_HNP_IEN   0x30
 
#define USBOTG_I2C_TXCVR_REG(x)   (0x100 + (x))
 
#define USBOTG_I2C_XCVR_DEVAD   0x118
 
#define USBOTG_I2C_SEQ_OP_REG   0x119
 
#define USBOTG_I2C_SEQ_RD_STARTAD   0x11a
 
#define USBOTG_I2C_OP_CTRL_REG   0x11b
 
#define USBOTG_I2C_SCLK_TO_SCK_HPER   0x11e
 
#define USBOTG_I2C_MASTER_INT_REG   0x11f
 
#define USBH_HOST_CTRL   0x80
 
#define USBH_HOST_CTRL_HCRESET   (1 << 31)
 
#define USBH_HOST_CTRL_SCHDOVR(x)   ((x) << 16)
 
#define USBH_HOST_CTRL_RMTWUEN   (1 << 4)
 
#define USBH_HOST_CTRL_HCUSBSTE_RESET   (0 << 2)
 
#define USBH_HOST_CTRL_HCUSBSTE_RESUME   (1 << 2)
 
#define USBH_HOST_CTRL_HCUSBSTE_OPERATIONAL   (2 << 2)
 
#define USBH_HOST_CTRL_HCUSBSTE_SUSPEND   (3 << 2)
 
#define USBH_HOST_CTRL_CTLBLKSR_1   (0 << 0)
 
#define USBH_HOST_CTRL_CTLBLKSR_2   (1 << 0)
 
#define USBH_HOST_CTRL_CTLBLKSR_3   (2 << 0)
 
#define USBH_HOST_CTRL_CTLBLKSR_4   (3 << 0)
 
#define USBH_SYSISR   0x88
 
#define USBH_SYSISR_PSCINT   (1 << 6)
 
#define USBH_SYSISR_FMOFINT   (1 << 5)
 
#define USBH_SYSISR_HERRINT   (1 << 4)
 
#define USBH_SYSISR_RESDETINT   (1 << 3)
 
#define USBH_SYSISR_SOFINT   (1 << 2)
 
#define USBH_SYSISR_DONEINT   (1 << 1)
 
#define USBH_SYSISR_SORINT   (1 << 0)
 
#define USBH_SYSIEN   0x8c
 
#define USBH_SYSIEN_PSCINT   (1 << 6)
 
#define USBH_SYSIEN_FMOFINT   (1 << 5)
 
#define USBH_SYSIEN_HERRINT   (1 << 4)
 
#define USBH_SYSIEN_RESDETINT   (1 << 3)
 
#define USBH_SYSIEN_SOFINT   (1 << 2)
 
#define USBH_SYSIEN_DONEINT   (1 << 1)
 
#define USBH_SYSIEN_SORINT   (1 << 0)
 
#define USBH_XBUFSTAT   0x98
 
#define USBH_YBUFSTAT   0x9c
 
#define USBH_XYINTEN   0xa0
 
#define USBH_XFILLSTAT   0xa8
 
#define USBH_YFILLSTAT   0xac
 
#define USBH_ETDENSET   0xc0
 
#define USBH_ETDENCLR   0xc4
 
#define USBH_IMMEDINT   0xcc
 
#define USBH_ETDDONESTAT   0xd0
 
#define USBH_ETDDONEEN   0xd4
 
#define USBH_FRMNUB   0xe0
 
#define USBH_LSTHRESH   0xe4
 
#define USBH_ROOTHUBA   0xe8
 
#define USBH_ROOTHUBA_PWRTOGOOD_MASK   (0xff)
 
#define USBH_ROOTHUBA_PWRTOGOOD_SHIFT   (24)
 
#define USBH_ROOTHUBA_NOOVRCURP   (1 << 12)
 
#define USBH_ROOTHUBA_OVRCURPM   (1 << 11)
 
#define USBH_ROOTHUBA_DEVTYPE   (1 << 10)
 
#define USBH_ROOTHUBA_PWRSWTMD   (1 << 9)
 
#define USBH_ROOTHUBA_NOPWRSWT   (1 << 8)
 
#define USBH_ROOTHUBA_NDNSTMPRT_MASK   (0xff)
 
#define USBH_ROOTHUBB   0xec
 
#define USBH_ROOTHUBB_PRTPWRCM(x)   (1 << ((x) + 16))
 
#define USBH_ROOTHUBB_DEVREMOVE(x)   (1 << (x))
 
#define USBH_ROOTSTAT   0xf0
 
#define USBH_ROOTSTAT_CLRRMTWUE   (1 << 31)
 
#define USBH_ROOTSTAT_OVRCURCHG   (1 << 17)
 
#define USBH_ROOTSTAT_DEVCONWUE   (1 << 15)
 
#define USBH_ROOTSTAT_OVRCURI   (1 << 1)
 
#define USBH_ROOTSTAT_LOCPWRS   (1 << 0)
 
#define USBH_PORTSTAT(x)   (0xf4 + ((x) * 4))
 
#define USBH_PORTSTAT_PRTRSTSC   (1 << 20)
 
#define USBH_PORTSTAT_OVRCURIC   (1 << 19)
 
#define USBH_PORTSTAT_PRTSTATSC   (1 << 18)
 
#define USBH_PORTSTAT_PRTENBLSC   (1 << 17)
 
#define USBH_PORTSTAT_CONNECTSC   (1 << 16)
 
#define USBH_PORTSTAT_LSDEVCON   (1 << 9)
 
#define USBH_PORTSTAT_PRTPWRST   (1 << 8)
 
#define USBH_PORTSTAT_PRTRSTST   (1 << 4)
 
#define USBH_PORTSTAT_PRTOVRCURI   (1 << 3)
 
#define USBH_PORTSTAT_PRTSUSPST   (1 << 2)
 
#define USBH_PORTSTAT_PRTENABST   (1 << 1)
 
#define USBH_PORTSTAT_CURCONST   (1 << 0)
 
#define USB_DMAREV   0x800
 
#define USB_DMAINTSTAT   0x804
 
#define USB_DMAINTSTAT_EPERR   (1 << 1)
 
#define USB_DMAINTSTAT_ETDERR   (1 << 0)
 
#define USB_DMAINTEN   0x808
 
#define USB_DMAINTEN_EPERRINTEN   (1 << 1)
 
#define USB_DMAINTEN_ETDERRINTEN   (1 << 0)
 
#define USB_ETDDMAERSTAT   0x80c
 
#define USB_EPDMAERSTAT   0x810
 
#define USB_ETDDMAEN   0x820
 
#define USB_EPDMAEN   0x824
 
#define USB_ETDDMAXTEN   0x828
 
#define USB_EPDMAXTEN   0x82c
 
#define USB_ETDDMAENXYT   0x830
 
#define USB_EPDMAENXYT   0x834
 
#define USB_ETDDMABST4EN   0x838
 
#define USB_EPDMABST4EN   0x83c
 
#define USB_MISCCONTROL   0x840
 
#define USB_MISCCONTROL_ISOPREVFRM   (1 << 3)
 
#define USB_MISCCONTROL_SKPRTRY   (1 << 2)
 
#define USB_MISCCONTROL_ARBMODE   (1 << 1)
 
#define USB_MISCCONTROL_FILTCC   (1 << 0)
 
#define USB_ETDDMACHANLCLR   0x848
 
#define USB_EPDMACHANLCLR   0x84c
 
#define USB_ETDSMSA(x)   (0x900 + ((x) * 4))
 
#define USB_EPSMSA(x)   (0x980 + ((x) * 4))
 
#define USB_ETDDMABUFPTR(x)   (0xa00 + ((x) * 4))
 
#define USB_EPDMABUFPTR(x)   (0xa80 + ((x) * 4))
 
#define USB_ETD_DWORD(x, w)   (0x200 + ((x) * 16) + ((w) * 4))
 
#define DW0_ADDRESS   0
 
#define DW0_ENDPNT   7
 
#define DW0_DIRECT   11
 
#define DW0_SPEED   13
 
#define DW0_FORMAT   14
 
#define DW0_MAXPKTSIZ   16
 
#define DW0_HALTED   27
 
#define DW0_TOGCRY   28
 
#define DW0_SNDNAK   30
 
#define DW1_XBUFSRTAD   0
 
#define DW1_YBUFSRTAD   16
 
#define DW2_RTRYDELAY   0
 
#define DW2_POLINTERV   0
 
#define DW2_STARTFRM   0
 
#define DW2_RELPOLPOS   8
 
#define DW2_DIRPID   16
 
#define DW2_BUFROUND   18
 
#define DW2_DELAYINT   19
 
#define DW2_DATATOG   22
 
#define DW2_ERRORCNT   24
 
#define DW2_COMPCODE   28
 
#define DW3_TOTBYECNT   0
 
#define DW3_PKTLEN0   0
 
#define DW3_COMPCODE0   12
 
#define DW3_PKTLEN1   16
 
#define DW3_BUFSIZE   21
 
#define DW3_COMPCODE1   28
 
#define USBCTRL   0x600
 
#define USBCTRL_I2C_WU_INT_STAT   (1 << 27)
 
#define USBCTRL_OTG_WU_INT_STAT   (1 << 26)
 
#define USBCTRL_HOST_WU_INT_STAT   (1 << 25)
 
#define USBCTRL_FNT_WU_INT_STAT   (1 << 24)
 
#define USBCTRL_I2C_WU_INT_EN   (1 << 19)
 
#define USBCTRL_OTG_WU_INT_EN   (1 << 18)
 
#define USBCTRL_HOST_WU_INT_EN   (1 << 17)
 
#define USBCTRL_FNT_WU_INT_EN   (1 << 16)
 
#define USBCTRL_OTC_RCV_RXDP   (1 << 13)
 
#define USBCTRL_HOST1_BYP_TLL   (1 << 12)
 
#define USBCTRL_OTG_BYP_VAL(x)   ((x) << 10)
 
#define USBCTRL_HOST1_BYP_VAL(x)   ((x) << 8)
 
#define USBCTRL_OTG_PWR_MASK   (1 << 6)
 
#define USBCTRL_HOST1_PWR_MASK   (1 << 5)
 
#define USBCTRL_HOST2_PWR_MASK   (1 << 4)
 
#define USBCTRL_USB_BYP   (1 << 2)
 
#define USBCTRL_HOST1_TXEN_OE   (1 << 1)
 
#define USBOTG_DMEM   0x1000
 
#define TD_DIR_SETUP   0
 
#define TD_DIR_OUT   1
 
#define TD_DIR_IN   2
 
#define TD_FORMAT_CONTROL   0
 
#define TD_FORMAT_ISO   1
 
#define TD_FORMAT_BULK   2
 
#define TD_FORMAT_INT   3
 
#define TD_TOGGLE_CARRY   0
 
#define TD_TOGGLE_DATA0   2
 
#define TD_TOGGLE_DATA1   3
 
#define US_CTRL_SETUP   2
 
#define US_CTRL_DATA   1
 
#define US_CTRL_ACK   0
 
#define US_BULK   1
 
#define US_BULK0   0
 
#define IMX_FMT_CTRL   0x0
 
#define IMX_FMT_ISO   0x1
 
#define IMX_FMT_BULK   0x2
 
#define IMX_FMT_INT   0x3
 
#define TD_CC_NOERROR   0x00
 
#define TD_CC_CRC   0x01
 
#define TD_CC_BITSTUFFING   0x02
 
#define TD_CC_DATATOGGLEM   0x03
 
#define TD_CC_STALL   0x04
 
#define TD_DEVNOTRESP   0x05
 
#define TD_PIDCHECKFAIL   0x06
 
#define TD_DATAOVERRUN   0x08
 
#define TD_DATAUNDERRUN   0x09
 
#define TD_BUFFEROVERRUN   0x0C
 
#define TD_BUFFERUNDERRUN   0x0D
 
#define TD_SCHEDULEOVERRUN   0x0E
 
#define TD_NOTACCESSED   0x0F
 

Macro Definition Documentation

#define DMEM_SIZE   4096

Definition at line 31 of file imx21-hcd.h.

#define DW0_ADDRESS   0

Definition at line 203 of file imx21-hcd.h.

#define DW0_DIRECT   11

Definition at line 205 of file imx21-hcd.h.

#define DW0_ENDPNT   7

Definition at line 204 of file imx21-hcd.h.

#define DW0_FORMAT   14

Definition at line 207 of file imx21-hcd.h.

#define DW0_HALTED   27

Definition at line 209 of file imx21-hcd.h.

#define DW0_MAXPKTSIZ   16

Definition at line 208 of file imx21-hcd.h.

#define DW0_SNDNAK   30

Definition at line 211 of file imx21-hcd.h.

#define DW0_SPEED   13

Definition at line 206 of file imx21-hcd.h.

#define DW0_TOGCRY   28

Definition at line 210 of file imx21-hcd.h.

#define DW1_XBUFSRTAD   0

Definition at line 213 of file imx21-hcd.h.

#define DW1_YBUFSRTAD   16

Definition at line 214 of file imx21-hcd.h.

#define DW2_BUFROUND   18

Definition at line 221 of file imx21-hcd.h.

#define DW2_COMPCODE   28

Definition at line 225 of file imx21-hcd.h.

#define DW2_DATATOG   22

Definition at line 223 of file imx21-hcd.h.

#define DW2_DELAYINT   19

Definition at line 222 of file imx21-hcd.h.

#define DW2_DIRPID   16

Definition at line 220 of file imx21-hcd.h.

#define DW2_ERRORCNT   24

Definition at line 224 of file imx21-hcd.h.

#define DW2_POLINTERV   0

Definition at line 217 of file imx21-hcd.h.

#define DW2_RELPOLPOS   8

Definition at line 219 of file imx21-hcd.h.

#define DW2_RTRYDELAY   0

Definition at line 216 of file imx21-hcd.h.

#define DW2_STARTFRM   0

Definition at line 218 of file imx21-hcd.h.

#define DW3_BUFSIZE   21

Definition at line 231 of file imx21-hcd.h.

#define DW3_COMPCODE0   12

Definition at line 229 of file imx21-hcd.h.

#define DW3_COMPCODE1   28

Definition at line 232 of file imx21-hcd.h.

#define DW3_PKTLEN0   0

Definition at line 228 of file imx21-hcd.h.

#define DW3_PKTLEN1   16

Definition at line 230 of file imx21-hcd.h.

#define DW3_TOTBYECNT   0

Definition at line 227 of file imx21-hcd.h.

#define IMX_FMT_BULK   0x2

Definition at line 279 of file imx21-hcd.h.

#define IMX_FMT_CTRL   0x0

Definition at line 277 of file imx21-hcd.h.

#define IMX_FMT_INT   0x3

Definition at line 280 of file imx21-hcd.h.

#define IMX_FMT_ISO   0x1

Definition at line 278 of file imx21-hcd.h.

#define NUM_ISO_ETDS   2

Definition at line 29 of file imx21-hcd.h.

#define TD_BUFFEROVERRUN   0x0C

Definition at line 301 of file imx21-hcd.h.

#define TD_BUFFERUNDERRUN   0x0D

Definition at line 302 of file imx21-hcd.h.

#define TD_CC_BITSTUFFING   0x02

Definition at line 293 of file imx21-hcd.h.

#define TD_CC_CRC   0x01

Definition at line 292 of file imx21-hcd.h.

#define TD_CC_DATATOGGLEM   0x03

Definition at line 294 of file imx21-hcd.h.

#define TD_CC_NOERROR   0x00

Definition at line 291 of file imx21-hcd.h.

#define TD_CC_STALL   0x04

Definition at line 295 of file imx21-hcd.h.

#define TD_DATAOVERRUN   0x08

Definition at line 299 of file imx21-hcd.h.

#define TD_DATAUNDERRUN   0x09

Definition at line 300 of file imx21-hcd.h.

#define TD_DEVNOTRESP   0x05

Definition at line 296 of file imx21-hcd.h.

#define TD_DIR_IN   2

Definition at line 258 of file imx21-hcd.h.

#define TD_DIR_OUT   1

Definition at line 257 of file imx21-hcd.h.

#define TD_DIR_SETUP   0

Definition at line 256 of file imx21-hcd.h.

#define TD_FORMAT_BULK   2

Definition at line 261 of file imx21-hcd.h.

#define TD_FORMAT_CONTROL   0

Definition at line 259 of file imx21-hcd.h.

#define TD_FORMAT_INT   3

Definition at line 262 of file imx21-hcd.h.

#define TD_FORMAT_ISO   1

Definition at line 260 of file imx21-hcd.h.

#define TD_NOTACCESSED   0x0F

Definition at line 304 of file imx21-hcd.h.

#define TD_PIDCHECKFAIL   0x06

Definition at line 297 of file imx21-hcd.h.

#define TD_SCHEDULEOVERRUN   0x0E

Definition at line 303 of file imx21-hcd.h.

#define TD_TOGGLE_CARRY   0

Definition at line 263 of file imx21-hcd.h.

#define TD_TOGGLE_DATA0   2

Definition at line 264 of file imx21-hcd.h.

#define TD_TOGGLE_DATA1   3

Definition at line 265 of file imx21-hcd.h.

#define US_BULK   1

Definition at line 273 of file imx21-hcd.h.

#define US_BULK0   0

Definition at line 274 of file imx21-hcd.h.

#define US_CTRL_ACK   0

Definition at line 270 of file imx21-hcd.h.

#define US_CTRL_DATA   1

Definition at line 269 of file imx21-hcd.h.

#define US_CTRL_SETUP   2

Definition at line 268 of file imx21-hcd.h.

#define USB_DMAINTEN   0x808

Definition at line 174 of file imx21-hcd.h.

#define USB_DMAINTEN_EPERRINTEN   (1 << 1)

Definition at line 175 of file imx21-hcd.h.

#define USB_DMAINTEN_ETDERRINTEN   (1 << 0)

Definition at line 176 of file imx21-hcd.h.

#define USB_DMAINTSTAT   0x804

Definition at line 170 of file imx21-hcd.h.

#define USB_DMAINTSTAT_EPERR   (1 << 1)

Definition at line 171 of file imx21-hcd.h.

#define USB_DMAINTSTAT_ETDERR   (1 << 0)

Definition at line 172 of file imx21-hcd.h.

#define USB_DMAREV   0x800

Definition at line 169 of file imx21-hcd.h.

#define USB_EPDMABST4EN   0x83c

Definition at line 187 of file imx21-hcd.h.

#define USB_EPDMABUFPTR (   x)    (0xa80 + ((x) * 4))

Definition at line 200 of file imx21-hcd.h.

#define USB_EPDMACHANLCLR   0x84c

Definition at line 196 of file imx21-hcd.h.

#define USB_EPDMAEN   0x824

Definition at line 181 of file imx21-hcd.h.

#define USB_EPDMAENXYT   0x834

Definition at line 185 of file imx21-hcd.h.

#define USB_EPDMAERSTAT   0x810

Definition at line 179 of file imx21-hcd.h.

#define USB_EPDMAXTEN   0x82c

Definition at line 183 of file imx21-hcd.h.

#define USB_EPSMSA (   x)    (0x980 + ((x) * 4))

Definition at line 198 of file imx21-hcd.h.

#define USB_ETD_DWORD (   x,
  w 
)    (0x200 + ((x) * 16) + ((w) * 4))

Definition at line 202 of file imx21-hcd.h.

#define USB_ETDDMABST4EN   0x838

Definition at line 186 of file imx21-hcd.h.

#define USB_ETDDMABUFPTR (   x)    (0xa00 + ((x) * 4))

Definition at line 199 of file imx21-hcd.h.

#define USB_ETDDMACHANLCLR   0x848

Definition at line 195 of file imx21-hcd.h.

#define USB_ETDDMAEN   0x820

Definition at line 180 of file imx21-hcd.h.

#define USB_ETDDMAENXYT   0x830

Definition at line 184 of file imx21-hcd.h.

#define USB_ETDDMAERSTAT   0x80c

Definition at line 178 of file imx21-hcd.h.

#define USB_ETDDMAXTEN   0x828

Definition at line 182 of file imx21-hcd.h.

#define USB_ETDSMSA (   x)    (0x900 + ((x) * 4))

Definition at line 197 of file imx21-hcd.h.

#define USB_MISCCONTROL   0x840

Definition at line 189 of file imx21-hcd.h.

#define USB_MISCCONTROL_ARBMODE   (1 << 1)

Definition at line 192 of file imx21-hcd.h.

#define USB_MISCCONTROL_FILTCC   (1 << 0)

Definition at line 193 of file imx21-hcd.h.

#define USB_MISCCONTROL_ISOPREVFRM   (1 << 3)

Definition at line 190 of file imx21-hcd.h.

#define USB_MISCCONTROL_SKPRTRY   (1 << 2)

Definition at line 191 of file imx21-hcd.h.

#define USB_NUM_ETD   32

Definition at line 30 of file imx21-hcd.h.

#define USBCTRL   0x600

Definition at line 234 of file imx21-hcd.h.

#define USBCTRL_FNT_WU_INT_EN   (1 << 16)

Definition at line 242 of file imx21-hcd.h.

#define USBCTRL_FNT_WU_INT_STAT   (1 << 24)

Definition at line 238 of file imx21-hcd.h.

#define USBCTRL_HOST1_BYP_TLL   (1 << 12)

Definition at line 244 of file imx21-hcd.h.

#define USBCTRL_HOST1_BYP_VAL (   x)    ((x) << 8)

Definition at line 246 of file imx21-hcd.h.

#define USBCTRL_HOST1_PWR_MASK   (1 << 5)

Definition at line 248 of file imx21-hcd.h.

#define USBCTRL_HOST1_TXEN_OE   (1 << 1)

Definition at line 251 of file imx21-hcd.h.

#define USBCTRL_HOST2_PWR_MASK   (1 << 4)

Definition at line 249 of file imx21-hcd.h.

#define USBCTRL_HOST_WU_INT_EN   (1 << 17)

Definition at line 241 of file imx21-hcd.h.

#define USBCTRL_HOST_WU_INT_STAT   (1 << 25)

Definition at line 237 of file imx21-hcd.h.

#define USBCTRL_I2C_WU_INT_EN   (1 << 19)

Definition at line 239 of file imx21-hcd.h.

#define USBCTRL_I2C_WU_INT_STAT   (1 << 27)

Definition at line 235 of file imx21-hcd.h.

#define USBCTRL_OTC_RCV_RXDP   (1 << 13)

Definition at line 243 of file imx21-hcd.h.

#define USBCTRL_OTG_BYP_VAL (   x)    ((x) << 10)

Definition at line 245 of file imx21-hcd.h.

#define USBCTRL_OTG_PWR_MASK   (1 << 6)

Definition at line 247 of file imx21-hcd.h.

#define USBCTRL_OTG_WU_INT_EN   (1 << 18)

Definition at line 240 of file imx21-hcd.h.

#define USBCTRL_OTG_WU_INT_STAT   (1 << 26)

Definition at line 236 of file imx21-hcd.h.

#define USBCTRL_USB_BYP   (1 << 2)

Definition at line 250 of file imx21-hcd.h.

#define USBH_ETDDONEEN   0xd4

Definition at line 130 of file imx21-hcd.h.

#define USBH_ETDDONESTAT   0xd0

Definition at line 129 of file imx21-hcd.h.

#define USBH_ETDENCLR   0xc4

Definition at line 127 of file imx21-hcd.h.

#define USBH_ETDENSET   0xc0

Definition at line 126 of file imx21-hcd.h.

#define USBH_FRMNUB   0xe0

Definition at line 131 of file imx21-hcd.h.

#define USBH_HOST_CTRL   0x80

Definition at line 90 of file imx21-hcd.h.

#define USBH_HOST_CTRL_CTLBLKSR_1   (0 << 0)

Definition at line 98 of file imx21-hcd.h.

#define USBH_HOST_CTRL_CTLBLKSR_2   (1 << 0)

Definition at line 99 of file imx21-hcd.h.

#define USBH_HOST_CTRL_CTLBLKSR_3   (2 << 0)

Definition at line 100 of file imx21-hcd.h.

#define USBH_HOST_CTRL_CTLBLKSR_4   (3 << 0)

Definition at line 101 of file imx21-hcd.h.

#define USBH_HOST_CTRL_HCRESET   (1 << 31)

Definition at line 91 of file imx21-hcd.h.

#define USBH_HOST_CTRL_HCUSBSTE_OPERATIONAL   (2 << 2)

Definition at line 96 of file imx21-hcd.h.

#define USBH_HOST_CTRL_HCUSBSTE_RESET   (0 << 2)

Definition at line 94 of file imx21-hcd.h.

#define USBH_HOST_CTRL_HCUSBSTE_RESUME   (1 << 2)

Definition at line 95 of file imx21-hcd.h.

#define USBH_HOST_CTRL_HCUSBSTE_SUSPEND   (3 << 2)

Definition at line 97 of file imx21-hcd.h.

#define USBH_HOST_CTRL_RMTWUEN   (1 << 4)

Definition at line 93 of file imx21-hcd.h.

#define USBH_HOST_CTRL_SCHDOVR (   x)    ((x) << 16)

Definition at line 92 of file imx21-hcd.h.

#define USBH_IMMEDINT   0xcc

Definition at line 128 of file imx21-hcd.h.

#define USBH_LSTHRESH   0xe4

Definition at line 132 of file imx21-hcd.h.

#define USBH_PORTSTAT (   x)    (0xf4 + ((x) * 4))

Definition at line 155 of file imx21-hcd.h.

#define USBH_PORTSTAT_CONNECTSC   (1 << 16)

Definition at line 160 of file imx21-hcd.h.

#define USBH_PORTSTAT_CURCONST   (1 << 0)

Definition at line 167 of file imx21-hcd.h.

#define USBH_PORTSTAT_LSDEVCON   (1 << 9)

Definition at line 161 of file imx21-hcd.h.

#define USBH_PORTSTAT_OVRCURIC   (1 << 19)

Definition at line 157 of file imx21-hcd.h.

#define USBH_PORTSTAT_PRTENABST   (1 << 1)

Definition at line 166 of file imx21-hcd.h.

#define USBH_PORTSTAT_PRTENBLSC   (1 << 17)

Definition at line 159 of file imx21-hcd.h.

#define USBH_PORTSTAT_PRTOVRCURI   (1 << 3)

Definition at line 164 of file imx21-hcd.h.

#define USBH_PORTSTAT_PRTPWRST   (1 << 8)

Definition at line 162 of file imx21-hcd.h.

#define USBH_PORTSTAT_PRTRSTSC   (1 << 20)

Definition at line 156 of file imx21-hcd.h.

#define USBH_PORTSTAT_PRTRSTST   (1 << 4)

Definition at line 163 of file imx21-hcd.h.

#define USBH_PORTSTAT_PRTSTATSC   (1 << 18)

Definition at line 158 of file imx21-hcd.h.

#define USBH_PORTSTAT_PRTSUSPST   (1 << 2)

Definition at line 165 of file imx21-hcd.h.

#define USBH_ROOTHUBA   0xe8

Definition at line 134 of file imx21-hcd.h.

#define USBH_ROOTHUBA_DEVTYPE   (1 << 10)

Definition at line 139 of file imx21-hcd.h.

#define USBH_ROOTHUBA_NDNSTMPRT_MASK   (0xff)

Definition at line 142 of file imx21-hcd.h.

#define USBH_ROOTHUBA_NOOVRCURP   (1 << 12)

Definition at line 137 of file imx21-hcd.h.

#define USBH_ROOTHUBA_NOPWRSWT   (1 << 8)

Definition at line 141 of file imx21-hcd.h.

#define USBH_ROOTHUBA_OVRCURPM   (1 << 11)

Definition at line 138 of file imx21-hcd.h.

#define USBH_ROOTHUBA_PWRSWTMD   (1 << 9)

Definition at line 140 of file imx21-hcd.h.

#define USBH_ROOTHUBA_PWRTOGOOD_MASK   (0xff)

Definition at line 135 of file imx21-hcd.h.

#define USBH_ROOTHUBA_PWRTOGOOD_SHIFT   (24)

Definition at line 136 of file imx21-hcd.h.

#define USBH_ROOTHUBB   0xec

Definition at line 144 of file imx21-hcd.h.

#define USBH_ROOTHUBB_DEVREMOVE (   x)    (1 << (x))

Definition at line 146 of file imx21-hcd.h.

#define USBH_ROOTHUBB_PRTPWRCM (   x)    (1 << ((x) + 16))

Definition at line 145 of file imx21-hcd.h.

#define USBH_ROOTSTAT   0xf0

Definition at line 148 of file imx21-hcd.h.

#define USBH_ROOTSTAT_CLRRMTWUE   (1 << 31)

Definition at line 149 of file imx21-hcd.h.

#define USBH_ROOTSTAT_DEVCONWUE   (1 << 15)

Definition at line 151 of file imx21-hcd.h.

#define USBH_ROOTSTAT_LOCPWRS   (1 << 0)

Definition at line 153 of file imx21-hcd.h.

#define USBH_ROOTSTAT_OVRCURCHG   (1 << 17)

Definition at line 150 of file imx21-hcd.h.

#define USBH_ROOTSTAT_OVRCURI   (1 << 1)

Definition at line 152 of file imx21-hcd.h.

#define USBH_SYSIEN   0x8c

Definition at line 112 of file imx21-hcd.h.

#define USBH_SYSIEN_DONEINT   (1 << 1)

Definition at line 118 of file imx21-hcd.h.

#define USBH_SYSIEN_FMOFINT   (1 << 5)

Definition at line 114 of file imx21-hcd.h.

#define USBH_SYSIEN_HERRINT   (1 << 4)

Definition at line 115 of file imx21-hcd.h.

#define USBH_SYSIEN_PSCINT   (1 << 6)

Definition at line 113 of file imx21-hcd.h.

#define USBH_SYSIEN_RESDETINT   (1 << 3)

Definition at line 116 of file imx21-hcd.h.

#define USBH_SYSIEN_SOFINT   (1 << 2)

Definition at line 117 of file imx21-hcd.h.

#define USBH_SYSIEN_SORINT   (1 << 0)

Definition at line 119 of file imx21-hcd.h.

#define USBH_SYSISR   0x88

Definition at line 103 of file imx21-hcd.h.

#define USBH_SYSISR_DONEINT   (1 << 1)

Definition at line 109 of file imx21-hcd.h.

#define USBH_SYSISR_FMOFINT   (1 << 5)

Definition at line 105 of file imx21-hcd.h.

#define USBH_SYSISR_HERRINT   (1 << 4)

Definition at line 106 of file imx21-hcd.h.

#define USBH_SYSISR_PSCINT   (1 << 6)

Definition at line 104 of file imx21-hcd.h.

#define USBH_SYSISR_RESDETINT   (1 << 3)

Definition at line 107 of file imx21-hcd.h.

#define USBH_SYSISR_SOFINT   (1 << 2)

Definition at line 108 of file imx21-hcd.h.

#define USBH_SYSISR_SORINT   (1 << 0)

Definition at line 110 of file imx21-hcd.h.

#define USBH_XBUFSTAT   0x98

Definition at line 121 of file imx21-hcd.h.

#define USBH_XFILLSTAT   0xa8

Definition at line 124 of file imx21-hcd.h.

#define USBH_XYINTEN   0xa0

Definition at line 123 of file imx21-hcd.h.

#define USBH_YBUFSTAT   0x9c

Definition at line 122 of file imx21-hcd.h.

#define USBH_YFILLSTAT   0xac

Definition at line 125 of file imx21-hcd.h.

#define USBOTG_ASFCINT   (1 << 4)

Definition at line 56 of file imx21-hcd.h.

#define USBOTG_ASHCINT   (1 << 3)

Definition at line 57 of file imx21-hcd.h.

#define USBOTG_ASHNPINT   (1 << 5)

Definition at line 55 of file imx21-hcd.h.

#define USBOTG_CINT_STAT   0x04

Definition at line 53 of file imx21-hcd.h.

#define USBOTG_CINT_STEN   0x08

Definition at line 54 of file imx21-hcd.h.

#define USBOTG_CLK_CTRL   0x0c

Definition at line 62 of file imx21-hcd.h.

#define USBOTG_CLK_CTRL_FUNC   (1 << 2)

Definition at line 63 of file imx21-hcd.h.

#define USBOTG_CLK_CTRL_HST   (1 << 1)

Definition at line 64 of file imx21-hcd.h.

#define USBOTG_CLK_CTRL_MAIN   (1 << 0)

Definition at line 65 of file imx21-hcd.h.

#define USBOTG_DMEM   0x1000

Definition at line 253 of file imx21-hcd.h.

#define USBOTG_FCINT   (1 << 1)

Definition at line 59 of file imx21-hcd.h.

#define USBOTG_FRM_INTVL   0x14

Definition at line 76 of file imx21-hcd.h.

#define USBOTG_FRM_REMAIN   0x18

Definition at line 77 of file imx21-hcd.h.

#define USBOTG_HCINT   (1 << 0)

Definition at line 60 of file imx21-hcd.h.

#define USBOTG_HNP_CSR   0x1c

Definition at line 78 of file imx21-hcd.h.

#define USBOTG_HNP_IEN   0x30

Definition at line 80 of file imx21-hcd.h.

#define USBOTG_HNP_ISR   0x2c

Definition at line 79 of file imx21-hcd.h.

#define USBOTG_HWMODE   0x00

Definition at line 34 of file imx21-hcd.h.

#define USBOTG_HWMODE_ANASDBEN   (1 << 14)

Definition at line 35 of file imx21-hcd.h.

#define USBOTG_HWMODE_CRECFG_FUNC   (2 << 0)

Definition at line 50 of file imx21-hcd.h.

#define USBOTG_HWMODE_CRECFG_HNP   (3 << 0)

Definition at line 51 of file imx21-hcd.h.

#define USBOTG_HWMODE_CRECFG_HOST   (1 << 0)

Definition at line 49 of file imx21-hcd.h.

#define USBOTG_HWMODE_CRECFG_MASK   (3 << 0)

Definition at line 48 of file imx21-hcd.h.

#define USBOTG_HWMODE_HOSTXCVR_MASK   (3 << 4)

Definition at line 43 of file imx21-hcd.h.

#define USBOTG_HWMODE_HOSTXCVR_SHIFT   4

Definition at line 42 of file imx21-hcd.h.

#define USBOTG_HWMODE_HOSTXCVR_TD_RD   (0 << 4)

Definition at line 44 of file imx21-hcd.h.

#define USBOTG_HWMODE_HOSTXCVR_TD_RS   (1 << 4)

Definition at line 46 of file imx21-hcd.h.

#define USBOTG_HWMODE_HOSTXCVR_TS_RD   (2 << 4)

Definition at line 45 of file imx21-hcd.h.

#define USBOTG_HWMODE_HOSTXCVR_TS_RS   (3 << 4)

Definition at line 47 of file imx21-hcd.h.

#define USBOTG_HWMODE_OTGXCVR_MASK   (3 << 6)

Definition at line 37 of file imx21-hcd.h.

#define USBOTG_HWMODE_OTGXCVR_SHIFT   6

Definition at line 36 of file imx21-hcd.h.

#define USBOTG_HWMODE_OTGXCVR_TD_RD   (0 << 6)

Definition at line 38 of file imx21-hcd.h.

#define USBOTG_HWMODE_OTGXCVR_TD_RS   (1 << 6)

Definition at line 40 of file imx21-hcd.h.

#define USBOTG_HWMODE_OTGXCVR_TS_RD   (2 << 6)

Definition at line 39 of file imx21-hcd.h.

#define USBOTG_HWMODE_OTGXCVR_TS_RS   (3 << 6)

Definition at line 41 of file imx21-hcd.h.

#define USBOTG_I2C_MASTER_INT_REG   0x11f

Definition at line 88 of file imx21-hcd.h.

#define USBOTG_I2C_OP_CTRL_REG   0x11b

Definition at line 86 of file imx21-hcd.h.

#define USBOTG_I2C_SCLK_TO_SCK_HPER   0x11e

Definition at line 87 of file imx21-hcd.h.

#define USBOTG_I2C_SEQ_OP_REG   0x119

Definition at line 84 of file imx21-hcd.h.

#define USBOTG_I2C_SEQ_RD_STARTAD   0x11a

Definition at line 85 of file imx21-hcd.h.

#define USBOTG_I2C_TXCVR_REG (   x)    (0x100 + (x))

Definition at line 82 of file imx21-hcd.h.

#define USBOTG_I2C_XCVR_DEVAD   0x118

Definition at line 83 of file imx21-hcd.h.

#define USBOTG_RST_CTRL   0x10

Definition at line 67 of file imx21-hcd.h.

#define USBOTG_RST_RSTCTRL   (1 << 5)

Definition at line 69 of file imx21-hcd.h.

#define USBOTG_RST_RSTFC   (1 << 4)

Definition at line 70 of file imx21-hcd.h.

#define USBOTG_RST_RSTFSKE   (1 << 3)

Definition at line 71 of file imx21-hcd.h.

#define USBOTG_RST_RSTHC   (1 << 0)

Definition at line 74 of file imx21-hcd.h.

#define USBOTG_RST_RSTHSIE   (1 << 1)

Definition at line 73 of file imx21-hcd.h.

#define USBOTG_RST_RSTI2C   (1 << 15)

Definition at line 68 of file imx21-hcd.h.

#define USBOTG_RST_RSTRH   (1 << 2)

Definition at line 72 of file imx21-hcd.h.

#define USBOTG_SHNPINT   (1 << 2)

Definition at line 58 of file imx21-hcd.h.