aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/atmel/atmel-sama5d2-isc.c
diff options
context:
space:
mode:
authorEugen Hristev <eugen.hristev@microchip.com>2021-04-13 12:57:03 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-06-08 12:50:27 +0200
commitcd5af39467bdc768387d841186a71bb2d947b29c (patch)
treeb8012072fa4a624b4dd2dca4fb7477e11933859d /drivers/media/platform/atmel/atmel-sama5d2-isc.c
parentmedia: atmel: atmel-isc: specialize max width and max height (diff)
downloadlinux-dev-cd5af39467bdc768387d841186a71bb2d947b29c.tar.xz
linux-dev-cd5af39467bdc768387d841186a71bb2d947b29c.zip
media: atmel: atmel-isc: specialize dma cfg
The dma configuration (DCFG) is specific to the product. Move this configuration in the product specific driver, and add the field inside the driver struct. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/platform/atmel/atmel-sama5d2-isc.c')
-rw-r--r--drivers/media/platform/atmel/atmel-sama5d2-isc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/platform/atmel/atmel-sama5d2-isc.c b/drivers/media/platform/atmel/atmel-sama5d2-isc.c
index 72112e025690..4fa5e86f4244 100644
--- a/drivers/media/platform/atmel/atmel-sama5d2-isc.c
+++ b/drivers/media/platform/atmel/atmel-sama5d2-isc.c
@@ -198,6 +198,9 @@ static int atmel_isc_probe(struct platform_device *pdev)
isc->max_width = ISC_SAMA5D2_MAX_SUPPORT_WIDTH;
isc->max_height = ISC_SAMA5D2_MAX_SUPPORT_HEIGHT;
+ /* sama5d2-isc - 8 bits per beat */
+ isc->dcfg = ISC_DCFG_YMBSIZE_BEATS8 | ISC_DCFG_CMBSIZE_BEATS8;
+
ret = isc_pipeline_init(isc);
if (ret)
return ret;