How to confirm initialize i2c data about ov5640 camera.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to confirm initialize i2c data about ov5640 camera.

跳至解决方案
2,638 次查看
hanseunglee
Contributor III

my configure set below

UBUNTU 12.04

kernel 3.0.35

LTIB

i.mx6q sabresd board.

Hello.

I want to confirm i2c data of ov5640 camera when boot i.mx6 board.

So.. I was check clk for i2c (R181 & R182) of CSI0(ov5640 camera).

But I don't know that is correct data.

when i check i2c data,

it is 0x38 ack 0x0D ack 0x39 ack 0x15..... i think .. it's wrong

If you have ov5640 camera initialize i2c data, share for me.

Thank you.

ps.

Where can i search i2c data for changing data ?

标签 (4)
0 项奖励
1 解答
1,593 次查看
jimmychan
NXP TechSupport
NXP TechSupport

one more suggestion for you:

You can check the ov5640.c driver source code. It is located in linux/drivers/media/video/mxc/capture/.

There are two functions ov5640_write_reg() and ov5640_read_reg() using i2c for read and write the ov5640's registers.

And when run the ov5640_probe(), It will using ov5640_read_reg() to read the chip_id higher and lower bytes first. After checked the camera is ov5640, then it will initialize the camera by sending a set of data in ov5640_global_init_setting[],

在原帖中查看解决方案

0 项奖励
2 回复数
1,594 次查看
jimmychan
NXP TechSupport
NXP TechSupport

one more suggestion for you:

You can check the ov5640.c driver source code. It is located in linux/drivers/media/video/mxc/capture/.

There are two functions ov5640_write_reg() and ov5640_read_reg() using i2c for read and write the ov5640's registers.

And when run the ov5640_probe(), It will using ov5640_read_reg() to read the chip_id higher and lower bytes first. After checked the camera is ov5640, then it will initialize the camera by sending a set of data in ov5640_global_init_setting[],

0 项奖励
1,594 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Hanseung

one can look at attached baremetal ov5640 camera codes from sdk.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 项奖励