how to enable CSI0 MCLK output for i.MX53 QSB

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to enable CSI0 MCLK output for i.MX53 QSB

Jump to solution
961 Views
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.

Labels (2)
0 Kudos
1 Solution
812 Views
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

View solution in original post

0 Kudos
3 Replies
812 Views
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 Kudos
812 Views
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 Kudos
813 Views
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 Kudos