diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2014-07-15 18:45:13 -0400 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2014-07-26 05:38:19 -0400 |
commit | e36152aa84cf68bd7f09acffd480cd2b6aa5480d (patch) | |
tree | d3b879e43183ffae3370df1619e977b6ac8de4e4 /drivers/mmc | |
parent | d25006e7e5045e76575e9f58903efc1a860a3ff1 (diff) |
mmc: sh_mmcif: Configure DMA slave bus width
The data register is 4 bytes wide, hardcode the DMA transfer size to
4 bytes in both directions.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sh_mmcif.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/mmc/host/sh_mmcif.c b/drivers/mmc/host/sh_mmcif.c index 863d21ee4a2f..d11708c815d7 100644 --- a/drivers/mmc/host/sh_mmcif.c +++ b/drivers/mmc/host/sh_mmcif.c | |||
@@ -418,10 +418,13 @@ sh_mmcif_request_dma_one(struct sh_mmcif_host *host, | |||
418 | cfg.slave_id = slave_id; | 418 | cfg.slave_id = slave_id; |
419 | cfg.direction = direction; | 419 | cfg.direction = direction; |
420 | 420 | ||
421 | if (direction == DMA_DEV_TO_MEM) | 421 | if (direction == DMA_DEV_TO_MEM) { |
422 | cfg.src_addr = res->start + MMCIF_CE_DATA; | 422 | cfg.src_addr = res->start + MMCIF_CE_DATA; |
423 | else | 423 | cfg.src_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; |
424 | } else { | ||
424 | cfg.dst_addr = res->start + MMCIF_CE_DATA; | 425 | cfg.dst_addr = res->start + MMCIF_CE_DATA; |
426 | cfg.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; | ||
427 | } | ||
425 | 428 | ||
426 | ret = dmaengine_slave_config(chan, &cfg); | 429 | ret = dmaengine_slave_config(chan, &cfg); |
427 | if (ret < 0) { | 430 | if (ret < 0) { |