diff options
author | Sylwester Nawrocki <sylvester.nawrocki@gmail.com> | 2012-12-26 13:50:03 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-02-05 12:21:15 -0500 |
commit | 84a15ded76ec8ec23d84974238b7864813143655 (patch) | |
tree | a80c4b557afd0905da223d73d87c0c7dd60915ed /include/media/ov9650.h | |
parent | ffa9b9f016a9c97a3cc205d0d634b10d8f72eb36 (diff) |
[media] V4L: Add driver for OV9650/52 image sensors
This patch adds V4L2 sub-device driver for OV9650/OV9652 image sensors.
The driver exposes following V4L2 controls:
- auto/manual exposure,
- auto/manual white balance,
- auto/manual gain,
- brightness, saturation, sharpness,
- horizontal/vertical flip,
- color bar test pattern,
- banding filter (power line frequency).
Frame rate can be configured with g/s_frame_interval pad level ops.
Supported resolution are only: SXGA, VGA, QVGA.
Signed-off-by: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/ov9650.h')
-rw-r--r-- | include/media/ov9650.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/media/ov9650.h b/include/media/ov9650.h new file mode 100644 index 000000000000..d630cf9e028d --- /dev/null +++ b/include/media/ov9650.h | |||
@@ -0,0 +1,27 @@ | |||
1 | /* | ||
2 | * OV9650/OV9652 camera sensors driver | ||
3 | * | ||
4 | * Copyright (C) 2013 Sylwester Nawrocki <sylvester.nawrocki@gmail.com> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | */ | ||
10 | #ifndef OV9650_H_ | ||
11 | #define OV9650_H_ | ||
12 | |||
13 | /** | ||
14 | * struct ov9650_platform_data - ov9650 driver platform data | ||
15 | * @mclk_frequency: the sensor's master clock frequency in Hz | ||
16 | * @gpio_pwdn: number of a GPIO connected to OV965X PWDN pin | ||
17 | * @gpio_reset: number of a GPIO connected to OV965X RESET pin | ||
18 | * | ||
19 | * If any of @gpio_pwdn or @gpio_reset are unused then they should be | ||
20 | * set to a negative value. @mclk_frequency must always be specified. | ||
21 | */ | ||
22 | struct ov9650_platform_data { | ||
23 | unsigned long mclk_frequency; | ||
24 | int gpio_pwdn; | ||
25 | int gpio_reset; | ||
26 | }; | ||
27 | #endif /* OV9650_H_ */ | ||