1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2018-2019 Synopsys, Inc. and/or its affiliates.
4 * Synopsys DesignWare eDMA core driver
6 * Author: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
9 #include <linux/module.h>
10 #include <linux/device.h>
11 #include <linux/kernel.h>
12 #include <linux/pm_runtime.h>
13 #include <linux/dmaengine.h>
14 #include <linux/err.h>
15 #include <linux/interrupt.h>
16 #include <linux/dma/edma.h>
17 #include <linux/pci.h>
19 #include "dw-edma-core.h"
20 #include "dw-edma-v0-core.h"
21 #include "../dmaengine.h"
22 #include "../virt-dma.h"
25 struct device *dchan2dev(struct dma_chan *dchan)
27 return &dchan->dev->device;
31 struct device *chan2dev(struct dw_edma_chan *chan)
33 return &chan->vc.chan.dev->device;
37 struct dw_edma_desc *vd2dw_edma_desc(struct virt_dma_desc *vd)
39 return container_of(vd, struct dw_edma_desc, vd);
42 static struct dw_edma_burst *dw_edma_alloc_burst(struct dw_edma_chunk *chunk)
44 struct dw_edma_burst *burst;
46 burst = kzalloc(sizeof(*burst), GFP_NOWAIT);
50 INIT_LIST_HEAD(&burst->list);
52 /* Create and add new element into the linked list */
53 chunk->bursts_alloc++;
54 list_add_tail(&burst->list, &chunk->burst->list);
57 chunk->bursts_alloc = 0;
64 static struct dw_edma_chunk *dw_edma_alloc_chunk(struct dw_edma_desc *desc)
66 struct dw_edma_chan *chan = desc->chan;
67 struct dw_edma *dw = chan->chip->dw;
68 struct dw_edma_chunk *chunk;
70 chunk = kzalloc(sizeof(*chunk), GFP_NOWAIT);
74 INIT_LIST_HEAD(&chunk->list);
76 /* Toggling change bit (CB) in each chunk, this is a mechanism to
77 * inform the eDMA HW block that this is a new linked list ready
79 * - Odd chunks originate CB equal to 0
80 * - Even chunks originate CB equal to 1
82 chunk->cb = !(desc->chunks_alloc % 2);
83 chunk->ll_region.paddr = dw->ll_region.paddr + chan->ll_off;
84 chunk->ll_region.vaddr = dw->ll_region.vaddr + chan->ll_off;
87 /* Create and add new element into the linked list */
89 list_add_tail(&chunk->list, &desc->chunk->list);
90 if (!dw_edma_alloc_burst(chunk)) {
97 desc->chunks_alloc = 0;
104 static struct dw_edma_desc *dw_edma_alloc_desc(struct dw_edma_chan *chan)
106 struct dw_edma_desc *desc;
108 desc = kzalloc(sizeof(*desc), GFP_NOWAIT);
113 if (!dw_edma_alloc_chunk(desc)) {
121 static void dw_edma_free_burst(struct dw_edma_chunk *chunk)
123 struct dw_edma_burst *child, *_next;
125 /* Remove all the list elements */
126 list_for_each_entry_safe(child, _next, &chunk->burst->list, list) {
127 list_del(&child->list);
129 chunk->bursts_alloc--;
132 /* Remove the list head */
137 static void dw_edma_free_chunk(struct dw_edma_desc *desc)
139 struct dw_edma_chunk *child, *_next;
144 /* Remove all the list elements */
145 list_for_each_entry_safe(child, _next, &desc->chunk->list, list) {
146 dw_edma_free_burst(child);
147 list_del(&child->list);
149 desc->chunks_alloc--;
152 /* Remove the list head */
157 static void dw_edma_free_desc(struct dw_edma_desc *desc)
159 dw_edma_free_chunk(desc);
163 static void vchan_free_desc(struct virt_dma_desc *vdesc)
165 dw_edma_free_desc(vd2dw_edma_desc(vdesc));
168 static void dw_edma_start_transfer(struct dw_edma_chan *chan)
170 struct dw_edma_chunk *child;
171 struct dw_edma_desc *desc;
172 struct virt_dma_desc *vd;
174 vd = vchan_next_desc(&chan->vc);
178 desc = vd2dw_edma_desc(vd);
182 child = list_first_entry_or_null(&desc->chunk->list,
183 struct dw_edma_chunk, list);
187 dw_edma_v0_core_start(child, !desc->xfer_sz);
188 desc->xfer_sz += child->ll_region.sz;
189 dw_edma_free_burst(child);
190 list_del(&child->list);
192 desc->chunks_alloc--;
195 static int dw_edma_device_config(struct dma_chan *dchan,
196 struct dma_slave_config *config)
198 struct dw_edma_chan *chan = dchan2dw_edma_chan(dchan);
200 memcpy(&chan->config, config, sizeof(*config));
201 chan->configured = true;
206 static int dw_edma_device_pause(struct dma_chan *dchan)
208 struct dw_edma_chan *chan = dchan2dw_edma_chan(dchan);
211 if (!chan->configured)
213 else if (chan->status != EDMA_ST_BUSY)
215 else if (chan->request != EDMA_REQ_NONE)
218 chan->request = EDMA_REQ_PAUSE;
223 static int dw_edma_device_resume(struct dma_chan *dchan)
225 struct dw_edma_chan *chan = dchan2dw_edma_chan(dchan);
228 if (!chan->configured) {
230 } else if (chan->status != EDMA_ST_PAUSE) {
232 } else if (chan->request != EDMA_REQ_NONE) {
235 chan->status = EDMA_ST_BUSY;
236 dw_edma_start_transfer(chan);
242 static int dw_edma_device_terminate_all(struct dma_chan *dchan)
244 struct dw_edma_chan *chan = dchan2dw_edma_chan(dchan);
248 if (!chan->configured) {
250 } else if (chan->status == EDMA_ST_PAUSE) {
251 chan->status = EDMA_ST_IDLE;
252 chan->configured = false;
253 } else if (chan->status == EDMA_ST_IDLE) {
254 chan->configured = false;
255 } else if (dw_edma_v0_core_ch_status(chan) == DMA_COMPLETE) {
257 * The channel is in a false BUSY state, probably didn't
258 * receive or lost an interrupt
260 chan->status = EDMA_ST_IDLE;
261 chan->configured = false;
262 } else if (chan->request > EDMA_REQ_PAUSE) {
265 chan->request = EDMA_REQ_STOP;
271 static void dw_edma_device_issue_pending(struct dma_chan *dchan)
273 struct dw_edma_chan *chan = dchan2dw_edma_chan(dchan);
276 spin_lock_irqsave(&chan->vc.lock, flags);
277 if (chan->configured && chan->request == EDMA_REQ_NONE &&
278 chan->status == EDMA_ST_IDLE && vchan_issue_pending(&chan->vc)) {
279 chan->status = EDMA_ST_BUSY;
280 dw_edma_start_transfer(chan);
282 spin_unlock_irqrestore(&chan->vc.lock, flags);
285 static enum dma_status
286 dw_edma_device_tx_status(struct dma_chan *dchan, dma_cookie_t cookie,
287 struct dma_tx_state *txstate)
289 struct dw_edma_chan *chan = dchan2dw_edma_chan(dchan);
290 struct dw_edma_desc *desc;
291 struct virt_dma_desc *vd;
296 ret = dma_cookie_status(dchan, cookie, txstate);
297 if (ret == DMA_COMPLETE)
300 if (ret == DMA_IN_PROGRESS && chan->status == EDMA_ST_PAUSE)
306 spin_lock_irqsave(&chan->vc.lock, flags);
307 vd = vchan_find_desc(&chan->vc, cookie);
309 desc = vd2dw_edma_desc(vd);
311 residue = desc->alloc_sz - desc->xfer_sz;
313 spin_unlock_irqrestore(&chan->vc.lock, flags);
316 dma_set_residue(txstate, residue);
321 static struct dma_async_tx_descriptor *
322 dw_edma_device_transfer(struct dw_edma_transfer *xfer)
324 struct dw_edma_chan *chan = dchan2dw_edma_chan(xfer->dchan);
325 enum dma_transfer_direction direction = xfer->direction;
326 phys_addr_t src_addr, dst_addr;
327 struct scatterlist *sg = NULL;
328 struct dw_edma_chunk *chunk;
329 struct dw_edma_burst *burst;
330 struct dw_edma_desc *desc;
334 if ((direction == DMA_MEM_TO_DEV && chan->dir == EDMA_DIR_WRITE) ||
335 (direction == DMA_DEV_TO_MEM && chan->dir == EDMA_DIR_READ))
339 if (!xfer->xfer.cyclic.len || !xfer->xfer.cyclic.cnt)
342 if (xfer->xfer.sg.len < 1)
346 if (!chan->configured)
349 desc = dw_edma_alloc_desc(chan);
353 chunk = dw_edma_alloc_chunk(desc);
354 if (unlikely(!chunk))
357 src_addr = chan->config.src_addr;
358 dst_addr = chan->config.dst_addr;
361 cnt = xfer->xfer.cyclic.cnt;
363 cnt = xfer->xfer.sg.len;
364 sg = xfer->xfer.sg.sgl;
367 for (i = 0; i < cnt; i++) {
368 if (!xfer->cyclic && !sg)
371 if (chunk->bursts_alloc == chan->ll_max) {
372 chunk = dw_edma_alloc_chunk(desc);
373 if (unlikely(!chunk))
377 burst = dw_edma_alloc_burst(chunk);
378 if (unlikely(!burst))
382 burst->sz = xfer->xfer.cyclic.len;
384 burst->sz = sg_dma_len(sg);
386 chunk->ll_region.sz += burst->sz;
387 desc->alloc_sz += burst->sz;
389 if (direction == DMA_DEV_TO_MEM) {
390 burst->sar = src_addr;
392 burst->dar = xfer->xfer.cyclic.paddr;
394 burst->dar = sg_dma_address(sg);
395 /* Unlike the typical assumption by other
396 * drivers/IPs the peripheral memory isn't
397 * a FIFO memory, in this case, it's a
398 * linear memory and that why the source
399 * and destination addresses are increased
400 * by the same portion (data length)
402 src_addr += sg_dma_len(sg);
405 burst->dar = dst_addr;
407 burst->sar = xfer->xfer.cyclic.paddr;
409 burst->sar = sg_dma_address(sg);
410 /* Unlike the typical assumption by other
411 * drivers/IPs the peripheral memory isn't
412 * a FIFO memory, in this case, it's a
413 * linear memory and that why the source
414 * and destination addresses are increased
415 * by the same portion (data length)
417 dst_addr += sg_dma_len(sg);
425 return vchan_tx_prep(&chan->vc, &desc->vd, xfer->flags);
429 dw_edma_free_desc(desc);
434 static struct dma_async_tx_descriptor *
435 dw_edma_device_prep_slave_sg(struct dma_chan *dchan, struct scatterlist *sgl,
437 enum dma_transfer_direction direction,
438 unsigned long flags, void *context)
440 struct dw_edma_transfer xfer;
443 xfer.direction = direction;
444 xfer.xfer.sg.sgl = sgl;
445 xfer.xfer.sg.len = len;
449 return dw_edma_device_transfer(&xfer);
452 static struct dma_async_tx_descriptor *
453 dw_edma_device_prep_dma_cyclic(struct dma_chan *dchan, dma_addr_t paddr,
454 size_t len, size_t count,
455 enum dma_transfer_direction direction,
458 struct dw_edma_transfer xfer;
461 xfer.direction = direction;
462 xfer.xfer.cyclic.paddr = paddr;
463 xfer.xfer.cyclic.len = len;
464 xfer.xfer.cyclic.cnt = count;
468 return dw_edma_device_transfer(&xfer);
471 static void dw_edma_done_interrupt(struct dw_edma_chan *chan)
473 struct dw_edma_desc *desc;
474 struct virt_dma_desc *vd;
477 dw_edma_v0_core_clear_done_int(chan);
479 spin_lock_irqsave(&chan->vc.lock, flags);
480 vd = vchan_next_desc(&chan->vc);
482 switch (chan->request) {
484 desc = vd2dw_edma_desc(vd);
485 if (desc->chunks_alloc) {
486 chan->status = EDMA_ST_BUSY;
487 dw_edma_start_transfer(chan);
490 vchan_cookie_complete(vd);
491 chan->status = EDMA_ST_IDLE;
497 vchan_cookie_complete(vd);
498 chan->request = EDMA_REQ_NONE;
499 chan->status = EDMA_ST_IDLE;
503 chan->request = EDMA_REQ_NONE;
504 chan->status = EDMA_ST_PAUSE;
511 spin_unlock_irqrestore(&chan->vc.lock, flags);
514 static void dw_edma_abort_interrupt(struct dw_edma_chan *chan)
516 struct virt_dma_desc *vd;
519 dw_edma_v0_core_clear_abort_int(chan);
521 spin_lock_irqsave(&chan->vc.lock, flags);
522 vd = vchan_next_desc(&chan->vc);
525 vchan_cookie_complete(vd);
527 spin_unlock_irqrestore(&chan->vc.lock, flags);
528 chan->request = EDMA_REQ_NONE;
529 chan->status = EDMA_ST_IDLE;
532 static irqreturn_t dw_edma_interrupt(int irq, void *data, bool write)
534 struct dw_edma_irq *dw_irq = data;
535 struct dw_edma *dw = dw_irq->dw;
536 unsigned long total, pos, val;
541 total = dw->wr_ch_cnt;
543 mask = dw_irq->wr_mask;
545 total = dw->rd_ch_cnt;
547 mask = dw_irq->rd_mask;
550 val = dw_edma_v0_core_status_done_int(dw, write ?
554 for_each_set_bit(pos, &val, total) {
555 struct dw_edma_chan *chan = &dw->chan[pos + off];
557 dw_edma_done_interrupt(chan);
560 val = dw_edma_v0_core_status_abort_int(dw, write ?
564 for_each_set_bit(pos, &val, total) {
565 struct dw_edma_chan *chan = &dw->chan[pos + off];
567 dw_edma_abort_interrupt(chan);
573 static inline irqreturn_t dw_edma_interrupt_write(int irq, void *data)
575 return dw_edma_interrupt(irq, data, true);
578 static inline irqreturn_t dw_edma_interrupt_read(int irq, void *data)
580 return dw_edma_interrupt(irq, data, false);
583 static irqreturn_t dw_edma_interrupt_common(int irq, void *data)
585 dw_edma_interrupt(irq, data, true);
586 dw_edma_interrupt(irq, data, false);
591 static int dw_edma_alloc_chan_resources(struct dma_chan *dchan)
593 struct dw_edma_chan *chan = dchan2dw_edma_chan(dchan);
595 if (chan->status != EDMA_ST_IDLE)
598 pm_runtime_get(chan->chip->dev);
603 static void dw_edma_free_chan_resources(struct dma_chan *dchan)
605 unsigned long timeout = jiffies + msecs_to_jiffies(5000);
606 struct dw_edma_chan *chan = dchan2dw_edma_chan(dchan);
609 while (time_before(jiffies, timeout)) {
610 ret = dw_edma_device_terminate_all(dchan);
614 if (time_after_eq(jiffies, timeout))
620 pm_runtime_put(chan->chip->dev);
623 static int dw_edma_channel_setup(struct dw_edma_chip *chip, bool write,
624 u32 wr_alloc, u32 rd_alloc)
626 struct dw_edma_region *dt_region;
627 struct device *dev = chip->dev;
628 struct dw_edma *dw = chip->dw;
629 struct dw_edma_chan *chan;
630 size_t ll_chunk, dt_chunk;
631 struct dw_edma_irq *irq;
632 struct dma_device *dma;
633 u32 i, j, cnt, ch_cnt;
634 u32 alloc, off_alloc;
638 ch_cnt = dw->wr_ch_cnt + dw->rd_ch_cnt;
639 ll_chunk = dw->ll_region.sz;
640 dt_chunk = dw->dt_region.sz;
642 /* Calculate linked list chunk for each channel */
643 ll_chunk /= roundup_pow_of_two(ch_cnt);
645 /* Calculate linked list chunk for each channel */
646 dt_chunk /= roundup_pow_of_two(ch_cnt);
659 off_alloc = wr_alloc;
662 INIT_LIST_HEAD(&dma->channels);
663 for (j = 0; (alloc || dw->nr_irqs == 1) && j < cnt; j++, i++) {
666 dt_region = devm_kzalloc(dev, sizeof(*dt_region), GFP_KERNEL);
670 chan->vc.chan.private = dt_region;
674 chan->dir = write ? EDMA_DIR_WRITE : EDMA_DIR_READ;
675 chan->configured = false;
676 chan->request = EDMA_REQ_NONE;
677 chan->status = EDMA_ST_IDLE;
679 chan->ll_off = (ll_chunk * i);
680 chan->ll_max = (ll_chunk / EDMA_LL_SZ) - 1;
682 chan->dt_off = (dt_chunk * i);
684 dev_vdbg(dev, "L. List:\tChannel %s[%u] off=0x%.8lx, max_cnt=%u\n",
685 write ? "write" : "read", j,
686 chan->ll_off, chan->ll_max);
688 if (dw->nr_irqs == 1)
691 pos = off_alloc + (j % alloc);
696 irq->wr_mask |= BIT(j);
698 irq->rd_mask |= BIT(j);
701 memcpy(&chan->msi, &irq->msi, sizeof(chan->msi));
703 dev_vdbg(dev, "MSI:\t\tChannel %s[%u] addr=0x%.8x%.8x, data=0x%.8x\n",
704 write ? "write" : "read", j,
705 chan->msi.address_hi, chan->msi.address_lo,
708 chan->vc.desc_free = vchan_free_desc;
709 vchan_init(&chan->vc, dma);
711 dt_region->paddr = dw->dt_region.paddr + chan->dt_off;
712 dt_region->vaddr = dw->dt_region.vaddr + chan->dt_off;
713 dt_region->sz = dt_chunk;
715 dev_vdbg(dev, "Data:\tChannel %s[%u] off=0x%.8lx\n",
716 write ? "write" : "read", j, chan->dt_off);
718 dw_edma_v0_core_device_config(chan);
721 /* Set DMA channel capabilities */
722 dma_cap_zero(dma->cap_mask);
723 dma_cap_set(DMA_SLAVE, dma->cap_mask);
724 dma_cap_set(DMA_CYCLIC, dma->cap_mask);
725 dma_cap_set(DMA_PRIVATE, dma->cap_mask);
726 dma->directions = BIT(write ? DMA_DEV_TO_MEM : DMA_MEM_TO_DEV);
727 dma->src_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_4_BYTES);
728 dma->dst_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_4_BYTES);
729 dma->residue_granularity = DMA_RESIDUE_GRANULARITY_DESCRIPTOR;
732 /* Set DMA channel callbacks */
733 dma->dev = chip->dev;
734 dma->device_alloc_chan_resources = dw_edma_alloc_chan_resources;
735 dma->device_free_chan_resources = dw_edma_free_chan_resources;
736 dma->device_config = dw_edma_device_config;
737 dma->device_pause = dw_edma_device_pause;
738 dma->device_resume = dw_edma_device_resume;
739 dma->device_terminate_all = dw_edma_device_terminate_all;
740 dma->device_issue_pending = dw_edma_device_issue_pending;
741 dma->device_tx_status = dw_edma_device_tx_status;
742 dma->device_prep_slave_sg = dw_edma_device_prep_slave_sg;
743 dma->device_prep_dma_cyclic = dw_edma_device_prep_dma_cyclic;
745 dma_set_max_seg_size(dma->dev, U32_MAX);
747 /* Register DMA device */
748 err = dma_async_device_register(dma);
753 static inline void dw_edma_dec_irq_alloc(int *nr_irqs, u32 *alloc, u16 cnt)
755 if (*nr_irqs && *alloc < cnt) {
761 static inline void dw_edma_add_irq_mask(u32 *mask, u32 alloc, u16 cnt)
763 while (*mask * alloc < cnt)
767 static int dw_edma_irq_request(struct dw_edma_chip *chip,
768 u32 *wr_alloc, u32 *rd_alloc)
770 struct device *dev = chip->dev;
771 struct dw_edma *dw = chip->dw;
777 ch_cnt = dw->wr_ch_cnt + dw->rd_ch_cnt;
782 if (dw->nr_irqs == 1) {
783 /* Common IRQ shared among all channels */
784 err = request_irq(pci_irq_vector(to_pci_dev(dev), 0),
785 dw_edma_interrupt_common,
786 IRQF_SHARED, dw->name, &dw->irq[0]);
792 get_cached_msi_msg(pci_irq_vector(to_pci_dev(dev), 0),
795 /* Distribute IRQs equally among all channels */
796 int tmp = dw->nr_irqs;
798 while (tmp && (*wr_alloc + *rd_alloc) < ch_cnt) {
799 dw_edma_dec_irq_alloc(&tmp, wr_alloc, dw->wr_ch_cnt);
800 dw_edma_dec_irq_alloc(&tmp, rd_alloc, dw->rd_ch_cnt);
803 dw_edma_add_irq_mask(&wr_mask, *wr_alloc, dw->wr_ch_cnt);
804 dw_edma_add_irq_mask(&rd_mask, *rd_alloc, dw->rd_ch_cnt);
806 for (i = 0; i < (*wr_alloc + *rd_alloc); i++) {
807 err = request_irq(pci_irq_vector(to_pci_dev(dev), i),
809 dw_edma_interrupt_write :
810 dw_edma_interrupt_read,
811 IRQF_SHARED, dw->name,
818 get_cached_msi_msg(pci_irq_vector(to_pci_dev(dev), i),
828 int dw_edma_probe(struct dw_edma_chip *chip)
830 struct device *dev = chip->dev;
831 struct dw_edma *dw = chip->dw;
836 raw_spin_lock_init(&dw->lock);
838 /* Find out how many write channels are supported by hardware */
839 dw->wr_ch_cnt = dw_edma_v0_core_ch_count(dw, EDMA_DIR_WRITE);
843 /* Find out how many read channels are supported by hardware */
844 dw->rd_ch_cnt = dw_edma_v0_core_ch_count(dw, EDMA_DIR_READ);
848 dev_vdbg(dev, "Channels:\twrite=%d, read=%d\n",
849 dw->wr_ch_cnt, dw->rd_ch_cnt);
851 /* Allocate channels */
852 dw->chan = devm_kcalloc(dev, dw->wr_ch_cnt + dw->rd_ch_cnt,
853 sizeof(*dw->chan), GFP_KERNEL);
857 snprintf(dw->name, sizeof(dw->name), "dw-edma-core:%d", chip->id);
859 /* Disable eDMA, only to establish the ideal initial conditions */
860 dw_edma_v0_core_off(dw);
863 err = dw_edma_irq_request(chip, &wr_alloc, &rd_alloc);
867 /* Setup write channels */
868 err = dw_edma_channel_setup(chip, true, wr_alloc, rd_alloc);
872 /* Setup read channels */
873 err = dw_edma_channel_setup(chip, false, wr_alloc, rd_alloc);
877 /* Power management */
878 pm_runtime_enable(dev);
880 /* Turn debugfs on */
881 dw_edma_v0_core_debugfs_on(chip);
886 for (i = (dw->nr_irqs - 1); i >= 0; i--)
887 free_irq(pci_irq_vector(to_pci_dev(dev), i), &dw->irq[i]);
893 EXPORT_SYMBOL_GPL(dw_edma_probe);
895 int dw_edma_remove(struct dw_edma_chip *chip)
897 struct dw_edma_chan *chan, *_chan;
898 struct device *dev = chip->dev;
899 struct dw_edma *dw = chip->dw;
903 dw_edma_v0_core_off(dw);
906 for (i = (dw->nr_irqs - 1); i >= 0; i--)
907 free_irq(pci_irq_vector(to_pci_dev(dev), i), &dw->irq[i]);
909 /* Power management */
910 pm_runtime_disable(dev);
912 list_for_each_entry_safe(chan, _chan, &dw->wr_edma.channels,
913 vc.chan.device_node) {
914 list_del(&chan->vc.chan.device_node);
915 tasklet_kill(&chan->vc.task);
918 list_for_each_entry_safe(chan, _chan, &dw->rd_edma.channels,
919 vc.chan.device_node) {
920 list_del(&chan->vc.chan.device_node);
921 tasklet_kill(&chan->vc.task);
924 /* Deregister eDMA device */
925 dma_async_device_unregister(&dw->wr_edma);
926 dma_async_device_unregister(&dw->rd_edma);
928 /* Turn debugfs off */
929 dw_edma_v0_core_debugfs_off();
933 EXPORT_SYMBOL_GPL(dw_edma_remove);
935 MODULE_LICENSE("GPL v2");
936 MODULE_DESCRIPTION("Synopsys DesignWare eDMA controller core driver");
937 MODULE_AUTHOR("Gustavo Pimentel <gustavo.pimentel@synopsys.com>");