Home
last modified time | relevance | path

Searched refs:musb (Results 1 – 25 of 40) sorted by relevance

12

/external/u-boot/drivers/usb/musb-new/
Dmusb_core.c114 static inline struct musb *dev_to_musb(struct device *dev) in dev_to_musb()
218 struct musb *musb = hw_ep->musb; in musb_write_fifo() local
223 dev_dbg(musb->controller, "%cX ep%d fifo %p count %d buf %p\n", in musb_write_fifo()
260 struct musb *musb = hw_ep->musb; in musb_read_fifo() local
263 dev_dbg(musb->controller, "%cX ep%d fifo %p count %d buf %p\n", in musb_read_fifo()
320 void musb_load_testpacket(struct musb *musb) in musb_load_testpacket() argument
322 void __iomem *regs = musb->endpoints[0].regs; in musb_load_testpacket()
324 musb_ep_select(musb->mregs, 0); in musb_load_testpacket()
325 musb_write_fifo(musb->control_ep, in musb_load_testpacket()
338 struct musb *musb = (struct musb *)data; in musb_otg_timer_func() local
[all …]
Domap2430.c38 struct platform_device *musb; member
42 #define glue_to_musb(g) platform_get_drvdata(g->musb)
50 struct musb *musb = (void *)_musb; in musb_do_idle() local
55 spin_lock_irqsave(&musb->lock, flags); in musb_do_idle()
57 switch (musb->xceiv->state) { in musb_do_idle()
60 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in musb_do_idle()
62 musb->xceiv->state = OTG_STATE_B_IDLE; in musb_do_idle()
63 MUSB_DEV_MODE(musb); in musb_do_idle()
65 musb->xceiv->state = OTG_STATE_A_IDLE; in musb_do_idle()
66 MUSB_HST_MODE(musb); in musb_do_idle()
[all …]
Dmusb_core.h29 struct musb;
55 #define is_peripheral_enabled(musb) ((musb)->board_mode != MUSB_HOST) argument
56 #define is_host_enabled(musb) ((musb)->board_mode != MUSB_PERIPHERAL) argument
57 #define is_otg_enabled(musb) ((musb)->board_mode == MUSB_OTG) argument
82 extern irqreturn_t musb_g_ep0_irq(struct musb *);
83 extern void musb_g_tx(struct musb *, u8);
84 extern void musb_g_rx(struct musb *, u8);
85 extern void musb_g_reset(struct musb *);
86 extern void musb_g_suspend(struct musb *);
87 extern void musb_g_resume(struct musb *);
[all …]
Dmusb_gadget_ep0.c27 #define next_ep0_request(musb) next_in_request(&(musb)->endpoints[0]) argument
57 struct musb *musb, in service_tx_status_request() argument
60 void __iomem *mbase = musb->mregs; in service_tx_status_request()
69 result[0] = musb->is_self_powered << USB_DEVICE_SELF_POWERED; in service_tx_status_request()
70 result[0] |= musb->may_wakeup << USB_DEVICE_REMOTE_WAKEUP; in service_tx_status_request()
71 if (musb->g.is_otg) { in service_tx_status_request()
72 result[0] |= musb->g.b_hnp_enable in service_tx_status_request()
74 result[0] |= musb->g.a_alt_hnp_support in service_tx_status_request()
76 result[0] |= musb->g.a_hnp_support in service_tx_status_request()
100 ep = &musb->endpoints[epnum].ep_in; in service_tx_status_request()
[all …]
Dmusb_gadget.c81 struct musb *musb, struct musb_ep *musb_ep) in map_dma_buffer() argument
84 struct dma_controller *dma = musb->dma_controller; in map_dma_buffer()
104 musb->controller, in map_dma_buffer()
112 dma_sync_single_for_device(musb->controller, in map_dma_buffer()
124 struct musb *musb) in unmap_dma_buffer() argument
130 dev_vdbg(musb->controller, in unmap_dma_buffer()
135 dma_unmap_single(musb->controller, in unmap_dma_buffer()
143 dma_sync_single_for_cpu(musb->controller, in unmap_dma_buffer()
154 struct musb *musb, struct musb_ep *musb_ep) in map_dma_buffer() argument
159 struct musb *musb) in unmap_dma_buffer() argument
[all …]
Dam35x.c79 struct platform_device *musb; member
83 #define glue_to_musb(g) platform_get_drvdata(g->musb)
89 static void am35x_musb_enable(struct musb *musb) in am35x_musb_enable() argument
91 static int am35x_musb_enable(struct musb *musb) in am35x_musb_enable()
94 void __iomem *reg_base = musb->ctrl_base; in am35x_musb_enable()
98 epmask = ((musb->epmask & AM35X_TX_EP_MASK) << AM35X_INTR_TX_SHIFT) | in am35x_musb_enable()
99 ((musb->epmask & AM35X_RX_EP_MASK) << AM35X_INTR_RX_SHIFT); in am35x_musb_enable()
105 if (is_otg_enabled(musb)) in am35x_musb_enable()
116 static void am35x_musb_disable(struct musb *musb) in am35x_musb_disable() argument
118 void __iomem *reg_base = musb->ctrl_base; in am35x_musb_disable()
[all …]
Dmusb_dsps.c136 struct platform_device *musb; /* child musb pdev */ member
145 static void dsps_musb_enable(struct musb *musb) in dsps_musb_enable() argument
147 static int dsps_musb_enable(struct musb *musb) in dsps_musb_enable()
151 struct device *dev = musb->controller; in dsps_musb_enable()
158 void __iomem *reg_base = musb->ctrl_base; in dsps_musb_enable()
162 epmask = ((musb->epmask & wrp->txep_mask) << wrp->txep_shift) | in dsps_musb_enable()
163 ((musb->epmask & wrp->rxep_mask) << wrp->rxep_shift); in dsps_musb_enable()
170 if (is_otg_enabled(musb)) in dsps_musb_enable()
181 static void dsps_musb_disable(struct musb *musb) in dsps_musb_disable() argument
184 struct device *dev = musb->controller; in dsps_musb_disable()
[all …]
Dmusb_host.c82 static void musb_ep_program(struct musb *musb, u8 epnum,
91 struct musb *musb = ep->musb; in musb_h_tx_flush_fifo() local
100 dev_dbg(musb->controller, "Host TX FIFONOTEMPTY csr: %02x\n", csr); in musb_h_tx_flush_fifo()
188 musb_start_urb(struct musb *musb, int is_in, struct musb_qh *qh) in musb_start_urb() argument
192 void __iomem *mbase = musb->mregs; in musb_start_urb()
210 musb->ep0_stage = MUSB_EP0_START; in musb_start_urb()
228 dev_dbg(musb->controller, "qh %p urb %p dev%d ep%d%s%s, hw_ep %d, %p/%d\n", in musb_start_urb()
243 musb_ep_program(musb, epnum, urb, !is_in, buf, offset, len); in musb_start_urb()
255 dev_dbg(musb->controller, "check whether there's still time for periodic Tx\n"); in musb_start_urb()
272 dev_dbg(musb->controller, "SOF for %d\n", epnum); in musb_start_urb()
[all …]
Dpic32.c52 static void pic32_musb_disable(struct musb *musb) in pic32_musb_disable() argument
57 static int pic32_musb_enable(struct musb *musb) in pic32_musb_enable() argument
60 musb_writeb(musb->mregs, MUSB_SOFTRST, MUSB_SOFTRST_NRSTX); in pic32_musb_enable()
62 musb_platform_set_mode(musb, musb->board_mode); in pic32_musb_enable()
69 struct musb *musb = hci; in pic32_interrupt() local
74 musb->int_usb = musb_readb(musb->mregs, MUSB_INTRUSB); in pic32_interrupt()
75 if (musb->int_usb) in pic32_interrupt()
76 musb_writeb(musb->mregs, MUSB_INTRUSB, musb->int_usb); in pic32_interrupt()
79 musb->int_rx = musb_readw(musb->mregs, MUSB_INTRRX) & PIC32_RX_EP_MASK; in pic32_interrupt()
80 if (musb->int_rx) in pic32_interrupt()
[all …]
Dsunxi.c197 struct musb *musb = __hci; in sunxi_musb_interrupt() local
201 musb->int_usb = musb_readb(musb->mregs, MUSB_INTRUSB); in sunxi_musb_interrupt()
202 last_int_usb = musb->int_usb; in sunxi_musb_interrupt()
203 if (musb->int_usb) in sunxi_musb_interrupt()
204 musb_writeb(musb->mregs, MUSB_INTRUSB, musb->int_usb); in sunxi_musb_interrupt()
205 musb->int_tx = musb_readw(musb->mregs, MUSB_INTRTX); in sunxi_musb_interrupt()
206 if (musb->int_tx) in sunxi_musb_interrupt()
207 musb_writew(musb->mregs, MUSB_INTRTX, musb->int_tx); in sunxi_musb_interrupt()
208 musb->int_rx = musb_readw(musb->mregs, MUSB_INTRRX); in sunxi_musb_interrupt()
209 if (musb->int_rx) in sunxi_musb_interrupt()
[all …]
Dmusb_gadget.h31 struct musb *musb; member
55 struct musb *musb; member
90 extern void musb_g_tx(struct musb *musb, u8 epnum);
91 extern void musb_g_rx(struct musb *musb, u8 epnum);
95 extern int musb_gadget_setup(struct musb *);
96 extern void musb_gadget_cleanup(struct musb *);
100 extern void musb_ep_restart(struct musb *, struct musb_request *);
Dmusb_debug.h21 int musb_init_debugfs(struct musb *musb);
22 void musb_exit_debugfs(struct musb *musb);
24 static inline int musb_init_debugfs(struct musb *musb) in musb_init_debugfs() argument
28 static inline void musb_exit_debugfs(struct musb *musb) in musb_exit_debugfs() argument
Dmusb_host.h16 static inline struct usb_hcd *musb_to_hcd(struct musb *musb) in musb_to_hcd() argument
18 return container_of((void *) musb, struct usb_hcd, hcd_priv); in musb_to_hcd()
21 static inline struct musb *hcd_to_musb(struct usb_hcd *hcd) in hcd_to_musb()
23 return (struct musb *) (hcd->hcd_priv); in hcd_to_musb()
63 extern void musb_root_disconnect(struct musb *musb);
Dmusb_dma.h142 extern void musb_dma_completion(struct musb *musb, u8 epnum, u8 transmit);
146 dma_controller_create(struct musb *, void __iomem *);
Dmusb_uboot.h16 struct musb *host;
DMakefile13 obj-$(CONFIG_USB_MUSB_TI) += ti-musb.o
Dmusb_uboot.c65 struct musb *host = hcd->hcd_priv; in submit_urb()
371 static struct musb *gadget;
425 struct musb **musbp; in musb_register()
/external/u-boot/drivers/usb/
DKconfig54 source "drivers/usb/musb/Kconfig"
56 source "drivers/usb/musb-new/Kconfig"
/external/u-boot/doc/uImage.FIT/
Dbeaglebone_vboot.txt560 [ 2.589651] musb-hdrc musb-hdrc.0.auto: Failed to request rx1.
561 [ 2.595830] musb-hdrc musb-hdrc.0.auto: musb_init_controller failed with status -517
562 [ 2.606470] musb-hdrc musb-hdrc.1.auto: Failed to request rx1.
563 [ 2.612723] musb-hdrc musb-hdrc.1.auto: musb_init_controller failed with status -517
/external/u-boot/arch/arm/dts/
Dam3517.dtsi21 compatible = "ti,omap3-musb";
Dsun8i-a23.dtsi81 compatible = "allwinner,sun6i-a31-musb";
Dam335x-draco.dtsi43 musb: usb@47400000 { label
Ddm816x.dtsi415 compatible = "ti,musb-dm816";
455 compatible = "ti,musb-dm816";
/external/u-boot/drivers/
DMakefile42 obj-$(CONFIG_SPL_MUSB_NEW_SUPPORT) += usb/musb-new/
/external/u-boot/arch/mips/dts/
Dpic32mzda.dtsi174 usb: musb@1f8e3000 {

12