|
9 | 9 | * Vybrid and Layerscape SoCs.
|
10 | 10 | */
|
11 | 11 |
|
| 12 | +#include <dt-bindings/dma/fsl-edma.h> |
12 | 13 | #include <linux/module.h>
|
13 | 14 | #include <linux/interrupt.h>
|
14 | 15 | #include <linux/clk.h>
|
|
21 | 22 |
|
22 | 23 | #include "fsl-edma-common.h"
|
23 | 24 |
|
24 |
| -#define ARGS_RX BIT(0) |
25 |
| -#define ARGS_REMOTE BIT(1) |
26 |
| -#define ARGS_MULTI_FIFO BIT(2) |
27 |
| -#define ARGS_EVEN_CH BIT(3) |
28 |
| -#define ARGS_ODD_CH BIT(4) |
29 |
| - |
30 | 25 | static void fsl_edma_synchronize(struct dma_chan *chan)
|
31 | 26 | {
|
32 | 27 | struct fsl_edma_chan *fsl_chan = to_fsl_edma_chan(chan);
|
@@ -155,14 +150,14 @@ static struct dma_chan *fsl_edma3_xlate(struct of_phandle_args *dma_spec,
|
155 | 150 | i = fsl_chan - fsl_edma->chans;
|
156 | 151 |
|
157 | 152 | fsl_chan->priority = dma_spec->args[1];
|
158 |
| - fsl_chan->is_rxchan = dma_spec->args[2] & ARGS_RX; |
159 |
| - fsl_chan->is_remote = dma_spec->args[2] & ARGS_REMOTE; |
160 |
| - fsl_chan->is_multi_fifo = dma_spec->args[2] & ARGS_MULTI_FIFO; |
| 153 | + fsl_chan->is_rxchan = dma_spec->args[2] & FSL_EDMA_RX; |
| 154 | + fsl_chan->is_remote = dma_spec->args[2] & FSL_EDMA_REMOTE; |
| 155 | + fsl_chan->is_multi_fifo = dma_spec->args[2] & FSL_EDMA_MULTI_FIFO; |
161 | 156 |
|
162 |
| - if ((dma_spec->args[2] & ARGS_EVEN_CH) && (i & 0x1)) |
| 157 | + if ((dma_spec->args[2] & FSL_EDMA_EVEN_CH) && (i & 0x1)) |
163 | 158 | continue;
|
164 | 159 |
|
165 |
| - if ((dma_spec->args[2] & ARGS_ODD_CH) && !(i & 0x1)) |
| 160 | + if ((dma_spec->args[2] & FSL_EDMA_ODD_CH) && !(i & 0x1)) |
166 | 161 | continue;
|
167 | 162 |
|
168 | 163 | if (!b_chmux && i == dma_spec->args[0]) {
|
|
0 commit comments