summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/vimc/vimc-common.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2017-11-06 05:20:01 -0500
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-12-08 10:44:55 -0500
commit52cf1d964e4ca89ed80f97a8451245c9bb13a63d (patch)
treed3db867af41176b73df079df2078f0418c1ba8f7 /drivers/media/platform/vimc/vimc-common.h
parente2a067048d6263613cee8c5c36aa6f2d755ef425 (diff)
downloadop-kernel-dev-52cf1d964e4ca89ed80f97a8451245c9bb13a63d.zip
op-kernel-dev-52cf1d964e4ca89ed80f97a8451245c9bb13a63d.tar.gz
media: vimc: add test_pattern and h/vflip controls to the sensor
Add support for the test_pattern control and the h/vflip controls. This makes it possible to switch to more interesting test patterns and to test control handling in v4l-subdevs. There are more tpg-related controls that can be added, but this is a good start. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> [hans.verkuil@cisco.com: fix small whitespace checkpatch warning] Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/vimc/vimc-common.h')
-rw-r--r--drivers/media/platform/vimc/vimc-common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/platform/vimc/vimc-common.h b/drivers/media/platform/vimc/vimc-common.h
index dca528a..2e9981b 100644
--- a/drivers/media/platform/vimc/vimc-common.h
+++ b/drivers/media/platform/vimc/vimc-common.h
@@ -22,6 +22,11 @@
#include <media/media-device.h>
#include <media/v4l2-device.h>
+/* VIMC-specific controls */
+#define VIMC_CID_VIMC_BASE (0x00f00000 | 0xf000)
+#define VIMC_CID_VIMC_CLASS (0x00f00000 | 1)
+#define VIMC_CID_TEST_PATTERN (VIMC_CID_VIMC_BASE + 0)
+
#define VIMC_FRAME_MAX_WIDTH 4096
#define VIMC_FRAME_MAX_HEIGHT 2160
#define VIMC_FRAME_MIN_WIDTH 16
OpenPOWER on IntegriCloud