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)
commitcafeb002cf2cd8b0f8796b59130f9c1b91da4fcf
tree0f957ea927d32ea9691dee48a663581d7ca341c3
parent33ca29c99e8680b4c921c6eafb9fc1603c5b9779
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