Skip to content

Commit 1d6a80c

Browse files
iabdalkaderkartben
authored andcommitted
drivers: video: ov7670: Use a free-running pixel clock.
The STM32 DCMI capture seems to stop when the pixel clock is disabled during horizontal blank. This patch switches pixel clock to free-running, which shouldn't have any effect on other capture devices. Signed-off-by: Ibrahim Abdalkader <i.abdalkader@gmail.com>
1 parent ec7628b commit 1d6a80c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/video/ov7670.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ static const struct ov7670_reg ov7670_init_regtbl[] = {
210210
{OV7670_MVFP, 0x00}, /* MVFP: Mirror/VFlip,Normal image */
211211

212212
/* configure the output timing */
213-
/* PCLK does not toggle during horizontal blank, one PCLK, one pixel */
214-
{OV7670_COM10, 0x20}, /* COM10 */
213+
/* Free running PCLK, default VSYNC, HSYNC and PCLK */
214+
{OV7670_COM10, 0x00}, /* COM10 */
215215
{OV7670_COM12, 0x00}, /* COM12,No HREF when VSYNC is low */
216216
/* Brightness Control, with signal -128 to +128, 0x00 is middle value */
217217
{OV7670_BRIGHT, 0x2f},

0 commit comments

Comments
 (0)