summaryrefslogtreecommitdiff
path: root/include/media
diff options
context:
space:
mode:
authorJosh Wu <josh.wu@atmel.com>2015-09-11 07:00:14 (GMT)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-09-25 20:35:15 (GMT)
commitad5f9d19682b210b74f686ac58cfaad1044624ec (patch)
tree4d87fa0db7a13b57deb8da0a511d646831b0cbe5 /include/media
parentd67b48824fef61883404ed5c034901bbb319d0df (diff)
downloadlinux-ad5f9d19682b210b74f686ac58cfaad1044624ec.tar.xz
[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>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/atmel-isi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/media/atmel-isi.h b/include/media/atmel-isi.h
index 6008b09..e7a96b8 100644
--- a/include/media/atmel-isi.h
+++ b/include/media/atmel-isi.h
@@ -66,6 +66,8 @@
/* Bitfields in CFG2 */
#define ISI_CFG2_GRAYSCALE (1 << 13)
+#define ISI_CFG2_COL_SPACE_YCbCr (0 << 15)
+#define ISI_CFG2_COL_SPACE_RGB (1 << 15)
/* Constants for YCC_SWAP(ISI_V2) */
#define ISI_CFG2_YCC_SWAP_DEFAULT (0 << 28)
#define ISI_CFG2_YCC_SWAP_MODE_1 (1 << 28)