Linux Kernel
3.7.1
|
Go to the source code of this file.
Functions | |
u8 | tusb_get_revision (struct musb *musb) |
#define musb_in_tusb | ( | ) | 0 |
Definition at line 20 of file tusb6010.h.
#define TUSB_BASE_OFFSET 0x400 |
Definition at line 33 of file tusb6010.h.
#define TUSB_DEV_CONF (TUSB_SYS_REG_BASE + 0x000) |
Definition at line 41 of file tusb6010.h.
#define TUSB_DEV_CONF_ID_SEL (1 << 0) |
Definition at line 45 of file tusb6010.h.
#define TUSB_DEV_CONF_PROD_TEST_MODE (1 << 15) |
Definition at line 43 of file tusb6010.h.
#define TUSB_DEV_CONF_SOFT_ID (1 << 1) |
Definition at line 44 of file tusb6010.h.
#define TUSB_DEV_CONF_USB_HOST_MODE (1 << 16) |
Definition at line 42 of file tusb6010.h.
#define TUSB_DEV_OTG_STAT (TUSB_SYS_REG_BASE + 0x00c) |
Definition at line 72 of file tusb6010.h.
#define TUSB_DEV_OTG_STAT_DM_ENABLE (1 << 0) |
Definition at line 82 of file tusb6010.h.
#define TUSB_DEV_OTG_STAT_DP_ENABLE (1 << 1) |
Definition at line 81 of file tusb6010.h.
#define TUSB_DEV_OTG_STAT_HOST_DISCON (1 << 2) |
Definition at line 79 of file tusb6010.h.
#define TUSB_DEV_OTG_STAT_ID_STATUS (1 << 3) |
Definition at line 78 of file tusb6010.h.
#define TUSB_DEV_OTG_STAT_LINE_STATE (3 << 0) |
Definition at line 80 of file tusb6010.h.
#define TUSB_DEV_OTG_STAT_PWR_CLK_GOOD (1 << 8) |
Definition at line 73 of file tusb6010.h.
#define TUSB_DEV_OTG_STAT_SESS_END (1 << 7) |
Definition at line 74 of file tusb6010.h.
#define TUSB_DEV_OTG_STAT_SESS_VALID (1 << 6) |
Definition at line 75 of file tusb6010.h.
#define TUSB_DEV_OTG_STAT_VBUS_SENSE (1 << 4) |
Definition at line 77 of file tusb6010.h.
#define TUSB_DEV_OTG_STAT_VBUS_VALID (1 << 5) |
Definition at line 76 of file tusb6010.h.
#define TUSB_DEV_OTG_TIMER (TUSB_SYS_REG_BASE + 0x010) |
Definition at line 84 of file tusb6010.h.
#define TUSB_DEV_OTG_TIMER_ENABLE (1 << 31) |
Definition at line 85 of file tusb6010.h.
Definition at line 86 of file tusb6010.h.
#define TUSB_DIDR1_HI (TUSB_SYS_REG_BASE + 0x1fc) |
Definition at line 221 of file tusb6010.h.
Definition at line 222 of file tusb6010.h.
#define TUSB_DIDR1_HI_REV_20 0 |
Definition at line 223 of file tusb6010.h.
#define TUSB_DIDR1_HI_REV_30 1 |
Definition at line 224 of file tusb6010.h.
#define TUSB_DIDR1_HI_REV_31 2 |
Definition at line 225 of file tusb6010.h.
#define TUSB_DIDR1_LO (TUSB_SYS_REG_BASE + 0x1f8) |
Definition at line 220 of file tusb6010.h.
#define TUSB_DMA_CTRL_REV (TUSB_SYS_REG_BASE + 0x100) |
Definition at line 190 of file tusb6010.h.
#define TUSB_DMA_EP_MAP (TUSB_SYS_REG_BASE + 0x148) |
Definition at line 193 of file tusb6010.h.
#define TUSB_DMA_INT_CLEAR (TUSB_SYS_REG_BASE + 0x058) |
Definition at line 140 of file tusb6010.h.
#define TUSB_DMA_INT_MASK (TUSB_SYS_REG_BASE + 0x05c) |
Definition at line 141 of file tusb6010.h.
#define TUSB_DMA_INT_SET (TUSB_SYS_REG_BASE + 0x054) |
Definition at line 139 of file tusb6010.h.
#define TUSB_DMA_INT_SRC (TUSB_SYS_REG_BASE + 0x050) |
Definition at line 138 of file tusb6010.h.
#define tusb_dma_omap | ( | ) | 0 |
Definition at line 26 of file tusb6010.h.
#define TUSB_DMA_REQ_CONF (TUSB_SYS_REG_BASE + 0x104) |
Definition at line 191 of file tusb6010.h.
Definition at line 209 of file tusb6010.h.
Definition at line 211 of file tusb6010.h.
Definition at line 210 of file tusb6010.h.
#define TUSB_EP0_CONF (TUSB_SYS_REG_BASE + 0x108) |
Definition at line 192 of file tusb6010.h.
#define TUSB_EP0_CONFIG_DIR_TX (1 << 7) |
Definition at line 213 of file tusb6010.h.
#define TUSB_EP0_CONFIG_SW_EN (1 << 8) |
Definition at line 212 of file tusb6010.h.
Definition at line 214 of file tusb6010.h.
#define TUSB_EP_CONFIG_SW_EN (1 << 31) |
Definition at line 215 of file tusb6010.h.
Definition at line 216 of file tusb6010.h.
#define TUSB_EP_FIFO | ( | ep | ) | (TUSB_FIFO_BASE + (ep) * 0x20) |
Definition at line 218 of file tusb6010.h.
#define TUSB_EP_MAX_PACKET_SIZE_OFFSET 0x188 |
Definition at line 198 of file tusb6010.h.
#define TUSB_EP_RX_OFFSET 0x14c /* EP_OUT in docs */ |
Definition at line 197 of file tusb6010.h.
#define TUSB_EP_TX_OFFSET 0x10c /* EP_IN in docs */ |
Definition at line 196 of file tusb6010.h.
#define TUSB_FIFO_BASE 0x600 |
Definition at line 36 of file tusb6010.h.
#define TUSB_GPIO_CONF (TUSB_SYS_REG_BASE + 0x084) |
Definition at line 189 of file tusb6010.h.
Definition at line 208 of file tusb6010.h.
#define TUSB_GPIO_INT_CLEAR (TUSB_SYS_REG_BASE + 0x068) |
Definition at line 144 of file tusb6010.h.
#define TUSB_GPIO_INT_MASK (TUSB_SYS_REG_BASE + 0x06c) |
Definition at line 145 of file tusb6010.h.
#define TUSB_GPIO_INT_SET (TUSB_SYS_REG_BASE + 0x064) |
Definition at line 143 of file tusb6010.h.
#define TUSB_GPIO_INT_SRC (TUSB_SYS_REG_BASE + 0x060) |
Definition at line 142 of file tusb6010.h.
#define TUSB_GPIO_REV (TUSB_SYS_REG_BASE + 0x080) |
Definition at line 188 of file tusb6010.h.
#define TUSB_INT_CTRL_CONF (TUSB_SYS_REG_BASE + 0x03c) |
Definition at line 133 of file tusb6010.h.
#define TUSB_INT_CTRL_CONF_INT_MODE (1 << 16) |
Definition at line 207 of file tusb6010.h.
#define TUSB_INT_CTRL_CONF_INT_POLARITY (1 << 17) |
Definition at line 206 of file tusb6010.h.
Definition at line 205 of file tusb6010.h.
#define TUSB_INT_CTRL_REV (TUSB_SYS_REG_BASE + 0x038) |
Definition at line 132 of file tusb6010.h.
#define TUSB_INT_MASK (TUSB_SYS_REG_BASE + 0x07c) |
Definition at line 151 of file tusb6010.h.
#define TUSB_INT_MASK_RESERVED_13 (1 << 13) |
Definition at line 172 of file tusb6010.h.
#define TUSB_INT_MASK_RESERVED_17 (0x3fff << 17) |
Definition at line 171 of file tusb6010.h.
#define TUSB_INT_MASK_RESERVED_8 (0xf << 8) |
Definition at line 173 of file tusb6010.h.
#define TUSB_INT_MASK_RESERVED_BITS |
Definition at line 179 of file tusb6010.h.
#define TUSB_INT_SRC (TUSB_SYS_REG_BASE + 0x070) |
Definition at line 148 of file tusb6010.h.
#define TUSB_INT_SRC_CLEAR (TUSB_SYS_REG_BASE + 0x078) |
Definition at line 150 of file tusb6010.h.
#define TUSB_INT_SRC_DEV_READY (1 << 12) |
Definition at line 158 of file tusb6010.h.
#define TUSB_INT_SRC_DEV_WAKEUP (1 << 13) |
Definition at line 157 of file tusb6010.h.
#define TUSB_INT_SRC_ID_STATUS_CHNG (1 << 14) |
Definition at line 156 of file tusb6010.h.
#define TUSB_INT_SRC_OTG_TIMEOUT (1 << 16) |
Definition at line 154 of file tusb6010.h.
#define TUSB_INT_SRC_RESERVED_10 (0x03 << 10) |
Definition at line 176 of file tusb6010.h.
#define TUSB_INT_SRC_RESERVED_18 (0x3f << 18) |
Definition at line 175 of file tusb6010.h.
#define TUSB_INT_SRC_RESERVED_26 (0x1f << 26) |
Definition at line 174 of file tusb6010.h.
#define TUSB_INT_SRC_RESERVED_BITS |
Definition at line 184 of file tusb6010.h.
#define TUSB_INT_SRC_SET (TUSB_SYS_REG_BASE + 0x074) |
Definition at line 149 of file tusb6010.h.
#define TUSB_INT_SRC_TXRX_DMA_DONE (1 << 24) |
Definition at line 152 of file tusb6010.h.
#define TUSB_INT_SRC_USB_IP_CONN (1 << 4) |
Definition at line 164 of file tusb6010.h.
#define TUSB_INT_SRC_USB_IP_CORE (1 << 17) |
Definition at line 153 of file tusb6010.h.
#define TUSB_INT_SRC_USB_IP_DISCON (1 << 5) |
Definition at line 163 of file tusb6010.h.
#define TUSB_INT_SRC_USB_IP_RESUME (1 << 1) |
Definition at line 167 of file tusb6010.h.
#define TUSB_INT_SRC_USB_IP_RST_BABBLE (1 << 2) |
Definition at line 166 of file tusb6010.h.
#define TUSB_INT_SRC_USB_IP_RX (1 << 8) |
Definition at line 160 of file tusb6010.h.
#define TUSB_INT_SRC_USB_IP_SOF (1 << 3) |
Definition at line 165 of file tusb6010.h.
#define TUSB_INT_SRC_USB_IP_SUSPEND (1 << 0) |
Definition at line 168 of file tusb6010.h.
#define TUSB_INT_SRC_USB_IP_TX (1 << 9) |
Definition at line 159 of file tusb6010.h.
#define TUSB_INT_SRC_USB_IP_VBUS_ERR (1 << 7) |
Definition at line 161 of file tusb6010.h.
#define TUSB_INT_SRC_USB_IP_VBUS_REQ (1 << 6) |
Definition at line 162 of file tusb6010.h.
#define TUSB_INT_SRC_VBUS_SENSE_CHNG (1 << 15) |
Definition at line 155 of file tusb6010.h.
#define TUSB_PHY_OTG_CTRL (TUSB_SYS_REG_BASE + 0x008) |
Definition at line 48 of file tusb6010.h.
#define TUSB_PHY_OTG_CTRL_CLK_MODE (1 << 0) |
Definition at line 69 of file tusb6010.h.
#define TUSB_PHY_OTG_CTRL_DM_PULLDOWN (1 << 11) |
Definition at line 59 of file tusb6010.h.
#define TUSB_PHY_OTG_CTRL_DP_PULLDOWN (1 << 10) |
Definition at line 60 of file tusb6010.h.
#define TUSB_PHY_OTG_CTRL_ENABLE (TUSB_SYS_REG_BASE + 0x004) |
Definition at line 47 of file tusb6010.h.
#define TUSB_PHY_OTG_CTRL_EXT_RPU (1 << 4) |
Definition at line 65 of file tusb6010.h.
#define TUSB_PHY_OTG_CTRL_OSC_EN (1 << 9) |
Definition at line 61 of file tusb6010.h.
#define TUSB_PHY_OTG_CTRL_OTG_ID_PULLUP (1 << 23) |
Definition at line 50 of file tusb6010.h.
#define TUSB_PHY_OTG_CTRL_OTG_SESS_END_EN (1 << 18) |
Definition at line 52 of file tusb6010.h.
#define TUSB_PHY_OTG_CTRL_OTG_VBUS_DET_EN (1 << 19) |
Definition at line 51 of file tusb6010.h.
#define TUSB_PHY_OTG_CTRL_PD (1 << 6) |
Definition at line 63 of file tusb6010.h.
Definition at line 62 of file tusb6010.h.
#define TUSB_PHY_OTG_CTRL_PLL_ON (1 << 5) |
Definition at line 64 of file tusb6010.h.
#define TUSB_PHY_OTG_CTRL_PWR_GOOD (1 << 3) |
Definition at line 66 of file tusb6010.h.
#define TUSB_PHY_OTG_CTRL_RESET (1 << 2) |
Definition at line 67 of file tusb6010.h.
#define TUSB_PHY_OTG_CTRL_SUSPENDM (1 << 1) |
Definition at line 68 of file tusb6010.h.
#define TUSB_PHY_OTG_CTRL_TESTM0 (1 << 15) |
Definition at line 55 of file tusb6010.h.
#define TUSB_PHY_OTG_CTRL_TESTM1 (1 << 16) |
Definition at line 54 of file tusb6010.h.
#define TUSB_PHY_OTG_CTRL_TESTM2 (1 << 17) |
Definition at line 53 of file tusb6010.h.
#define TUSB_PHY_OTG_CTRL_TX_DATA2 (1 << 14) |
Definition at line 56 of file tusb6010.h.
#define TUSB_PHY_OTG_CTRL_TX_ENABLE2 (1 << 12) |
Definition at line 58 of file tusb6010.h.
#define TUSB_PHY_OTG_CTRL_TX_GZ2 (1 << 13) |
Definition at line 57 of file tusb6010.h.
#define TUSB_PHY_OTG_CTRL_WRPROTECT (0xa5 << 24) |
Definition at line 49 of file tusb6010.h.
#define TUSB_PRCM_CONF (TUSB_SYS_REG_BASE + 0x018) |
Definition at line 90 of file tusb6010.h.
#define TUSB_PRCM_CONF_SFW_CPEN (1 << 24) |
Definition at line 91 of file tusb6010.h.
Definition at line 92 of file tusb6010.h.
#define TUSB_PRCM_MNGMT (TUSB_SYS_REG_BASE + 0x01c) |
Definition at line 95 of file tusb6010.h.
#define TUSB_PRCM_MNGMT_15_SW_EN (1 << 4) |
Definition at line 105 of file tusb6010.h.
#define TUSB_PRCM_MNGMT_33_SW_EN (1 << 3) |
Definition at line 106 of file tusb6010.h.
#define TUSB_PRCM_MNGMT_5V_CPEN (1 << 2) |
Definition at line 107 of file tusb6010.h.
#define TUSB_PRCM_MNGMT_DEV_IDLE (1 << 0) |
Definition at line 109 of file tusb6010.h.
#define TUSB_PRCM_MNGMT_DFT_CLK_DIS (1 << 18) |
Definition at line 100 of file tusb6010.h.
#define TUSB_PRCM_MNGMT_OTG_ID_PULLUP (1 << 8) |
Definition at line 104 of file tusb6010.h.
#define TUSB_PRCM_MNGMT_OTG_SESS_END_EN (1 << 10) |
Definition at line 102 of file tusb6010.h.
#define TUSB_PRCM_MNGMT_OTG_VBUS_DET_EN (1 << 9) |
Definition at line 103 of file tusb6010.h.
#define TUSB_PRCM_MNGMT_PM_IDLE (1 << 1) |
Definition at line 108 of file tusb6010.h.
#define TUSB_PRCM_MNGMT_SRP_FIX_EN (1 << 24) |
Definition at line 97 of file tusb6010.h.
Definition at line 96 of file tusb6010.h.
#define TUSB_PRCM_MNGMT_VBUS_VALID_FLT_EN (1 << 19) |
Definition at line 99 of file tusb6010.h.
Definition at line 98 of file tusb6010.h.
#define TUSB_PRCM_MNGMT_VLYNQ_CLK_DIS (1 << 17) |
Definition at line 101 of file tusb6010.h.
#define TUSB_PRCM_REV (TUSB_SYS_REG_BASE + 0x014) |
Definition at line 87 of file tusb6010.h.
#define TUSB_PRCM_WAKEUP_CLEAR (TUSB_SYS_REG_BASE + 0x028) |
Definition at line 113 of file tusb6010.h.
#define TUSB_PRCM_WAKEUP_MASK (TUSB_SYS_REG_BASE + 0x02c) |
Definition at line 114 of file tusb6010.h.
#define TUSB_PRCM_WAKEUP_RESERVED_BITS (0xffffe << 13) |
Definition at line 115 of file tusb6010.h.
#define TUSB_PRCM_WAKEUP_SOURCE (TUSB_SYS_REG_BASE + 0x020) |
Definition at line 112 of file tusb6010.h.
Definition at line 125 of file tusb6010.h.
#define TUSB_PRCM_WGPIO_0 (1 << 5) |
Definition at line 123 of file tusb6010.h.
#define TUSB_PRCM_WGPIO_1 (1 << 6) |
Definition at line 122 of file tusb6010.h.
#define TUSB_PRCM_WGPIO_2 (1 << 7) |
Definition at line 121 of file tusb6010.h.
#define TUSB_PRCM_WGPIO_3 (1 << 8) |
Definition at line 120 of file tusb6010.h.
#define TUSB_PRCM_WGPIO_4 (1 << 9) |
Definition at line 119 of file tusb6010.h.
#define TUSB_PRCM_WGPIO_5 (1 << 10) |
Definition at line 118 of file tusb6010.h.
#define TUSB_PRCM_WGPIO_6 (1 << 11) |
Definition at line 117 of file tusb6010.h.
#define TUSB_PRCM_WGPIO_7 (1 << 12) |
Definition at line 116 of file tusb6010.h.
#define TUSB_PRCM_WHOSTDISCON (1 << 4) /* Host disconnect */ |
Definition at line 124 of file tusb6010.h.
Definition at line 128 of file tusb6010.h.
Definition at line 126 of file tusb6010.h.
Definition at line 127 of file tusb6010.h.
#define TUSB_PROD_TEST_RESET (TUSB_SYS_REG_BASE + 0x1d8) |
Definition at line 202 of file tusb6010.h.
#define TUSB_PROD_TEST_RESET_VAL 0xa596 |
Definition at line 217 of file tusb6010.h.
#define TUSB_PULLUP_1_CTRL (TUSB_SYS_REG_BASE + 0x030) |
Definition at line 130 of file tusb6010.h.
#define TUSB_PULLUP_2_CTRL (TUSB_SYS_REG_BASE + 0x034) |
Definition at line 131 of file tusb6010.h.
#define TUSB_REV_10 0x10 |
Definition at line 227 of file tusb6010.h.
#define TUSB_REV_20 0x20 |
Definition at line 228 of file tusb6010.h.
#define TUSB_REV_30 0x30 |
Definition at line 229 of file tusb6010.h.
#define TUSB_REV_31 0x31 |
Definition at line 230 of file tusb6010.h.
#define TUSB_SCRATCH_PAD (TUSB_SYS_REG_BASE + 0x1c4) |
Definition at line 201 of file tusb6010.h.
#define TUSB_SYS_REG_BASE 0x800 |
Definition at line 39 of file tusb6010.h.
#define TUSB_USBIP_INT_CLEAR (TUSB_SYS_REG_BASE + 0x048) |
Definition at line 136 of file tusb6010.h.
#define TUSB_USBIP_INT_MASK (TUSB_SYS_REG_BASE + 0x04c) |
Definition at line 137 of file tusb6010.h.
#define TUSB_USBIP_INT_SET (TUSB_SYS_REG_BASE + 0x044) |
Definition at line 135 of file tusb6010.h.
#define TUSB_USBIP_INT_SRC (TUSB_SYS_REG_BASE + 0x040) |
Definition at line 134 of file tusb6010.h.
#define TUSB_VLYNQ_CTRL 0x004 |
Definition at line 30 of file tusb6010.h.
#define TUSB_WAIT_COUNT (TUSB_SYS_REG_BASE + 0x1c8) |
Definition at line 200 of file tusb6010.h.
Definition at line 45 of file tusb6010.c.