how to enable CSI0 MCLK output for i.MX53 QSB

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

how to enable CSI0 MCLK output for i.MX53 QSB

跳至解决方案
1,918 次查看
lubi_wan
Contributor I

I am trying to use MX53_PAD_CSI0_MCLK as clock source for aptina MT9p031. And configure CSI0 to gated mode so I don't need HSYNC input.

And I already inserted the macro "MX53_PAD_CSI0_MCLK__CCM_CSI0_MCLK," to mx53_loco.c.

However I still can not get clock output.

Anyone could advise?

Thanks a lot.

标签 (2)
0 项奖励
回复
1 解答
1,769 次查看
igorpadykov
NXP Employee
NXP Employee

I think you can add in mx53_loco.c

code to program CCM_CSCDR4 and IPOMUX register

directly using __raw_writew().

Best regards

chip

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,769 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Weiqiang

please try in mx53_loco.c in structure iomux_v3_cfg_t mx53_loco_pads[]

to replace MX53_PAD_CSI0_MCLK__IPU_CSI0_HSYNC,

with         MX53_PAD_CSI0_MCLK__CCM_CSI0_MCLK

Best regards

chip

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

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

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

0 项奖励
回复
1,769 次查看
lubi_wan
Contributor I

Actually that is what I already did.

I still can not get MCLK out from that pin.

Any idea?

Thanks.

0 项奖励
回复
1,770 次查看
igorpadykov
NXP Employee
NXP Employee

I think you can add in mx53_loco.c

code to program CCM_CSCDR4 and IPOMUX register

directly using __raw_writew().

Best regards

chip

0 项奖励
回复