[media] atmel-isi: setup the ISI_CFG2 register directly
authorJosh Wu <josh.wu@atmel.com>
Fri, 11 Sep 2015 07:00:14 +0000 (04:00 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 25 Sep 2015 20:35:15 +0000 (17:35 -0300)
commitad5f9d19682b210b74f686ac58cfaad1044624ec
tree4d87fa0db7a13b57deb8da0a511d646831b0cbe5
parentd67b48824fef61883404ed5c034901bbb319d0df
[media] atmel-isi: setup the ISI_CFG2 register directly

In the function configure_geometry(), we will setup the ISI CFG2
according to the sensor output format.

It make no sense to just read back the CFG2 register and just set part
of it.

So just set up this register directly makes things simpler.
Currently only support YUV format from camera sensor.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/soc_camera/atmel-isi.c
include/media/atmel-isi.h