[<prev] [next>] [day] [month] [year] [list]
Message-id: <001a01ce10d3$64b4afb0$2e1e0f10$%kim@samsung.com>
Date: Fri, 22 Feb 2013 17:05:35 +0900
From: Boojin Kim <boojin.kim@...sung.com>
To: 'Boojin Kim' <boojin.kim@...sung.com>,
linux-kernel@...r.kernel.org, linux-samsung-soc@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
spi-devel-general@...ts.sourceforge.net,
alsa-devel@...a-project.org
Cc: 'Vinod Koul' <vinod.koul@...el.com>, 'Dan Williams' <djbw@...com>,
'Russell King' <linux@....linux.org.uk>,
'Kukjin Kim' <kgene.kim@...sung.com>,
'Grant Likely' <grant.likely@...retlab.ca>,
'Mark Brown' <broonie@...nsource.wolfsonmicro.com>,
'Rob Herring' <rob.herring@...xeda.com>,
'Sangbeom Kim' <sbkim73@...sung.com>
Subject: [PATCH v2 2/4] ARM: EXYNOS: support burst mode for for dev-to-mem and
mem-to-dev transmit
This patch adds to support burst mode for for dev-to-mem and dev-to-mem transmit
Signed-off-by: Boojin Kim <boojin.kim@...sung.com>
---
arch/arm/plat-samsung/dma-ops.c | 4 ++--
arch/arm/plat-samsung/include/plat/dma-ops.h | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/arm/plat-samsung/dma-ops.c b/arch/arm/plat-samsung/dma-ops.c
index 71d58dd..6c90c16 100644
--- a/arch/arm/plat-samsung/dma-ops.c
+++ b/arch/arm/plat-samsung/dma-ops.c
@@ -60,14 +60,14 @@ static int samsung_dmadev_config(unsigned ch,
slave_config.direction = param->direction;
slave_config.src_addr = param->fifo;
slave_config.src_addr_width = param->width;
- slave_config.src_maxburst = 1;
+ slave_config.src_maxburst = param->maxburst;
dmaengine_slave_config(chan, &slave_config);
} else if (param->direction == DMA_MEM_TO_DEV) {
memset(&slave_config, 0, sizeof(struct dma_slave_config));
slave_config.direction = param->direction;
slave_config.dst_addr = param->fifo;
slave_config.dst_addr_width = param->width;
- slave_config.dst_maxburst = 1;
+ slave_config.dst_maxburst = param->maxburst;
dmaengine_slave_config(chan, &slave_config);
} else {
pr_warn("unsupported direction\n");
diff --git a/arch/arm/plat-samsung/include/plat/dma-ops.h b/arch/arm/plat-samsung/include/plat/dma-ops.h
index 1141782..383bd6d 100644
--- a/arch/arm/plat-samsung/include/plat/dma-ops.h
+++ b/arch/arm/plat-samsung/include/plat/dma-ops.h
@@ -35,6 +35,7 @@ struct samsung_dma_prep {
struct samsung_dma_config {
enum dma_transfer_direction direction;
enum dma_slave_buswidth width;
+ u32 maxburst;
dma_addr_t fifo;
};
--
1.7.5.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists