/openbmc/linux/drivers/usb/host/ |
H A D | ehci-hcd.c | 111 static unsigned ehci_moschip_read_frame_index(struct ehci_hcd *ehci) in ehci_moschip_read_frame_index() argument 115 uf = ehci_readl(ehci, &ehci->regs->frame_index); in ehci_moschip_read_frame_index() 117 uf = ehci_readl(ehci, &ehci->regs->frame_index); in ehci_moschip_read_frame_index() 121 static inline unsigned ehci_read_frame_index(struct ehci_hcd *ehci) in ehci_read_frame_index() argument 123 if (ehci->frame_index_bug) in ehci_read_frame_index() 124 return ehci_moschip_read_frame_index(ehci); in ehci_read_frame_index() 125 return ehci_readl(ehci, &ehci->regs->frame_index); in ehci_read_frame_index() 149 int ehci_handshake(struct ehci_hcd *ehci, void __iomem *ptr, in ehci_handshake() argument 155 result = ehci_readl(ehci, ptr); in ehci_handshake() 169 static int tdi_in_host_mode (struct ehci_hcd *ehci) in tdi_in_host_mode() argument [all …]
|
H A D | ehci-timer.c | 11 static void ehci_set_command_bit(struct ehci_hcd *ehci, u32 bit) in ehci_set_command_bit() argument 13 ehci->command |= bit; in ehci_set_command_bit() 14 ehci_writel(ehci, ehci->command, &ehci->regs->command); in ehci_set_command_bit() 17 ehci_readl(ehci, &ehci->regs->command); in ehci_set_command_bit() 21 static void ehci_clear_command_bit(struct ehci_hcd *ehci, u32 bit) in ehci_clear_command_bit() argument 23 ehci->command &= ~bit; in ehci_clear_command_bit() 24 ehci_writel(ehci, ehci->command, &ehci->regs->command); in ehci_clear_command_bit() 27 ehci_readl(ehci, &ehci->regs->command); in ehci_clear_command_bit() 76 static void ehci_enable_event(struct ehci_hcd *ehci, unsigned event, in ehci_enable_event() argument 79 ktime_t *timeout = &ehci->hr_timeouts[event]; in ehci_enable_event() [all …]
|
H A D | ehci-hub.c | 22 static void unlink_empty_async_suspended(struct ehci_hcd *ehci); 33 static void ehci_handover_companion_ports(struct ehci_hcd *ehci) in ehci_handover_companion_ports() argument 39 struct usb_hcd *hcd = ehci_to_hcd(ehci); in ehci_handover_companion_ports() 41 if (!ehci->owned_ports) in ehci_handover_companion_ports() 55 port = HCS_N_PORTS(ehci->hcs_params); in ehci_handover_companion_ports() 57 if (test_bit(port, &ehci->owned_ports)) { in ehci_handover_companion_ports() 58 reg = &ehci->regs->port_status[port]; in ehci_handover_companion_ports() 59 status = ehci_readl(ehci, reg) & ~PORT_RWC_BITS; in ehci_handover_companion_ports() 61 ehci_port_power(ehci, port, true); in ehci_handover_companion_ports() 68 spin_lock_irq(&ehci->lock); in ehci_handover_companion_ports() [all …]
|
H A D | ehci-mem.c | 25 static inline void ehci_qtd_init(struct ehci_hcd *ehci, struct ehci_qtd *qtd, in ehci_qtd_init() argument 30 qtd->hw_token = cpu_to_hc32(ehci, QTD_STS_HALT); in ehci_qtd_init() 31 qtd->hw_next = EHCI_LIST_END(ehci); in ehci_qtd_init() 32 qtd->hw_alt_next = EHCI_LIST_END(ehci); in ehci_qtd_init() 36 static struct ehci_qtd *ehci_qtd_alloc (struct ehci_hcd *ehci, gfp_t flags) in ehci_qtd_alloc() argument 41 qtd = dma_pool_alloc (ehci->qtd_pool, flags, &dma); in ehci_qtd_alloc() 43 ehci_qtd_init(ehci, qtd, dma); in ehci_qtd_alloc() 48 static inline void ehci_qtd_free (struct ehci_hcd *ehci, struct ehci_qtd *qtd) in ehci_qtd_free() argument 50 dma_pool_free (ehci->qtd_pool, qtd, qtd->qtd_dma); in ehci_qtd_free() 54 static void qh_destroy(struct ehci_hcd *ehci, struct ehci_qh *qh) in qh_destroy() argument [all …]
|
H A D | ehci-q.c | 37 qtd_fill(struct ehci_hcd *ehci, struct ehci_qtd *qtd, dma_addr_t buf, in qtd_fill() argument 45 qtd->hw_buf[0] = cpu_to_hc32(ehci, (u32)addr); in qtd_fill() 46 qtd->hw_buf_hi[0] = cpu_to_hc32(ehci, (u32)(addr >> 32)); in qtd_fill() 57 qtd->hw_buf[i] = cpu_to_hc32(ehci, (u32)addr); in qtd_fill() 58 qtd->hw_buf_hi[i] = cpu_to_hc32(ehci, in qtd_fill() 71 qtd->hw_token = cpu_to_hc32(ehci, (count << 16) | token); in qtd_fill() 80 qh_update (struct ehci_hcd *ehci, struct ehci_qh *qh, struct ehci_qtd *qtd) in qh_update() argument 87 hw->hw_qtd_next = QTD_NEXT(ehci, qtd->qtd_dma); in qh_update() 88 hw->hw_alt_next = EHCI_LIST_END(ehci); in qh_update() 95 if (!(hw->hw_info1 & cpu_to_hc32(ehci, QH_TOGGLE_CTL))) { in qh_update() [all …]
|
H A D | ehci-sched.c | 32 periodic_next_shadow(struct ehci_hcd *ehci, union ehci_shadow *periodic, in periodic_next_shadow() argument 35 switch (hc32_to_cpu(ehci, tag)) { in periodic_next_shadow() 49 shadow_next_periodic(struct ehci_hcd *ehci, union ehci_shadow *periodic, in shadow_next_periodic() argument 52 switch (hc32_to_cpu(ehci, tag)) { in shadow_next_periodic() 63 static void periodic_unlink(struct ehci_hcd *ehci, unsigned frame, void *ptr) in periodic_unlink() argument 65 union ehci_shadow *prev_p = &ehci->pshadow[frame]; in periodic_unlink() 66 __hc32 *hw_p = &ehci->periodic[frame]; in periodic_unlink() 71 prev_p = periodic_next_shadow(ehci, prev_p, in periodic_unlink() 72 Q_NEXT_TYPE(ehci, *hw_p)); in periodic_unlink() 73 hw_p = shadow_next_periodic(ehci, &here, in periodic_unlink() [all …]
|
H A D | ehci-dbg.c | 15 static void dbg_hcs_params(struct ehci_hcd *ehci, char *label) in dbg_hcs_params() argument 17 u32 params = ehci_readl(ehci, &ehci->caps->hcs_params); in dbg_hcs_params() 19 ehci_dbg(ehci, in dbg_hcs_params() 37 byte = readb(&ehci->caps->portroute[(i >> 1)]); in dbg_hcs_params() 42 ehci_dbg(ehci, "%s portroute %s\n", label, buf); in dbg_hcs_params() 51 static void dbg_hcc_params(struct ehci_hcd *ehci, char *label) in dbg_hcc_params() argument 53 u32 params = ehci_readl(ehci, &ehci->caps->hcc_params); in dbg_hcc_params() 56 ehci_dbg(ehci, in dbg_hcc_params() 63 ehci_dbg(ehci, in dbg_hcc_params() 80 dbg_qtd(const char *label, struct ehci_hcd *ehci, struct ehci_qtd *qtd) in dbg_qtd() argument [all …]
|
H A D | ehci-pci.c | 63 static int ehci_pci_reinit(struct ehci_hcd *ehci, struct pci_dev *pdev) in ehci_pci_reinit() argument 74 ehci_dbg(ehci, "MWI active\n"); in ehci_pci_reinit() 82 ehci_writel(ehci, INTEL_QUARK_X1000_EHCI_MAX_THRESHOLD, in ehci_pci_reinit() 83 ehci->regs->intel_quark_x1000_insnreg01); in ehci_pci_reinit() 92 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_pci_setup() local 97 ehci->caps = hcd->regs; in ehci_pci_setup() 113 ehci->big_endian_mmio = 1; in ehci_pci_setup() 115 ehci_warn(ehci, in ehci_pci_setup() 131 ehci_warn(ehci, "can't enable NVidia " in ehci_pci_setup() 140 ehci->no_selective_suspend = 1; in ehci_pci_setup() [all …]
|
H A D | ehci-fsl.c | 147 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in fsl_ehci_drv_probe() local 151 hcd, ehci, hcd->usb_phy); in fsl_ehci_drv_probe() 155 &ehci_to_hcd(ehci)->self); in fsl_ehci_drv_probe() 196 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_fsl_setup_phy() local 206 portsc = ehci_readl(ehci, &ehci->regs->port_status[port_offset]); in ehci_fsl_setup_phy() 283 ehci_writel(ehci, portsc, &ehci->regs->port_status[port_offset]); in ehci_fsl_setup_phy() 295 static int ehci_fsl_usb_setup(struct ehci_hcd *ehci) in ehci_fsl_usb_setup() argument 297 struct usb_hcd *hcd = ehci_to_hcd(ehci); in ehci_fsl_usb_setup() 320 ehci->has_fsl_hs_errata = 1; in ehci_fsl_usb_setup() 323 ehci->has_fsl_susp_errata = 1; in ehci_fsl_usb_setup() [all …]
|
H A D | ehci-sysfs.c | 14 struct ehci_hcd *ehci; in companion_show() local 19 ehci = hcd_to_ehci(dev_get_drvdata(dev)); in companion_show() 20 nports = HCS_N_PORTS(ehci->hcs_params); in companion_show() 23 if (test_bit(index, &ehci->companion_ports)) { in companion_show() 41 struct ehci_hcd *ehci; in companion_store() local 44 ehci = hcd_to_ehci(dev_get_drvdata(dev)); in companion_store() 52 if (portnum <= 0 || portnum > HCS_N_PORTS(ehci->hcs_params)) in companion_store() 56 set_bit(portnum, &ehci->companion_ports); in companion_store() 58 clear_bit(portnum, &ehci->companion_ports); in companion_store() 59 set_owner(ehci, portnum, new_owner); in companion_store() [all …]
|
H A D | ehci.h | 270 static inline struct usb_hcd *ehci_to_hcd(struct ehci_hcd *ehci) in ehci_to_hcd() argument 272 return container_of((void *) ehci, struct usb_hcd, hcd_priv); in ehci_to_hcd() 281 #define QTD_NEXT(ehci, dma) cpu_to_hc32(ehci, (u32)dma) argument 310 #define ACTIVE_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_ACTIVE) argument 311 #define HALT_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_HALT) argument 312 #define STATUS_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_STS) argument 325 #define QTD_MASK(ehci) cpu_to_hc32(ehci, ~0x1f) argument 332 #define Q_NEXT_TYPE(ehci, dma) ((dma) & cpu_to_hc32(ehci, 3 << 1)) argument 348 #define QH_NEXT(ehci, dma) \ argument 349 (cpu_to_hc32(ehci, (((u32) dma) & ~0x01f) | Q_TYPE_QH)) [all …]
|
H A D | ehci-brcm.c | 27 static inline void ehci_brcm_wait_for_sof(struct ehci_hcd *ehci, u32 delay) in ehci_brcm_wait_for_sof() argument 29 u32 frame_idx = ehci_readl(ehci, &ehci->regs->frame_index); in ehci_brcm_wait_for_sof() 34 res = readl_relaxed_poll_timeout(&ehci->regs->frame_index, val, in ehci_brcm_wait_for_sof() 37 ehci_err(ehci, "Error waiting for SOF\n"); in ehci_brcm_wait_for_sof() 60 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_brcm_hub_control() local 61 int ports = HCS_N_PORTS(ehci->hcs_params); in ehci_brcm_hub_control() 70 status_reg = &ehci->regs->port_status[temp]; in ehci_brcm_hub_control() 78 ehci->reset_done[wIndex-1] && in ehci_brcm_hub_control() 79 time_after_eq(jiffies, ehci->reset_done[wIndex-1]) && in ehci_brcm_hub_control() 80 (ehci_readl(ehci, status_reg) & PORT_RESUME)) { in ehci_brcm_hub_control() [all …]
|
H A D | ehci-platform.c | 60 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_platform_reset() local 63 ehci->has_synopsys_hc_bug = pdata->has_synopsys_hc_bug; in ehci_platform_reset() 71 ehci->caps = hcd->regs + pdata->caps_offset; in ehci_platform_reset() 77 ehci->need_io_watchdog = 0; in ehci_platform_reset() 80 ehci_writel(ehci, BCM_USB_FIFO_THRESHOLD, in ehci_platform_reset() 81 &ehci->regs->brcm_insnreg[1]); in ehci_platform_reset() 142 static bool quirk_poll_check_port_status(struct ehci_hcd *ehci) in quirk_poll_check_port_status() argument 144 u32 port_status = ehci_readl(ehci, &ehci->regs->port_status[0]); in quirk_poll_check_port_status() 164 static void quirk_poll_rebind_companion(struct ehci_hcd *ehci) in quirk_poll_rebind_companion() argument 167 struct usb_hcd *hcd = ehci_to_hcd(ehci); in quirk_poll_rebind_companion() [all …]
|
H A D | ehci-ppc-of.c | 98 struct ehci_hcd *ehci = NULL; in ehci_hcd_ppc_of_probe() local 135 ehci = hcd_to_ehci(hcd); in ehci_hcd_ppc_of_probe() 140 ehci->ohci_hcctrl_reg = in ehci_hcd_ppc_of_probe() 146 if (!ehci->ohci_hcctrl_reg) { in ehci_hcd_ppc_of_probe() 149 ehci->has_amcc_usb23 = 1; in ehci_hcd_ppc_of_probe() 155 ehci->big_endian_mmio = 1; in ehci_hcd_ppc_of_probe() 156 ehci->big_endian_desc = 1; in ehci_hcd_ppc_of_probe() 159 ehci->big_endian_mmio = 1; in ehci_hcd_ppc_of_probe() 161 ehci->big_endian_desc = 1; in ehci_hcd_ppc_of_probe() 163 ehci->caps = hcd->regs; in ehci_hcd_ppc_of_probe() [all …]
|
H A D | Makefile | 37 obj-$(CONFIG_USB_EHCI_HCD) += ehci-hcd.o 38 obj-$(CONFIG_USB_EHCI_PCI) += ehci-pci.o 39 obj-$(CONFIG_USB_EHCI_HCD_PLATFORM) += ehci-platform.o 40 obj-$(CONFIG_USB_EHCI_HCD_NPCM7XX) += ehci-npcm7xx.o 41 obj-$(CONFIG_USB_EHCI_HCD_OMAP) += ehci-omap.o 42 obj-$(CONFIG_USB_EHCI_HCD_ORION) += ehci-orion.o 43 obj-$(CONFIG_USB_EHCI_HCD_SPEAR) += ehci-spear.o 44 obj-$(CONFIG_USB_EHCI_HCD_STI) += ehci-st.o 45 obj-$(CONFIG_USB_EHCI_EXYNOS) += ehci-exynos.o 46 obj-$(CONFIG_USB_EHCI_HCD_AT91) += ehci-atmel.o [all …]
|
H A D | ehci-grlib.c | 76 struct ehci_hcd *ehci = NULL; in ehci_hcd_grlib_probe() local 115 ehci = hcd_to_ehci(hcd); in ehci_hcd_grlib_probe() 117 ehci->caps = hcd->regs; in ehci_hcd_grlib_probe() 120 hc_capbase = ehci_readl(ehci, &ehci->caps->hc_capbase); in ehci_hcd_grlib_probe() 121 if (HC_VERSION(ehci, hc_capbase) != GRUSBHC_HCIVERSION) { in ehci_hcd_grlib_probe() 122 ehci->big_endian_mmio = 1; in ehci_hcd_grlib_probe() 123 ehci->big_endian_desc = 1; in ehci_hcd_grlib_probe() 124 ehci->big_endian_capbase = 1; in ehci_hcd_grlib_probe()
|
/openbmc/u-boot/drivers/usb/host/ |
H A D | ehci-fsl.c | 30 struct ehci_ctrl ehci; member 38 static int ehci_fsl_init(struct ehci_fsl_priv *priv, struct usb_ehci *ehci, 41 static int ehci_fsl_init(int index, struct usb_ehci *ehci, 46 static int usb_phy_clk_valid(struct usb_ehci *ehci) in usb_phy_clk_valid() argument 48 if (!((in_be32(&ehci->control) & PHY_CLK_VALID) || in usb_phy_clk_valid() 49 in_be32(&ehci->prictrl))) { in usb_phy_clk_valid() 75 struct usb_ehci *ehci = NULL; in ehci_fsl_init_after_reset() local 77 ehci); in ehci_fsl_init_after_reset() 79 ehci = (struct usb_ehci *)priv->hcd_base; in ehci_fsl_init_after_reset() 80 if (ehci_fsl_init(priv, ehci, priv->ehci.hccr, priv->ehci.hcor) < 0) in ehci_fsl_init_after_reset() [all …]
|
H A D | Makefile | 22 obj-$(CONFIG_USB_EHCI_HCD) += ehci-hcd.o 23 obj-$(CONFIG_USB_EHCI_ARMADA100) += ehci-armada100.o utmi-armada100.o 24 obj-$(CONFIG_USB_EHCI_ASPEED) += ehci-aspeed.o 25 obj-$(CONFIG_USB_EHCI_ATMEL) += ehci-atmel.o 26 obj-$(CONFIG_USB_EHCI_FSL) += ehci-fsl.o 27 obj-$(CONFIG_USB_EHCI_FARADAY) += ehci-faraday.o 28 obj-$(CONFIG_USB_EHCI_GENERIC) += ehci-generic.o 29 obj-$(CONFIG_USB_EHCI_EXYNOS) += ehci-exynos.o 30 obj-$(CONFIG_USB_EHCI_MXC) += ehci-mxc.o 31 obj-$(CONFIG_USB_EHCI_MXS) += ehci-mxs.o [all …]
|
H A D | ehci-vf.c | 84 static void usb_phy_enable(int index, struct usb_ehci *ehci) in usb_phy_enable() argument 92 usb_cmd = (void __iomem *)&ehci->usbcmd; in usb_phy_enable() 139 int ehci_vf_common_init(struct usb_ehci *ehci, int index) in ehci_vf_common_init() argument 151 usb_phy_enable(index, ehci); in ehci_vf_common_init() 160 struct usb_ehci *ehci; in ehci_hcd_init() local 167 ehci = (struct usb_ehci *)nc_reg_bases[index]; in ehci_hcd_init() 173 *hccr = (struct ehci_hccr *)((uint32_t)&ehci->caplength); in ehci_hcd_init() 182 setbits_le32(&ehci->usbmode, CM_DEVICE); in ehci_hcd_init() 183 writel((PORT_PTS_UTMI | PORT_PTS_PTW), &ehci->portsc); in ehci_hcd_init() 184 setbits_le32(&ehci->portsc, USB_EN); in ehci_hcd_init() [all …]
|
H A D | ehci-msm.c | 26 struct usb_ehci *ehci; /* Start of IP core*/ member 34 struct usb_ehci *ehci = p->ehci; in msm_init_after_reset() local 39 writel(CM_HOST, &ehci->usbmode); in msm_init_after_reset() 51 struct usb_ehci *ehci = p->ehci; in ehci_usb_probe() local 57 hccr = (struct ehci_hccr *)((phys_addr_t)&ehci->caplength); in ehci_usb_probe() 76 struct usb_ehci *ehci = p->ehci; in ehci_usb_remove() local 84 clrbits_le32(&ehci->usbcmd, CMD_RUN); in ehci_usb_remove() 95 setbits_le32(&ehci->usbcmd, CMD_RESET); in ehci_usb_remove() 98 if (wait_for_bit_le32(&ehci->usbcmd, CMD_RESET, false, 30, false)) { in ehci_usb_remove() 111 priv->ehci = (void *)devfdt_get_addr(dev); in ehci_usb_ofdata_to_platdata() [all …]
|
H A D | ehci-mx6.c | 128 static int usb_phy_enable(int index, struct usb_ehci *ehci) in usb_phy_enable() argument 140 usb_cmd = (void __iomem *)&ehci->usbcmd; in usb_phy_enable() 315 int ehci_mx6_common_init(struct usb_ehci *ehci, int index) in ehci_mx6_common_init() argument 332 usb_phy_enable(index, ehci); in ehci_mx6_common_init() 348 struct usb_ehci *ehci = (struct usb_ehci *)(USB_BASE_ADDR + in ehci_hcd_init() local 355 ret = ehci_mx6_common_init(ehci, index); in ehci_hcd_init() 362 *hccr = (struct ehci_hccr *)((uint32_t)&ehci->caplength); in ehci_hcd_init() 374 setbits_le32(&ehci->usbmode, CM_HOST); in ehci_hcd_init() 375 writel(CONFIG_MXC_USB_PORTSC, &ehci->portsc); in ehci_hcd_init() 376 setbits_le32(&ehci->portsc, USB_EN); in ehci_hcd_init() [all …]
|
/openbmc/qemu/hw/usb/ |
H A D | hcd-ehci.c | 373 static inline int get_dwords(EHCIState *ehci, uint32_t addr, in get_dwords() argument 378 if (!ehci->as) { in get_dwords() 379 ehci_raise_irq(ehci, USBSTS_HSE); in get_dwords() 380 ehci->usbcmd &= ~USBCMD_RUNSTOP; in get_dwords() 386 dma_memory_read(ehci->as, addr, buf, sizeof(*buf), in get_dwords() 395 static inline int put_dwords(EHCIState *ehci, uint32_t addr, in put_dwords() argument 400 if (!ehci->as) { in put_dwords() 401 ehci_raise_irq(ehci, USBSTS_HSE); in put_dwords() 402 ehci->usbcmd &= ~USBCMD_RUNSTOP; in put_dwords() 409 dma_memory_write(ehci->as, addr, &tmp, sizeof(tmp), in put_dwords() [all …]
|
/openbmc/linux/drivers/usb/chipidea/ |
H A D | host.c | 39 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_ci_portpower() local 40 struct ehci_ci_priv *priv = (struct ehci_ci_priv *)ehci->priv; in ehci_ci_portpower() 44 int port = HCS_N_PORTS(ehci->hcs_params); in ehci_ci_portpower() 87 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_ci_reset() local 94 ehci->need_io_watchdog = 0; in ehci_ci_reset() 122 struct ehci_hcd *ehci; in host_start() local 148 ehci = hcd_to_ehci(hcd); in host_start() 149 ehci->caps = ci->hw_bank.cap; in host_start() 150 ehci->has_hostpc = ci->hw_bank.lpm; in host_start() 151 ehci->has_tdi_phy_lpm = ci->hw_bank.lpm; in host_start() [all …]
|
H A D | ci_hdrc_tegra.c | 156 struct ehci_hcd *ehci; in tegra_usb_notify_event() local 161 ehci = hcd_to_ehci(ci->hcd); in tegra_usb_notify_event() 162 ehci->has_tdi_phy_lpm = false; in tegra_usb_notify_event() 163 ehci_writel(ehci, usb->soc->txfifothresh << 16, in tegra_usb_notify_event() 164 &ehci->regs->txfill_tuning); in tegra_usb_notify_event() 172 static int tegra_usb_internal_port_reset(struct ehci_hcd *ehci, in tegra_usb_internal_port_reset() argument 180 saved_usbintr = ehci_readl(ehci, &ehci->regs->intr_enable); in tegra_usb_internal_port_reset() 182 ehci_writel(ehci, 0, &ehci->regs->intr_enable); in tegra_usb_internal_port_reset() 183 spin_unlock_irqrestore(&ehci->lock, *flags); in tegra_usb_internal_port_reset() 190 temp = ehci_readl(ehci, portsc_reg); in tegra_usb_internal_port_reset() [all …]
|
/openbmc/u-boot/drivers/phy/ |
H A D | msm8916-usbh-phy.c | 24 struct usb_ehci *ehci; /* Start of IP core*/ member 54 writel(PORT_PTS_ULPI, &p->ehci->portsc); in msm_phy_reset() 57 setbits_le32(&p->ehci->genconfig2, GEN2_SESS_VLD_CTRL_EN); in msm_phy_reset() 60 setbits_le32(&p->ehci->usbcmd, SESS_VLD_CTRL); in msm_phy_reset() 63 writel(0x0, &p->ehci->sbuscfg); in msm_phy_reset() 67 writel(0x08, &p->ehci->sbusmode); in msm_phy_reset() 80 priv->ehci = (struct usb_ehci *)priv->regs; in msm_phy_probe() 86 priv->ulpi_vp.viewport_addr = (phys_addr_t)&priv->ehci->ulpi_viewpoint; in msm_phy_probe()
|