clk: tegra20/30: Don't pre-initialize displays parent clock
authorDmitry Osipenko <digetx@gmail.com>
Wed, 18 Dec 2019 18:44:06 +0000 (21:44 +0300)
committerThierry Reding <treding@nvidia.com>
Fri, 10 Jan 2020 14:50:25 +0000 (15:50 +0100)
Both Tegra20 and Tegra30 are initializing display's parent clock
incorrectly because PLLP is running at 216/408MHz while display rate is
set to 600MHz, but pre-setting the parent isn't needed at all because
display driver selects proper parent anyways.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/clk/tegra/clk-tegra20.c
drivers/clk/tegra/clk-tegra30.c

index 4d8222f..0c14fb5 100644 (file)
@@ -1046,8 +1046,6 @@ static struct tegra_clk_init_table init_table[] __initdata = {
        { TEGRA20_CLK_SBC3, TEGRA20_CLK_PLL_P, 100000000, 0 },
        { TEGRA20_CLK_SBC4, TEGRA20_CLK_PLL_P, 100000000, 0 },
        { TEGRA20_CLK_HOST1X, TEGRA20_CLK_PLL_C, 150000000, 0 },
-       { TEGRA20_CLK_DISP1, TEGRA20_CLK_PLL_P, 600000000, 0 },
-       { TEGRA20_CLK_DISP2, TEGRA20_CLK_PLL_P, 600000000, 0 },
        { TEGRA20_CLK_GR2D, TEGRA20_CLK_PLL_C, 300000000, 0 },
        { TEGRA20_CLK_GR3D, TEGRA20_CLK_PLL_C, 300000000, 0 },
        { TEGRA20_CLK_VDE, TEGRA20_CLK_CLK_MAX, 300000000, 0 },
index c8bc18e..bd4d420 100644 (file)
@@ -1251,8 +1251,6 @@ static struct tegra_clk_init_table init_table[] __initdata = {
        { TEGRA30_CLK_SBC6, TEGRA30_CLK_PLL_P, 100000000, 0 },
        { TEGRA30_CLK_PLL_C, TEGRA30_CLK_CLK_MAX, 600000000, 0 },
        { TEGRA30_CLK_HOST1X, TEGRA30_CLK_PLL_C, 150000000, 0 },
-       { TEGRA30_CLK_DISP1, TEGRA30_CLK_PLL_P, 600000000, 0 },
-       { TEGRA30_CLK_DISP2, TEGRA30_CLK_PLL_P, 600000000, 0 },
        { TEGRA30_CLK_TWD, TEGRA30_CLK_CLK_MAX, 0, 1 },
        { TEGRA30_CLK_GR2D, TEGRA30_CLK_PLL_C, 300000000, 0 },
        { TEGRA30_CLK_GR3D, TEGRA30_CLK_PLL_C, 300000000, 0 },