Lines Matching +full:usb +full:- +full:dmac
1 // SPDX-License-Identifier: GPL-2.0
5 * (c) 2007 MSC Vertriebsges.m.b.H, Manuel Lauss <mlau@msc-ge.com>
17 * from USB-SRAM/Audio units to main memory (and also the LCDC; but that
20 * from the traditional SH DMAC (although it blocks usage of DMAC 0)
23 * -----------------------------------------------------
24 * 0 | USB-DMA | ... | xfer done | DMABRGI1
25 * 1 | USB-UAE | ... | USB addr err.| DMABRGI0
38 * DMABRGI0 services USB DMA Address errors, but it still must be
39 * enabled/acked in the DMABRGCR register. USB-DMA complete indicator
42 * DMABRGCR: Bits 31-24: audio-dma ENABLE flags,
43 * Bits 23-16: audio-dma STATUS flags,
44 * Bits 9-8: USB error/xfer ENABLE,
45 * Bits 1-0: USB error/xfer STATUS.
93 /* USB stuff, get it out of the way first */ in dmabrg_irq()
103 dcr &= dcr - 1; in dmabrg_irq()
129 return -ENOENT; in dmabrg_request_irq()
131 return -EBUSY; in dmabrg_request_irq()
159 return -ENOMEM; in dmabrg_init()
162 /* request DMAC channel 0 before anyone else can get it */ in dmabrg_init()
163 ret = request_dma(0, "DMAC 0 (DMABRG)"); in dmabrg_init()
165 printk(KERN_INFO "DMABRG: DMAC ch0 not reserved!\n"); in dmabrg_init()
170 __raw_writel(0x94000000, DMARSRA); /* enable DMABRG in DMAC 0 */ in dmabrg_init()
172 /* enable DMABRG mode, enable the DMAC */ in dmabrg_init()
177 "DMABRG USB address error", NULL); in dmabrg_init()