Re: [PATCH 2/3] clk: ti: Implement FAPLL set_rate for the synthesizer

2015-03-24 Thread Tony Lindgren
* Tony Lindgren t...@atomide.com [150323 08:58]: * Tero Kristo t-kri...@ti.com [150323 06:25]: This code is generating these compile time warnings for me: CC drivers/clk/ti/fapll.o drivers/clk/ti/fapll.c: In function ‘ti_fapll_synth_set_rate’: drivers/clk/ti/fapll.c:394:5:

Re: [PATCH 2/3] clk: ti: Implement FAPLL set_rate for the synthesizer

2015-03-24 Thread Tero Kristo
On 03/24/2015 06:37 PM, Tony Lindgren wrote: * Tony Lindgren t...@atomide.com [150323 08:58]: * Tero Kristo t-kri...@ti.com [150323 06:25]: This code is generating these compile time warnings for me: CC drivers/clk/ti/fapll.o drivers/clk/ti/fapll.c: In function

Re: [PATCH 2/3] clk: ti: Implement FAPLL set_rate for the synthesizer

2015-03-23 Thread Tero Kristo
On 03/23/2015 12:35 AM, Tony Lindgren wrote: 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

Re: [PATCH 2/3] clk: ti: Implement FAPLL set_rate for the synthesizer

2015-03-23 Thread Tony Lindgren
* Tero Kristo t-kri...@ti.com [150323 06:25]: On 03/23/2015 12:35 AM, Tony Lindgren wrote: +static u32 ti_fapll_synth_set_frac_rate(struct fapll_synth *synth, +unsigned long rate, +unsigned long parent_rate) +{ +u32

[PATCH 2/3] clk: ti: Implement FAPLL set_rate for the synthesizer

2015-03-22 Thread Tony Lindgren
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.