Full support for Ginger Console
[linux-ginger.git] / include / media / mt9p012.h
blobdc6f5ba39433416c1769a9a977bc85be206a0996
1 /*
2 * mt9p012.h - Register definitions for the MT9P012 camera sensor.
4 * Copyright (C) 2009 Texas Instruments.
6 * Contributors:
7 * Sameer Venkatraman <sameerv@ti.com>
8 * Sergio Aguirre <saaguirre@ti.com>
9 * Martinez Leonides
11 * This file is licensed under the terms of the GNU General Public License
12 * version 2. This program is licensed "as is" without any warranty of any
13 * kind, whether express or implied.
16 #ifndef MT9P012_H
17 #define MT9P012_H
19 #include <media/v4l2-int-device.h>
21 #define MT9P012_I2C_ADDR 0x10
23 /**
24 * struct mt9p012_platform_data - platform data values and access functions
25 * @power_set: Power state access function, zero is off, non-zero is on.
26 * @default_regs: Default registers written after power-on or reset.
27 * @ifparm: Interface parameters access function
28 * @priv_data_set: device private data (pointer) access function
30 struct mt9p012_platform_data {
31 int (*power_set)(struct v4l2_int_device *s, enum v4l2_power power);
32 u32 (*set_xclk)(struct v4l2_int_device *s, u32 xclkfreq);
33 int (*priv_data_set)(struct v4l2_int_device *s, void *);
36 #endif /* ifndef MT9P012_H */