i.MX6 ASRC clock divider calculations

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

i.MX6 ASRC clock divider calculations

839 Views
abelal
Contributor II

Hi,

While looking at the i.MX6 manual (Rev. 1, 04/2013) at the start of page 655, the manual says "The clocks have the following restriction. If the prescaler is set to 1, the clock divider can only be set to 1 and the clock source must have a 50% duty cycle.". Now, if we look at the Freescale BSP the clock divider calculations for ASRC (get_clock_divider()) do not seem to take care of this fact and in case the prescaler is calculated as 0 the divider is set to 'ra - 1'. Is this a bug in the BSP or does the manual need updating? because I think they are contradicting. Kindly comment.

BR,

Awais

Tags (2)
0 Kudos
3 Replies

621 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello, Awais,

       I agree with you!  From Reference manual, linux bsp should consider this conditions, but I can't confirm if it is a bsp bug, it should be done by R&D team. If you find issue duiring debuging or testing, you can adjust corresponding code.

Regards,

Weidong

0 Kudos

622 Views
abelal
Contributor II

Hi Weidong,

Can you please elaborate a little on why does the manual warn against this situation and what are the consequences?

BR,

Awais

0 Kudos

622 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi Awais,

     Did you meet some issues about this part during your application?

Regards,

Weidong

0 Kudos