diff options
author | Russell King - ARM Linux <linux@arm.linux.org.uk> | 2011-01-03 17:43:35 -0500 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2011-01-04 22:16:13 -0500 |
commit | d7244e9a27a3da27d62aabf560ee828d7991493e (patch) | |
tree | a745ef1a7b87208738f379532d10a8932751abb4 /drivers/dma/amba-pl08x.c | |
parent | 542361f8e385355c68e263eba49d4306739b9220 (diff) |
ARM: PL08x: shrink srcbus/dstbus in txd structure
We only need to store the dma address.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dma/amba-pl08x.c')
-rw-r--r-- | drivers/dma/amba-pl08x.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c index 39970c5038d6..8d8d33ce5684 100644 --- a/drivers/dma/amba-pl08x.c +++ b/drivers/dma/amba-pl08x.c | |||
@@ -595,8 +595,8 @@ static int pl08x_fill_llis_for_desc(struct pl08x_driver_data *pl08x, | |||
595 | 595 | ||
596 | bd.txd = txd; | 596 | bd.txd = txd; |
597 | bd.pl08x = pl08x; | 597 | bd.pl08x = pl08x; |
598 | bd.srcbus.addr = txd->srcbus.addr; | 598 | bd.srcbus.addr = txd->src_addr; |
599 | bd.dstbus.addr = txd->dstbus.addr; | 599 | bd.dstbus.addr = txd->dst_addr; |
600 | 600 | ||
601 | /* Find maximum width of the source bus */ | 601 | /* Find maximum width of the source bus */ |
602 | bd.srcbus.maxwidth = | 602 | bd.srcbus.maxwidth = |
@@ -1313,8 +1313,8 @@ static struct dma_async_tx_descriptor *pl08x_prep_dma_memcpy( | |||
1313 | } | 1313 | } |
1314 | 1314 | ||
1315 | txd->direction = DMA_NONE; | 1315 | txd->direction = DMA_NONE; |
1316 | txd->srcbus.addr = src; | 1316 | txd->src_addr = src; |
1317 | txd->dstbus.addr = dest; | 1317 | txd->dst_addr = dest; |
1318 | txd->len = len; | 1318 | txd->len = len; |
1319 | 1319 | ||
1320 | /* Set platform data for m2m */ | 1320 | /* Set platform data for m2m */ |
@@ -1393,21 +1393,21 @@ static struct dma_async_tx_descriptor *pl08x_prep_slave_sg( | |||
1393 | if (direction == DMA_TO_DEVICE) { | 1393 | if (direction == DMA_TO_DEVICE) { |
1394 | txd->ccfg |= PL080_FLOW_MEM2PER << PL080_CONFIG_FLOW_CONTROL_SHIFT; | 1394 | txd->ccfg |= PL080_FLOW_MEM2PER << PL080_CONFIG_FLOW_CONTROL_SHIFT; |
1395 | txd->cctl |= PL080_CONTROL_SRC_INCR; | 1395 | txd->cctl |= PL080_CONTROL_SRC_INCR; |
1396 | txd->srcbus.addr = sgl->dma_address; | 1396 | txd->src_addr = sgl->dma_address; |
1397 | if (plchan->runtime_addr) | 1397 | if (plchan->runtime_addr) |
1398 | txd->dstbus.addr = plchan->runtime_addr; | 1398 | txd->dst_addr = plchan->runtime_addr; |
1399 | else | 1399 | else |
1400 | txd->dstbus.addr = plchan->cd->addr; | 1400 | txd->dst_addr = plchan->cd->addr; |
1401 | src_buses = pl08x->mem_buses; | 1401 | src_buses = pl08x->mem_buses; |
1402 | dst_buses = plchan->cd->periph_buses; | 1402 | dst_buses = plchan->cd->periph_buses; |
1403 | } else if (direction == DMA_FROM_DEVICE) { | 1403 | } else if (direction == DMA_FROM_DEVICE) { |
1404 | txd->ccfg |= PL080_FLOW_PER2MEM << PL080_CONFIG_FLOW_CONTROL_SHIFT; | 1404 | txd->ccfg |= PL080_FLOW_PER2MEM << PL080_CONFIG_FLOW_CONTROL_SHIFT; |
1405 | txd->cctl |= PL080_CONTROL_DST_INCR; | 1405 | txd->cctl |= PL080_CONTROL_DST_INCR; |
1406 | if (plchan->runtime_addr) | 1406 | if (plchan->runtime_addr) |
1407 | txd->srcbus.addr = plchan->runtime_addr; | 1407 | txd->src_addr = plchan->runtime_addr; |
1408 | else | 1408 | else |
1409 | txd->srcbus.addr = plchan->cd->addr; | 1409 | txd->src_addr = plchan->cd->addr; |
1410 | txd->dstbus.addr = sgl->dma_address; | 1410 | txd->dst_addr = sgl->dma_address; |
1411 | src_buses = plchan->cd->periph_buses; | 1411 | src_buses = plchan->cd->periph_buses; |
1412 | dst_buses = pl08x->mem_buses; | 1412 | dst_buses = pl08x->mem_buses; |
1413 | } else { | 1413 | } else { |