diff options
author | Frank Schaefer <fschaefer.oss@googlemail.com> | 2017-04-16 19:35:43 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-04-19 13:55:38 +0200 |
commit | 2f7711b2ad3b2e2aa3e9e3db4d3a2887e38b52b3 (patch) | |
tree | 05150d7d7e6ad2d5085c58d09ebae42d8710c338 /drivers/media | |
parent | [media] ov2640: add information about DSP register 0xc7 (diff) | |
download | linux-2f7711b2ad3b2e2aa3e9e3db4d3a2887e38b52b3.tar.xz linux-2f7711b2ad3b2e2aa3e9e3db4d3a2887e38b52b3.zip |
[media] ov2640: add missing write to size change preamble
HSIZE and VSIZE bits 0 to 2 and HSIZE bit 11 are encoded in DSP register
SIZEL.
Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/i2c/ov2640.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/i2c/ov2640.c b/drivers/media/i2c/ov2640.c index e207d1dd003c..07a51f255db5 100644 --- a/drivers/media/i2c/ov2640.c +++ b/drivers/media/i2c/ov2640.c @@ -500,6 +500,9 @@ static const struct regval_list ov2640_init_regs[] = { static const struct regval_list ov2640_size_change_preamble_regs[] = { { BANK_SEL, BANK_SEL_DSP }, { RESET, RESET_DVP }, + { SIZEL, SIZEL_HSIZE8_11_SET(UXGA_WIDTH) | + SIZEL_HSIZE8_SET(UXGA_WIDTH) | + SIZEL_VSIZE8_SET(UXGA_HEIGHT) }, { HSIZE8, HSIZE8_SET(UXGA_WIDTH) }, { VSIZE8, VSIZE8_SET(UXGA_HEIGHT) }, { CTRL2, CTRL2_DCW_EN | CTRL2_SDE_EN | |