media: ov5640: add HFLIP/VFLIP controls support
authorHugues Fruchet <hugues.fruchet@st.com>
Mon, 18 Jun 2018 10:29:17 +0000 (06:29 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 28 Jun 2018 12:45:05 +0000 (08:45 -0400)
commitce85705a2abb4324e18ded9d6df2b278b952edb6
tree24bb823cdeba98c23047095febf9823aea7427a7
parent5f9e711b75a51b96c05f61a93b3f7c0d79dc20e2
media: ov5640: add HFLIP/VFLIP controls support

Add HFLIP/VFLIP controls support by setting registers REG21/REG20.
Useless values in hardcoded mode sequences are removed and
remaining binning values are now set after mode sequence being set.
Note that due to BSI (Back Side Illuminated) technology, image capture
is physically mirrored, mirror logic is so inversed in REG21 register
to cancel this effect.

Signed-off-by: Hugues Fruchet <hugues.fruchet@st.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/ov5640.c