Issue in Configuring PLL4 frequency

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

Issue in Configuring PLL4 frequency

631 Views
femyvarghese
Contributor I
We want to interface an audio codec to imx6dl processor. We are using PLL4 for SSI2. We are getting a value 147.456 MHz for PLL4 in the clock summary.
However, the PLL4 frequency range is 650MHz to 1.3GHz as per the datasheet. 
 While debugging we found that in the function clk_pllv3_av_set_rate() (), (ref:arch/arm/mach-imx/clk-pllv3.c), the value written to the register CCM_ANALOG_PLL_AUDIO(0x70) is 0x1029. This means the DIV_SELECT has a value of 0x29. 
However, when we read this back immediately after writing,  we are getting a value 0x1006. (ie DIV_SELECT is 0x06).
Please help us understand why the register is not changing after writing the required value? It looks like it is not changing from 0x06 which is the default value on reset.
Tags (3)
0 Kudos
Reply
1 Reply

480 Views
igorpadykov
NXP Employee
NXP Employee

Hi femy

to narrow down problem if this is not caused by linux permissions, please

try attached bare metal pll example from sdk (you can request full sdk creating service request).

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

0 Kudos
Reply