Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357525
b: refs/heads/master
c: ee95258
h: refs/heads/master
i:
  357523: e343a23
v: v3
  • Loading branch information
Javier Martin authored and Mauro Carvalho Chehab committed Feb 8, 2013
1 parent 2a5c3e9 commit 5cb0120
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 04ee6d92047e1ac68d4eb615119343f4f0fc57db
refs/heads/master: ee95258ed3926f3aa2cf8d62e62cd51be466fe26
7 changes: 7 additions & 0 deletions trunk/drivers/media/i2c/ov7670.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ struct ov7670_info {
u8 clkrc; /* Clock divider value */
bool use_smbus; /* Use smbus I/O instead of I2C */
bool pll_bypass;
bool pclk_hb_disable;
const struct ov7670_devtype *devtype; /* Device specifics */
};

Expand Down Expand Up @@ -1712,6 +1713,9 @@ static int ov7670_probe(struct i2c_client *client,
*/
if (config->pll_bypass && id->driver_data != MODEL_OV7670)
info->pll_bypass = true;

if (config->pclk_hb_disable)
info->pclk_hb_disable = true;
}

/* Make sure it's an ov7670 */
Expand All @@ -1736,6 +1740,9 @@ static int ov7670_probe(struct i2c_client *client,
tpf.denominator = 30;
info->devtype->set_framerate(sd, &tpf);

if (info->pclk_hb_disable)
ov7670_write(sd, REG_COM10, COM10_PCLK_HB);

return 0;
}

Expand Down
1 change: 1 addition & 0 deletions trunk/include/media/ov7670.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ struct ov7670_config {
int clock_speed; /* External clock speed (MHz) */
bool use_smbus; /* Use smbus I/O instead of I2C */
bool pll_bypass; /* Choose whether to bypass the PLL */
bool pclk_hb_disable; /* Disable toggling pixclk during horizontal blanking */
};

#endif

0 comments on commit 5cb0120

Please sign in to comment.