lkml.org 
[lkml]   [2016]   [Jun]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 2/2] clk: vt8500: rework wm8650_find_pll_bits()
On 06/08, Roman Volkov wrote:
> From: Roman Volkov <rvolkov@v1ros.org>
>
> PLL clock on WM8650 is calculated in the following way:
>
> M * parent [O1] => / P [O2] => / D [O3]
>
> Where O2 is 600MHz >= (M * parent) / P >= 300MHz.
>
> Current algorithm does not met this requirement, so that the
> function may return rates which are not supported by the hardware.
>
> This patch fixes the algorithm and simplifies the code, reducing
> the calculation time by ~10000 times (according to usermode app) by
> removing the nested loops.
>
> Signed-off-by: Roman Volkov <rvolkov@v1ros.org>
> ---

Applied to clk-next

--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

\
 
 \ /
  Last update: 2016-06-21 03:41    [W:0.043 / U:0.880 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site