Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

David Ung and committed by
Peter De Schrijver
0e766c2d 67fc26bf

+7 -8
+7 -8
drivers/clk/tegra/clk-tegra124.c
··· 619 619 }; 620 620 621 621 static struct tegra_clk_pll_freq_table tegra124_pll_d2_freq_table[] = { 622 - { 12000000, 148500000, 99, 1, 8}, 623 - { 12000000, 594000000, 99, 1, 1}, 624 - { 13000000, 594000000, 91, 1, 1}, /* actual: 591.5 MHz */ 625 - { 16800000, 594000000, 71, 1, 1}, /* actual: 596.4 MHz */ 626 - { 19200000, 594000000, 62, 1, 1}, /* actual: 595.2 MHz */ 627 - { 26000000, 594000000, 91, 2, 1}, /* actual: 591.5 MHz */ 622 + { 12000000, 594000000, 99, 1, 2}, 623 + { 13000000, 594000000, 91, 1, 2}, /* actual: 591.5 MHz */ 624 + { 16800000, 594000000, 71, 1, 2}, /* actual: 596.4 MHz */ 625 + { 19200000, 594000000, 62, 1, 2}, /* actual: 595.2 MHz */ 626 + { 26000000, 594000000, 91, 2, 2}, /* actual: 591.5 MHz */ 628 627 { 0, 0, 0, 0, 0, 0 }, 629 628 }; 630 629 ··· 1294 1295 clk_register_clkdev(clk, "pll_d2", NULL); 1295 1296 clks[TEGRA124_CLK_PLL_D2] = clk; 1296 1297 1297 - /* PLLD2_OUT0 ?? */ 1298 + /* PLLD2_OUT0 */ 1298 1299 clk = clk_register_fixed_factor(NULL, "pll_d2_out0", "pll_d2", 1299 - CLK_SET_RATE_PARENT, 1, 2); 1300 + CLK_SET_RATE_PARENT, 1, 1); 1300 1301 clk_register_clkdev(clk, "pll_d2_out0", NULL); 1301 1302 clks[TEGRA124_CLK_PLL_D2_OUT0] = clk; 1302 1303