Skip to content

Commit 2db2fcd

Browse files
digetxthierryreding
authored andcommitted
clk: tegra20: Use custom CCLK implementation
We're going to use the generic cpufreq-dt driver on Tegra20 and thus CCLK intermediate re-parenting will be performed by the clock driver. There is now special CCLK implementation that supports all CCLK quirks, this patch makes Tegra20 SoCs to use that implementation. Acked-by: Peter De Schrijver <[email protected]> Tested-by: Peter Geis <[email protected]> Tested-by: Marcel Ziswiler <[email protected]> Tested-by: Jasper Korten <[email protected]> Tested-by: David Heidelberg <[email protected]> Tested-by: Nicolas Chauvet <[email protected]> Signed-off-by: Dmitry Osipenko <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent dec15c9 commit 2db2fcd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

drivers/clk/tegra/clk-tegra20.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,8 @@ static struct tegra_clk_pll_params pll_x_params = {
391391
.lock_delay = 300,
392392
.freq_table = pll_x_freq_table,
393393
.flags = TEGRA_PLL_HAS_CPCON | TEGRA_PLL_HAS_LOCK_ENABLE,
394+
.pre_rate_change = tegra_cclk_pre_pllx_rate_change,
395+
.post_rate_change = tegra_cclk_post_pllx_rate_change,
394396
};
395397

396398
static struct tegra_clk_pll_params pll_e_params = {
@@ -702,9 +704,10 @@ static void tegra20_super_clk_init(void)
702704
struct clk *clk;
703705

704706
/* CCLK */
705-
clk = tegra_clk_register_super_mux("cclk", cclk_parents,
707+
clk = tegra_clk_register_super_cclk("cclk", cclk_parents,
706708
ARRAY_SIZE(cclk_parents), CLK_SET_RATE_PARENT,
707-
clk_base + CCLK_BURST_POLICY, 0, 4, 0, 0, NULL);
709+
clk_base + CCLK_BURST_POLICY, TEGRA20_SUPER_CLK,
710+
NULL);
708711
clks[TEGRA20_CLK_CCLK] = clk;
709712

710713
/* SCLK */

0 commit comments

Comments
 (0)