summaryrefslogtreecommitdiff
path: root/drivers/media/video/marvell-ccic/mmp-driver.c
diff options
context:
space:
mode:
authorJonathan Corbet <corbet@lwn.net>2011-06-20 19:14:40 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 20:53:11 (GMT)
commita9b36e850782db853b9da050be9ed2050de51ad4 (patch)
tree40f372b8a9e6ad06eca64cc0f199e4edfa7b461a /drivers/media/video/marvell-ccic/mmp-driver.c
parent6c895d548c393d913152195c9e70816e13c64f9f (diff)
downloadlinux-fsl-qoriq-a9b36e850782db853b9da050be9ed2050de51ad4.tar.xz
[media] marvell-cam: implement contiguous DMA operation
The core driver can now operate in either vmalloc or dma-contig modes; obviously the latter is preferable when it is supported. Default is currently vmalloc on all platforms; load the module with buffer_mode=1 for contiguous DMA mode. Signed-off-by: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/marvell-ccic/mmp-driver.c')
-rw-r--r--drivers/media/video/marvell-ccic/mmp-driver.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/marvell-ccic/mmp-driver.c b/drivers/media/video/marvell-ccic/mmp-driver.c
index ac9976f..7b9c48c 100644
--- a/drivers/media/video/marvell-ccic/mmp-driver.c
+++ b/drivers/media/video/marvell-ccic/mmp-driver.c
@@ -180,6 +180,7 @@ static int mmpcam_probe(struct platform_device *pdev)
mcam->dev = &pdev->dev;
mcam->use_smbus = 0;
mcam->chip_id = V4L2_IDENT_ARMADA610;
+ mcam->buffer_mode = B_vmalloc; /* Switch to dma */
spin_lock_init(&mcam->dev_lock);
/*
* Get our I/O memory.