Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 450 static void mt9v032_set_clk(struct v4l2_subdev *subdev, unsigned int hz)
- 451 {
- 452 struct isp_device *isp = v4l2_dev_to_isp_device(subdev->v4l2_dev);
- 453
- 454 isp->platform_cb.set_xclk(isp, hz, ISP_XCLK_A);
- 455
- 456 }
- 457
- 458 static struct mt9v032_platform_data mt9v032_pdata = {
- 459 .clk_pol = 1,
- 460 .set_clock = mt9v032_set_clk,
- 461 };
- 462
- 463 static struct i2c_board_info camera_i2c_devices[] = {
- 464 {
- 465 I2C_BOARD_INFO("mt9v032", (0xb8 >> 1)),
- 466 .platform_data = &mt9v032_pdata,
- 467 },
- 468 };
- 469
- 470 static struct isp_subdev_i2c_board_info camera_primary_subdevs[] = {
- 471 {
- 472 .board_info = &camera_i2c_devices[0],
- 473 .i2c_adapter_id = 3,
- 474 },
- 475 { NULL, 0, },
- 476 };
- 477
- 478 static struct isp_v4l2_subdevs_group camera_subdevs[] = {
- 479 {
- 480 .subdevs = camera_primary_subdevs,
- 481 .interface = ISP_INTERFACE_PARALLEL,
- 482 .bus = { .parallel = {
- 483 .width = 10,
- 484 .data_lane_shift = 0,
- 485 .clk_pol = 1,
- 486 .bridge = ISPCTRL_PAR_BRIDGE_DISABLE,
- 487 } },
- 488 },
- 489 { NULL, 0, },
- 490 };
- 491
- 492 static struct isp_platform_data isp_pdata = {
- 493 .subdevs = camera_subdevs,
- 494 };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement