aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorDavid Ung <davidu@nvidia.com>2013-12-26 19:44:23 -0500
committerPeter De Schrijver <pdeschrijver@nvidia.com>2014-02-17 09:18:11 -0500
commit0e766c2d9fc8cd2ad0e0fe97ff4e264cb686fc32 (patch)
tree53272852fd937edce19eb8b7e0eda58c33a67ca5 /drivers/clk
parent67fc26bfd7a265883fd0804f24f6287d16769e3d (diff)
clk: tegra: PLLD2 fixes for hdmi
Set correct pll_d2_out0 divider and correct the p div values for pll_d2. Signed-off-by: David Ung <davidu@nvidia.com> Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/tegra/clk-tegra124.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/clk/tegra/clk-tegra124.c b/drivers/clk/tegra/clk-tegra124.c
index 14c3f2fb6047..0fc912691789 100644
--- a/drivers/clk/tegra/clk-tegra124.c
+++ b/drivers/clk/tegra/clk-tegra124.c
@@ -619,12 +619,11 @@ static struct tegra_clk_pll_params pll_d_params = {
619}; 619};
620 620
621static struct tegra_clk_pll_freq_table tegra124_pll_d2_freq_table[] = { 621static struct tegra_clk_pll_freq_table tegra124_pll_d2_freq_table[] = {
622 { 12000000, 148500000, 99, 1, 8}, 622 { 12000000, 594000000, 99, 1, 2},
623 { 12000000, 594000000, 99, 1, 1}, 623 { 13000000, 594000000, 91, 1, 2}, /* actual: 591.5 MHz */
624 { 13000000, 594000000, 91, 1, 1}, /* actual: 591.5 MHz */ 624 { 16800000, 594000000, 71, 1, 2}, /* actual: 596.4 MHz */
625 { 16800000, 594000000, 71, 1, 1}, /* actual: 596.4 MHz */ 625 { 19200000, 594000000, 62, 1, 2}, /* actual: 595.2 MHz */
626 { 19200000, 594000000, 62, 1, 1}, /* actual: 595.2 MHz */ 626 { 26000000, 594000000, 91, 2, 2}, /* actual: 591.5 MHz */
627 { 26000000, 594000000, 91, 2, 1}, /* actual: 591.5 MHz */
628 { 0, 0, 0, 0, 0, 0 }, 627 { 0, 0, 0, 0, 0, 0 },
629}; 628};
630 629
@@ -1295,9 +1294,9 @@ static void __init tegra124_pll_init(void __iomem *clk_base,
1295 clk_register_clkdev(clk, "pll_d2", NULL); 1294 clk_register_clkdev(clk, "pll_d2", NULL);
1296 clks[TEGRA124_CLK_PLL_D2] = clk; 1295 clks[TEGRA124_CLK_PLL_D2] = clk;
1297 1296
1298 /* PLLD2_OUT0 ?? */ 1297 /* PLLD2_OUT0 */
1299 clk = clk_register_fixed_factor(NULL, "pll_d2_out0", "pll_d2", 1298 clk = clk_register_fixed_factor(NULL, "pll_d2_out0", "pll_d2",
1300 CLK_SET_RATE_PARENT, 1, 2); 1299 CLK_SET_RATE_PARENT, 1, 1);
1301 clk_register_clkdev(clk, "pll_d2_out0", NULL); 1300 clk_register_clkdev(clk, "pll_d2_out0", NULL);
1302 clks[TEGRA124_CLK_PLL_D2_OUT0] = clk; 1301 clks[TEGRA124_CLK_PLL_D2_OUT0] = clk;
1303 1302