2 * imx046.h - Shared settings for the IMX046 CameraChip.
5 * Dominic Curran <dcurran@ti.com>
7 * Copyright (C) 2008 Hewlett Packard.
8 * Copyright (C) 2009 Texas Instruments.
10 * This file is licensed under the terms of the GNU General Public License
11 * version 2. This program is licensed "as is" without any warranty of any
12 * kind, whether express or implied.
18 #define IMX046_I2C_ADDR 0x1A
20 /* Average black level */
21 #define IMX046_BLACK_LEVEL_AVG 64
24 * struct imx046_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 imx046_platform_data
{
31 int (*power_set
)(struct v4l2_int_device
*s
, enum v4l2_power power
);
32 int (*ifparm
)(struct v4l2_ifparm
*p
);
33 int (*priv_data_set
)(struct v4l2_int_device
*s
, void *);
34 u32 (*set_xclk
)(struct v4l2_int_device
*s
, u32 xclkfreq
);
35 int (*cfg_interface_bridge
)(u32
);
36 int (*csi2_lane_count
)(int count
);
37 int (*csi2_cfg_vp_out_ctrl
)(u8 vp_out_ctrl
);
38 int (*csi2_ctrl_update
)(bool);
39 int (*csi2_cfg_virtual_id
)(u8 ctx
, u8 id
);
40 int (*csi2_ctx_update
)(u8 ctx
, bool);
41 int (*csi2_calc_phy_cfg0
)(u32
, u32
, u32
);
44 #endif /* ifndef IMX046_H */