How to confirm initialize i2c data about ov5640 camera.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to confirm initialize i2c data about ov5640 camera.

ソリューションへジャンプ
2,847件の閲覧回数
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,802件の閲覧回数
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,803件の閲覧回数
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,803件の閲覧回数
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 件の賞賛
返信