diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-06-18 11:45:19 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-07-31 07:06:21 -0400 |
commit | 7c836bc7f9f71d62a8dc50712db122a69b405486 (patch) | |
tree | ab4b255c41e52fd5fd3f3b254921eadef90bdde2 /drivers | |
parent | 3850e22f5146d2ff5b66f1b7460d4720d5f1b6c7 (diff) |
dmaengine: omap: add support for setting fi
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/dma/omap-dma.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/dma/omap-dma.c b/drivers/dma/omap-dma.c index 82a7ac7c048b..f2e919fcea36 100644 --- a/drivers/dma/omap-dma.c +++ b/drivers/dma/omap-dma.c | |||
@@ -50,6 +50,7 @@ struct omap_desc { | |||
50 | enum dma_transfer_direction dir; | 50 | enum dma_transfer_direction dir; |
51 | dma_addr_t dev_addr; | 51 | dma_addr_t dev_addr; |
52 | 52 | ||
53 | int16_t fi; /* for OMAP_DMA_SYNC_PACKET */ | ||
53 | uint8_t es; /* OMAP_DMA_DATA_TYPE_xxx */ | 54 | uint8_t es; /* OMAP_DMA_DATA_TYPE_xxx */ |
54 | uint8_t sync_mode; /* OMAP_DMA_SYNC_xxx */ | 55 | uint8_t sync_mode; /* OMAP_DMA_SYNC_xxx */ |
55 | uint8_t sync_type; /* OMAP_DMA_xxx_SYNC* */ | 56 | uint8_t sync_type; /* OMAP_DMA_xxx_SYNC* */ |
@@ -120,10 +121,10 @@ static void omap_dma_start_desc(struct omap_chan *c) | |||
120 | 121 | ||
121 | if (d->dir == DMA_DEV_TO_MEM) | 122 | if (d->dir == DMA_DEV_TO_MEM) |
122 | omap_set_dma_src_params(c->dma_ch, d->periph_port, | 123 | omap_set_dma_src_params(c->dma_ch, d->periph_port, |
123 | OMAP_DMA_AMODE_CONSTANT, d->dev_addr, 0, 0); | 124 | OMAP_DMA_AMODE_CONSTANT, d->dev_addr, 0, d->fi); |
124 | else | 125 | else |
125 | omap_set_dma_dest_params(c->dma_ch, d->periph_port, | 126 | omap_set_dma_dest_params(c->dma_ch, d->periph_port, |
126 | OMAP_DMA_AMODE_CONSTANT, d->dev_addr, 0, 0); | 127 | OMAP_DMA_AMODE_CONSTANT, d->dev_addr, 0, d->fi); |
127 | 128 | ||
128 | omap_dma_start_sg(c, d, 0); | 129 | omap_dma_start_sg(c, d, 0); |
129 | } | 130 | } |