1 // SPDX-License-Identifier: GPL-2.0-only
3 * Driver for the Analog Devices AXI-DMAC core
5 * Copyright 2013-2015 Analog Devices Inc.
6 * Author: Lars-Peter Clausen <lars@metafoo.de>
10 #include <linux/device.h>
11 #include <linux/dma-mapping.h>
12 #include <linux/dmaengine.h>
13 #include <linux/err.h>
14 #include <linux/interrupt.h>
16 #include <linux/kernel.h>
17 #include <linux/module.h>
19 #include <linux/of_dma.h>
20 #include <linux/platform_device.h>
21 #include <linux/slab.h>
23 #include <dt-bindings/dma/axi-dmac.h>
25 #include "dmaengine.h"
29 * The AXI-DMAC is a soft IP core that is used in FPGA designs. The core has
30 * various instantiation parameters which decided the exact feature set support
33 * Each channel of the core has a source interface and a destination interface.
34 * The number of channels and the type of the channel interfaces is selected at
35 * configuration time. A interface can either be a connected to a central memory
36 * interconnect, which allows access to system memory, or it can be connected to
37 * a dedicated bus which is directly connected to a data port on a peripheral.
38 * Given that those are configuration options of the core that are selected when
39 * it is instantiated this means that they can not be changed by software at
40 * runtime. By extension this means that each channel is uni-directional. It can
41 * either be device to memory or memory to device, but not both. Also since the
42 * device side is a dedicated data bus only connected to a single peripheral
43 * there is no address than can or needs to be configured for the device side.
46 #define AXI_DMAC_REG_IRQ_MASK 0x80
47 #define AXI_DMAC_REG_IRQ_PENDING 0x84
48 #define AXI_DMAC_REG_IRQ_SOURCE 0x88
50 #define AXI_DMAC_REG_CTRL 0x400
51 #define AXI_DMAC_REG_TRANSFER_ID 0x404
52 #define AXI_DMAC_REG_START_TRANSFER 0x408
53 #define AXI_DMAC_REG_FLAGS 0x40c
54 #define AXI_DMAC_REG_DEST_ADDRESS 0x410
55 #define AXI_DMAC_REG_SRC_ADDRESS 0x414
56 #define AXI_DMAC_REG_X_LENGTH 0x418
57 #define AXI_DMAC_REG_Y_LENGTH 0x41c
58 #define AXI_DMAC_REG_DEST_STRIDE 0x420
59 #define AXI_DMAC_REG_SRC_STRIDE 0x424
60 #define AXI_DMAC_REG_TRANSFER_DONE 0x428
61 #define AXI_DMAC_REG_ACTIVE_TRANSFER_ID 0x42c
62 #define AXI_DMAC_REG_STATUS 0x430
63 #define AXI_DMAC_REG_CURRENT_SRC_ADDR 0x434
64 #define AXI_DMAC_REG_CURRENT_DEST_ADDR 0x438
66 #define AXI_DMAC_CTRL_ENABLE BIT(0)
67 #define AXI_DMAC_CTRL_PAUSE BIT(1)
69 #define AXI_DMAC_IRQ_SOT BIT(0)
70 #define AXI_DMAC_IRQ_EOT BIT(1)
72 #define AXI_DMAC_FLAG_CYCLIC BIT(0)
74 /* The maximum ID allocated by the hardware is 31 */
75 #define AXI_DMAC_SG_UNUSED 32U
82 unsigned int dest_stride;
83 unsigned int src_stride;
85 bool schedule_when_free;
88 struct axi_dmac_desc {
89 struct virt_dma_desc vdesc;
92 unsigned int num_submitted;
93 unsigned int num_completed;
95 struct axi_dmac_sg sg[];
98 struct axi_dmac_chan {
99 struct virt_dma_chan vchan;
101 struct axi_dmac_desc *next_desc;
102 struct list_head active_descs;
103 enum dma_transfer_direction direction;
105 unsigned int src_width;
106 unsigned int dest_width;
107 unsigned int src_type;
108 unsigned int dest_type;
110 unsigned int max_length;
111 unsigned int align_mask;
123 struct dma_device dma_dev;
124 struct axi_dmac_chan chan;
126 struct device_dma_parameters dma_parms;
129 static struct axi_dmac *chan_to_axi_dmac(struct axi_dmac_chan *chan)
131 return container_of(chan->vchan.chan.device, struct axi_dmac,
135 static struct axi_dmac_chan *to_axi_dmac_chan(struct dma_chan *c)
137 return container_of(c, struct axi_dmac_chan, vchan.chan);
140 static struct axi_dmac_desc *to_axi_dmac_desc(struct virt_dma_desc *vdesc)
142 return container_of(vdesc, struct axi_dmac_desc, vdesc);
145 static void axi_dmac_write(struct axi_dmac *axi_dmac, unsigned int reg,
148 writel(val, axi_dmac->base + reg);
151 static int axi_dmac_read(struct axi_dmac *axi_dmac, unsigned int reg)
153 return readl(axi_dmac->base + reg);
156 static int axi_dmac_src_is_mem(struct axi_dmac_chan *chan)
158 return chan->src_type == AXI_DMAC_BUS_TYPE_AXI_MM;
161 static int axi_dmac_dest_is_mem(struct axi_dmac_chan *chan)
163 return chan->dest_type == AXI_DMAC_BUS_TYPE_AXI_MM;
166 static bool axi_dmac_check_len(struct axi_dmac_chan *chan, unsigned int len)
170 if ((len & chan->align_mask) != 0) /* Not aligned */
175 static bool axi_dmac_check_addr(struct axi_dmac_chan *chan, dma_addr_t addr)
177 if ((addr & chan->align_mask) != 0) /* Not aligned */
182 static void axi_dmac_start_transfer(struct axi_dmac_chan *chan)
184 struct axi_dmac *dmac = chan_to_axi_dmac(chan);
185 struct virt_dma_desc *vdesc;
186 struct axi_dmac_desc *desc;
187 struct axi_dmac_sg *sg;
188 unsigned int flags = 0;
191 val = axi_dmac_read(dmac, AXI_DMAC_REG_START_TRANSFER);
192 if (val) /* Queue is full, wait for the next SOT IRQ */
195 desc = chan->next_desc;
198 vdesc = vchan_next_desc(&chan->vchan);
201 list_move_tail(&vdesc->node, &chan->active_descs);
202 desc = to_axi_dmac_desc(vdesc);
204 sg = &desc->sg[desc->num_submitted];
206 /* Already queued in cyclic mode. Wait for it to finish */
207 if (sg->id != AXI_DMAC_SG_UNUSED) {
208 sg->schedule_when_free = true;
212 desc->num_submitted++;
213 if (desc->num_submitted == desc->num_sgs) {
215 desc->num_submitted = 0; /* Start again */
217 chan->next_desc = NULL;
219 chan->next_desc = desc;
222 sg->id = axi_dmac_read(dmac, AXI_DMAC_REG_TRANSFER_ID);
224 if (axi_dmac_dest_is_mem(chan)) {
225 axi_dmac_write(dmac, AXI_DMAC_REG_DEST_ADDRESS, sg->dest_addr);
226 axi_dmac_write(dmac, AXI_DMAC_REG_DEST_STRIDE, sg->dest_stride);
229 if (axi_dmac_src_is_mem(chan)) {
230 axi_dmac_write(dmac, AXI_DMAC_REG_SRC_ADDRESS, sg->src_addr);
231 axi_dmac_write(dmac, AXI_DMAC_REG_SRC_STRIDE, sg->src_stride);
235 * If the hardware supports cyclic transfers and there is no callback to
236 * call and only a single segment, enable hw cyclic mode to avoid
237 * unnecessary interrupts.
239 if (chan->hw_cyclic && desc->cyclic && !desc->vdesc.tx.callback &&
241 flags |= AXI_DMAC_FLAG_CYCLIC;
243 axi_dmac_write(dmac, AXI_DMAC_REG_X_LENGTH, sg->x_len - 1);
244 axi_dmac_write(dmac, AXI_DMAC_REG_Y_LENGTH, sg->y_len - 1);
245 axi_dmac_write(dmac, AXI_DMAC_REG_FLAGS, flags);
246 axi_dmac_write(dmac, AXI_DMAC_REG_START_TRANSFER, 1);
249 static struct axi_dmac_desc *axi_dmac_active_desc(struct axi_dmac_chan *chan)
251 return list_first_entry_or_null(&chan->active_descs,
252 struct axi_dmac_desc, vdesc.node);
255 static bool axi_dmac_transfer_done(struct axi_dmac_chan *chan,
256 unsigned int completed_transfers)
258 struct axi_dmac_desc *active;
259 struct axi_dmac_sg *sg;
260 bool start_next = false;
262 active = axi_dmac_active_desc(chan);
267 sg = &active->sg[active->num_completed];
268 if (sg->id == AXI_DMAC_SG_UNUSED) /* Not yet submitted */
270 if (!(BIT(sg->id) & completed_transfers))
272 active->num_completed++;
273 sg->id = AXI_DMAC_SG_UNUSED;
274 if (sg->schedule_when_free) {
275 sg->schedule_when_free = false;
280 vchan_cyclic_callback(&active->vdesc);
282 if (active->num_completed == active->num_sgs) {
283 if (active->cyclic) {
284 active->num_completed = 0; /* wrap around */
286 list_del(&active->vdesc.node);
287 vchan_cookie_complete(&active->vdesc);
288 active = axi_dmac_active_desc(chan);
296 static irqreturn_t axi_dmac_interrupt_handler(int irq, void *devid)
298 struct axi_dmac *dmac = devid;
299 unsigned int pending;
300 bool start_next = false;
302 pending = axi_dmac_read(dmac, AXI_DMAC_REG_IRQ_PENDING);
306 axi_dmac_write(dmac, AXI_DMAC_REG_IRQ_PENDING, pending);
308 spin_lock(&dmac->chan.vchan.lock);
309 /* One or more transfers have finished */
310 if (pending & AXI_DMAC_IRQ_EOT) {
311 unsigned int completed;
313 completed = axi_dmac_read(dmac, AXI_DMAC_REG_TRANSFER_DONE);
314 start_next = axi_dmac_transfer_done(&dmac->chan, completed);
316 /* Space has become available in the descriptor queue */
317 if ((pending & AXI_DMAC_IRQ_SOT) || start_next)
318 axi_dmac_start_transfer(&dmac->chan);
319 spin_unlock(&dmac->chan.vchan.lock);
324 static int axi_dmac_terminate_all(struct dma_chan *c)
326 struct axi_dmac_chan *chan = to_axi_dmac_chan(c);
327 struct axi_dmac *dmac = chan_to_axi_dmac(chan);
331 spin_lock_irqsave(&chan->vchan.lock, flags);
332 axi_dmac_write(dmac, AXI_DMAC_REG_CTRL, 0);
333 chan->next_desc = NULL;
334 vchan_get_all_descriptors(&chan->vchan, &head);
335 list_splice_tail_init(&chan->active_descs, &head);
336 spin_unlock_irqrestore(&chan->vchan.lock, flags);
338 vchan_dma_desc_free_list(&chan->vchan, &head);
343 static void axi_dmac_synchronize(struct dma_chan *c)
345 struct axi_dmac_chan *chan = to_axi_dmac_chan(c);
347 vchan_synchronize(&chan->vchan);
350 static void axi_dmac_issue_pending(struct dma_chan *c)
352 struct axi_dmac_chan *chan = to_axi_dmac_chan(c);
353 struct axi_dmac *dmac = chan_to_axi_dmac(chan);
356 axi_dmac_write(dmac, AXI_DMAC_REG_CTRL, AXI_DMAC_CTRL_ENABLE);
358 spin_lock_irqsave(&chan->vchan.lock, flags);
359 if (vchan_issue_pending(&chan->vchan))
360 axi_dmac_start_transfer(chan);
361 spin_unlock_irqrestore(&chan->vchan.lock, flags);
364 static struct axi_dmac_desc *axi_dmac_alloc_desc(unsigned int num_sgs)
366 struct axi_dmac_desc *desc;
369 desc = kzalloc(struct_size(desc, sg, num_sgs), GFP_NOWAIT);
373 for (i = 0; i < num_sgs; i++)
374 desc->sg[i].id = AXI_DMAC_SG_UNUSED;
376 desc->num_sgs = num_sgs;
381 static struct axi_dmac_sg *axi_dmac_fill_linear_sg(struct axi_dmac_chan *chan,
382 enum dma_transfer_direction direction, dma_addr_t addr,
383 unsigned int num_periods, unsigned int period_len,
384 struct axi_dmac_sg *sg)
386 unsigned int num_segments, i;
387 unsigned int segment_size;
390 /* Split into multiple equally sized segments if necessary */
391 num_segments = DIV_ROUND_UP(period_len, chan->max_length);
392 segment_size = DIV_ROUND_UP(period_len, num_segments);
393 /* Take care of alignment */
394 segment_size = ((segment_size - 1) | chan->align_mask) + 1;
396 for (i = 0; i < num_periods; i++) {
399 while (len > segment_size) {
400 if (direction == DMA_DEV_TO_MEM)
401 sg->dest_addr = addr;
404 sg->x_len = segment_size;
407 addr += segment_size;
411 if (direction == DMA_DEV_TO_MEM)
412 sg->dest_addr = addr;
424 static struct dma_async_tx_descriptor *axi_dmac_prep_slave_sg(
425 struct dma_chan *c, struct scatterlist *sgl,
426 unsigned int sg_len, enum dma_transfer_direction direction,
427 unsigned long flags, void *context)
429 struct axi_dmac_chan *chan = to_axi_dmac_chan(c);
430 struct axi_dmac_desc *desc;
431 struct axi_dmac_sg *dsg;
432 struct scatterlist *sg;
433 unsigned int num_sgs;
436 if (direction != chan->direction)
440 for_each_sg(sgl, sg, sg_len, i)
441 num_sgs += DIV_ROUND_UP(sg_dma_len(sg), chan->max_length);
443 desc = axi_dmac_alloc_desc(num_sgs);
449 for_each_sg(sgl, sg, sg_len, i) {
450 if (!axi_dmac_check_addr(chan, sg_dma_address(sg)) ||
451 !axi_dmac_check_len(chan, sg_dma_len(sg))) {
456 dsg = axi_dmac_fill_linear_sg(chan, direction, sg_dma_address(sg), 1,
457 sg_dma_len(sg), dsg);
460 desc->cyclic = false;
462 return vchan_tx_prep(&chan->vchan, &desc->vdesc, flags);
465 static struct dma_async_tx_descriptor *axi_dmac_prep_dma_cyclic(
466 struct dma_chan *c, dma_addr_t buf_addr, size_t buf_len,
467 size_t period_len, enum dma_transfer_direction direction,
470 struct axi_dmac_chan *chan = to_axi_dmac_chan(c);
471 struct axi_dmac_desc *desc;
472 unsigned int num_periods, num_segments;
474 if (direction != chan->direction)
477 if (!axi_dmac_check_len(chan, buf_len) ||
478 !axi_dmac_check_addr(chan, buf_addr))
481 if (period_len == 0 || buf_len % period_len)
484 num_periods = buf_len / period_len;
485 num_segments = DIV_ROUND_UP(period_len, chan->max_length);
487 desc = axi_dmac_alloc_desc(num_periods * num_segments);
491 axi_dmac_fill_linear_sg(chan, direction, buf_addr, num_periods,
492 period_len, desc->sg);
496 return vchan_tx_prep(&chan->vchan, &desc->vdesc, flags);
499 static struct dma_async_tx_descriptor *axi_dmac_prep_interleaved(
500 struct dma_chan *c, struct dma_interleaved_template *xt,
503 struct axi_dmac_chan *chan = to_axi_dmac_chan(c);
504 struct axi_dmac_desc *desc;
505 size_t dst_icg, src_icg;
507 if (xt->frame_size != 1)
510 if (xt->dir != chan->direction)
513 if (axi_dmac_src_is_mem(chan)) {
514 if (!xt->src_inc || !axi_dmac_check_addr(chan, xt->src_start))
518 if (axi_dmac_dest_is_mem(chan)) {
519 if (!xt->dst_inc || !axi_dmac_check_addr(chan, xt->dst_start))
523 dst_icg = dmaengine_get_dst_icg(xt, &xt->sgl[0]);
524 src_icg = dmaengine_get_src_icg(xt, &xt->sgl[0]);
527 if (!axi_dmac_check_len(chan, xt->sgl[0].size) ||
530 if (xt->sgl[0].size + dst_icg > chan->max_length ||
531 xt->sgl[0].size + src_icg > chan->max_length)
534 if (dst_icg != 0 || src_icg != 0)
536 if (chan->max_length / xt->sgl[0].size < xt->numf)
538 if (!axi_dmac_check_len(chan, xt->sgl[0].size * xt->numf))
542 desc = axi_dmac_alloc_desc(1);
546 if (axi_dmac_src_is_mem(chan)) {
547 desc->sg[0].src_addr = xt->src_start;
548 desc->sg[0].src_stride = xt->sgl[0].size + src_icg;
551 if (axi_dmac_dest_is_mem(chan)) {
552 desc->sg[0].dest_addr = xt->dst_start;
553 desc->sg[0].dest_stride = xt->sgl[0].size + dst_icg;
557 desc->sg[0].x_len = xt->sgl[0].size;
558 desc->sg[0].y_len = xt->numf;
560 desc->sg[0].x_len = xt->sgl[0].size * xt->numf;
561 desc->sg[0].y_len = 1;
564 return vchan_tx_prep(&chan->vchan, &desc->vdesc, flags);
567 static void axi_dmac_free_chan_resources(struct dma_chan *c)
569 vchan_free_chan_resources(to_virt_chan(c));
572 static void axi_dmac_desc_free(struct virt_dma_desc *vdesc)
574 kfree(container_of(vdesc, struct axi_dmac_desc, vdesc));
578 * The configuration stored in the devicetree matches the configuration
579 * parameters of the peripheral instance and allows the driver to know which
580 * features are implemented and how it should behave.
582 static int axi_dmac_parse_chan_dt(struct device_node *of_chan,
583 struct axi_dmac_chan *chan)
588 ret = of_property_read_u32(of_chan, "reg", &val);
592 /* We only support 1 channel for now */
596 ret = of_property_read_u32(of_chan, "adi,source-bus-type", &val);
599 if (val > AXI_DMAC_BUS_TYPE_FIFO)
601 chan->src_type = val;
603 ret = of_property_read_u32(of_chan, "adi,destination-bus-type", &val);
606 if (val > AXI_DMAC_BUS_TYPE_FIFO)
608 chan->dest_type = val;
610 ret = of_property_read_u32(of_chan, "adi,source-bus-width", &val);
613 chan->src_width = val / 8;
615 ret = of_property_read_u32(of_chan, "adi,destination-bus-width", &val);
618 chan->dest_width = val / 8;
620 chan->align_mask = max(chan->dest_width, chan->src_width) - 1;
622 if (axi_dmac_dest_is_mem(chan) && axi_dmac_src_is_mem(chan))
623 chan->direction = DMA_MEM_TO_MEM;
624 else if (!axi_dmac_dest_is_mem(chan) && axi_dmac_src_is_mem(chan))
625 chan->direction = DMA_MEM_TO_DEV;
626 else if (axi_dmac_dest_is_mem(chan) && !axi_dmac_src_is_mem(chan))
627 chan->direction = DMA_DEV_TO_MEM;
629 chan->direction = DMA_DEV_TO_DEV;
634 static void axi_dmac_detect_caps(struct axi_dmac *dmac)
636 struct axi_dmac_chan *chan = &dmac->chan;
638 axi_dmac_write(dmac, AXI_DMAC_REG_FLAGS, AXI_DMAC_FLAG_CYCLIC);
639 if (axi_dmac_read(dmac, AXI_DMAC_REG_FLAGS) == AXI_DMAC_FLAG_CYCLIC)
640 chan->hw_cyclic = true;
642 axi_dmac_write(dmac, AXI_DMAC_REG_Y_LENGTH, 1);
643 if (axi_dmac_read(dmac, AXI_DMAC_REG_Y_LENGTH) == 1)
646 axi_dmac_write(dmac, AXI_DMAC_REG_X_LENGTH, 0xffffffff);
647 chan->max_length = axi_dmac_read(dmac, AXI_DMAC_REG_X_LENGTH);
648 if (chan->max_length != UINT_MAX)
652 static int axi_dmac_probe(struct platform_device *pdev)
654 struct device_node *of_channels, *of_chan;
655 struct dma_device *dma_dev;
656 struct axi_dmac *dmac;
657 struct resource *res;
660 dmac = devm_kzalloc(&pdev->dev, sizeof(*dmac), GFP_KERNEL);
664 dmac->irq = platform_get_irq(pdev, 0);
670 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
671 dmac->base = devm_ioremap_resource(&pdev->dev, res);
672 if (IS_ERR(dmac->base))
673 return PTR_ERR(dmac->base);
675 dmac->clk = devm_clk_get(&pdev->dev, NULL);
676 if (IS_ERR(dmac->clk))
677 return PTR_ERR(dmac->clk);
679 INIT_LIST_HEAD(&dmac->chan.active_descs);
681 of_channels = of_get_child_by_name(pdev->dev.of_node, "adi,channels");
682 if (of_channels == NULL)
685 for_each_child_of_node(of_channels, of_chan) {
686 ret = axi_dmac_parse_chan_dt(of_chan, &dmac->chan);
688 of_node_put(of_chan);
689 of_node_put(of_channels);
693 of_node_put(of_channels);
695 pdev->dev.dma_parms = &dmac->dma_parms;
696 dma_set_max_seg_size(&pdev->dev, UINT_MAX);
698 dma_dev = &dmac->dma_dev;
699 dma_cap_set(DMA_SLAVE, dma_dev->cap_mask);
700 dma_cap_set(DMA_CYCLIC, dma_dev->cap_mask);
701 dma_cap_set(DMA_INTERLEAVE, dma_dev->cap_mask);
702 dma_dev->device_free_chan_resources = axi_dmac_free_chan_resources;
703 dma_dev->device_tx_status = dma_cookie_status;
704 dma_dev->device_issue_pending = axi_dmac_issue_pending;
705 dma_dev->device_prep_slave_sg = axi_dmac_prep_slave_sg;
706 dma_dev->device_prep_dma_cyclic = axi_dmac_prep_dma_cyclic;
707 dma_dev->device_prep_interleaved_dma = axi_dmac_prep_interleaved;
708 dma_dev->device_terminate_all = axi_dmac_terminate_all;
709 dma_dev->device_synchronize = axi_dmac_synchronize;
710 dma_dev->dev = &pdev->dev;
711 dma_dev->chancnt = 1;
712 dma_dev->src_addr_widths = BIT(dmac->chan.src_width);
713 dma_dev->dst_addr_widths = BIT(dmac->chan.dest_width);
714 dma_dev->directions = BIT(dmac->chan.direction);
715 dma_dev->residue_granularity = DMA_RESIDUE_GRANULARITY_DESCRIPTOR;
716 INIT_LIST_HEAD(&dma_dev->channels);
718 dmac->chan.vchan.desc_free = axi_dmac_desc_free;
719 vchan_init(&dmac->chan.vchan, dma_dev);
721 ret = clk_prepare_enable(dmac->clk);
725 axi_dmac_detect_caps(dmac);
727 axi_dmac_write(dmac, AXI_DMAC_REG_IRQ_MASK, 0x00);
729 ret = dma_async_device_register(dma_dev);
731 goto err_clk_disable;
733 ret = of_dma_controller_register(pdev->dev.of_node,
734 of_dma_xlate_by_chan_id, dma_dev);
736 goto err_unregister_device;
738 ret = request_irq(dmac->irq, axi_dmac_interrupt_handler, IRQF_SHARED,
739 dev_name(&pdev->dev), dmac);
741 goto err_unregister_of;
743 platform_set_drvdata(pdev, dmac);
748 of_dma_controller_free(pdev->dev.of_node);
749 err_unregister_device:
750 dma_async_device_unregister(&dmac->dma_dev);
752 clk_disable_unprepare(dmac->clk);
757 static int axi_dmac_remove(struct platform_device *pdev)
759 struct axi_dmac *dmac = platform_get_drvdata(pdev);
761 of_dma_controller_free(pdev->dev.of_node);
762 free_irq(dmac->irq, dmac);
763 tasklet_kill(&dmac->chan.vchan.task);
764 dma_async_device_unregister(&dmac->dma_dev);
765 clk_disable_unprepare(dmac->clk);
770 static const struct of_device_id axi_dmac_of_match_table[] = {
771 { .compatible = "adi,axi-dmac-1.00.a" },
774 MODULE_DEVICE_TABLE(of, axi_dmac_of_match_table);
776 static struct platform_driver axi_dmac_driver = {
778 .name = "dma-axi-dmac",
779 .of_match_table = axi_dmac_of_match_table,
781 .probe = axi_dmac_probe,
782 .remove = axi_dmac_remove,
784 module_platform_driver(axi_dmac_driver);
786 MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>");
787 MODULE_DESCRIPTION("DMA controller driver for the AXI-DMAC controller");
788 MODULE_LICENSE("GPL v2");