clk: tegra: pll: Add logic for handling SDM data
authorRhyland Klein <rklein@nvidia.com>
Thu, 18 Jun 2015 21:28:24 +0000 (17:28 -0400)
committerThierry Reding <treding@nvidia.com>
Fri, 20 Nov 2015 17:05:02 +0000 (18:05 +0100)
commitd907f4b4a178b7bbc8edc67191f63155d6492b80
treee093ac8890fd72923b6d33ffb4a88357c2182c64
parent3706b43629f5b9fd4efce192da40ffa9412e75ee
clk: tegra: pll: Add logic for handling SDM data

This adds logic for taking SDM_DIN (Sigma Delta Modulator) setting into
the equation to calculate the effective N value for PLL which supports
fractional divider.

The effective N = NDIV + 1/2 + SDM_DIN/2^13, where NDIV is the integer
feedback divider.

Reviewed-by: Benson Leung <bleung@chromium.org>
Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/clk/tegra/clk-pll.c
drivers/clk/tegra/clk.h