-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[media] ov7670: allow configuration of image size, clock speed, and I…
…/O method These parameters need to be configurable based on the host system. They can now be communicated through the s_config call. The old CONFIG_OLPC_XO_1 selector was not correct; this kind of arrangement wouldn't allow for a universal kernel that would work on both laptops. Certain parts of the probe routine had to be moved later (into s_config), because we can't do any I/O until we know which I/O method has been selected through this mechanism. Signed-off-by: Daniel Drake <dsd@laptop.org> Acked-by: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
- Loading branch information
Daniel Drake
authored and
Mauro Carvalho Chehab
committed
Oct 23, 2010
1 parent
f8c6127
commit 75e2bda
Showing
2 changed files
with
115 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* A V4L2 driver for OmniVision OV7670 cameras. | ||
* | ||
* Copyright 2010 One Laptop Per Child | ||
* | ||
* This file may be distributed under the terms of the GNU General | ||
* Public License, version 2. | ||
*/ | ||
|
||
#ifndef __OV7670_H | ||
#define __OV7670_H | ||
|
||
struct ov7670_config { | ||
int min_width; /* Filter out smaller sizes */ | ||
int min_height; /* Filter out smaller sizes */ | ||
int clock_speed; /* External clock speed (MHz) */ | ||
bool use_smbus; /* Use smbus I/O instead of I2C */ | ||
}; | ||
|
||
#endif |