]> git.baikalelectronics.ru Git - kernel.git/commit
clk: ti: Implement FAPLL set_rate for the synthesizer
authorTony Lindgren <tony@atomide.com>
Tue, 17 Mar 2015 01:04:20 +0000 (18:04 -0700)
committerTero Kristo <t-kristo@ti.com>
Tue, 24 Mar 2015 18:26:05 +0000 (20:26 +0200)
commit3744ecbc110a7e9eee71020dfabbd2800b889c16
tree0f957ea927d32ea9691dee48a663581d7ca341c3
parente1f086a2b417e8478bef26374d3b74e4907030a4
clk: ti: Implement FAPLL set_rate for the synthesizer

We can pretty much get any rate out of the FAPLL because of the fractional
divider. Let's first try just adjusting the post divider, and if that is
not enough, then reprogram both the fractional divider and the post divider.

Let's also add a define for the fixed SYNTH_PHASE_K instead of using 8.

Cc: Brian Hutchinson <b.hutchman@gmail.com>
Cc: Matthijs van Duin <matthijsvanduin@gmail.com>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
drivers/clk/ti/fapll.c