Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #if defined(CONFIG_VIDEO_OMAP3) || defined(CONFIG_VIDEO_OMAP3_MODULE)
- #include <media/mt9t001.h>
- #include "devices.h"
- #include "../../../drivers/media/video/omap3isp/isp.h"
- #define MT9T001_I2C_ADDR 0x5D
- #define MT9T001_I2C_BUS_NUM 3
- #define MT9T001_XCLK ISP_XCLK_A
- static struct mt9t001_platform_data mt9t001_platform_data = {
- .clk_pol = 1,
- // .ext_clk = 48000000,
- };
- static struct i2c_board_info mt9t001_i2c_device = {
- I2C_BOARD_INFO("mt9t001", MT9T001_I2C_ADDR),
- .platform_data = &mt9t001_platform_data,
- };
- static struct isp_subdev_i2c_board_info mt9t001_subdevs[] = {
- {
- .board_info = &mt9t001_i2c_device,
- .i2c_adapter_id = MT9T001_I2C_BUS_NUM,
- },
- { NULL, 0, },
- };
- static struct isp_v4l2_subdevs_group overo_camera_subdevs[] = {
- {
- .subdevs = mt9t001_subdevs,
- .interface = ISP_INTERFACE_PARALLEL,
- .bus = {
- .parallel = {
- .clk_pol = 1,
- }
- },
- },
- { NULL, 0, },
- };
- static struct isp_platform_data overo_isp_platform_data = {
- .subdevs = overo_camera_subdevs,
- };
- static int __init overo_camera_init(void)
- {
- return omap3_init_camera(&overo_isp_platform_data);
- }
- #else
- static inline void overo_camera_init(void) { return; }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement